Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dev:renderer": "node scripts/free-port.mjs 3100 && vite",
"dev:mobile": "node scripts/free-port.mjs 3100 && cross-env PORACODE_BUILD_TARGET=mobile vite",
"dev:electron": "tsdown --watch",
"dev:app": "node scripts/free-port.mjs 47820-47832 32120-32132 && pnpm run setup:native && wait-on dist/main/main.cjs dist/main/mcpProbeWorker.mjs && pnpm run prepare:package-assets && wait-on tcp:3100 && node scripts/dev-launch.mjs",
"dev:app": "pnpm run setup:native && wait-on dist/main/main.cjs dist/main/mcpProbeWorker.mjs && pnpm run prepare:package-assets && wait-on tcp:3100 && node scripts/dev-launch.mjs",
"build": "pnpm run build:renderer && pnpm run build:electron",
"build:renderer": "vite build",
"build:mobile": "pnpm run prepare:mobile:ssh && cross-env PORACODE_BUILD_TARGET=mobile vite build && node scripts/finalize-mobile-build.mjs",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@
--window-overlay-background: rgba(0, 0, 0, 0);
--composer-surface: var(--surface);
--interactive-cursor: default;
--cursor-interactive: default;

/* Theme-adaptive interaction overlays. Derived from --foreground so they
invert per theme: a light wash on dark themes (matching the old
Expand Down
42 changes: 33 additions & 9 deletions src/renderer/views/SettingsOverlay/parts/UsageSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,17 @@ function UsageProviderRow(props: { id: string; label: string }) {
});
}}
>
<Switch.Control>
<Switch.Thumb />
</Switch.Control>
<Switch.Content>
<Switch.Control
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
event.currentTarget.closest("label")?.querySelector("input")?.click();
}}
>
<Switch.Thumb />
</Switch.Control>
</Switch.Content>
</Switch>
</div>
{enabled ? <UsageProviderControls id={id} label={label} /> : null}
Expand Down Expand Up @@ -379,9 +387,17 @@ export function UsageSettings() {
});
}}
>
<Switch.Control>
<Switch.Thumb />
</Switch.Control>
<Switch.Content>
<Switch.Control
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
event.currentTarget.closest("label")?.querySelector("input")?.click();
}}
>
<Switch.Thumb />
</Switch.Control>
</Switch.Content>
</Switch>
</SettingRow>

Expand All @@ -403,9 +419,17 @@ export function UsageSettings() {
});
}}
>
<Switch.Control>
<Switch.Thumb />
</Switch.Control>
<Switch.Content>
<Switch.Control
onClick={(event) => {
event.preventDefault();
event.stopPropagation();
event.currentTarget.closest("label")?.querySelector("input")?.click();
}}
>
<Switch.Thumb />
</Switch.Control>
</Switch.Content>
</Switch>
</SettingRow>

Expand Down