Skip to content

Commit 0d1a1d9

Browse files
committed
fix: use smooth corners
1 parent 26aa611 commit 0d1a1d9

File tree

21 files changed

+37
-8
lines changed

21 files changed

+37
-8
lines changed

addons/addon-manager/src/renderer/AddonManagerPane.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ onMounted(() => {
133133
</span>
134134
<SwitchControl
135135
:model-value="enabled"
136-
@update:model-value="toggle(addon, $event)"
136+
@update:model-value="toggle(addon, $event!)"
137137
/>
138138
</div>
139139
<div class="addon-description">{{ manifest.description ?? '' }}</div>
@@ -170,6 +170,7 @@ onMounted(() => {
170170
font-size: 24px;
171171
background: var(--design-highlight-background);
172172
border-radius: 8px;
173+
-electron-corner-smoothing: 60%;
173174
}
174175
.addon-info {
175176
flex: 1;

addons/camera/src/renderer/RecorderPane.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ watchEffect((onInvalidate) => {
224224
color: rgb(var(--system-accent));
225225
background: currentColor;
226226
border-radius: 4px;
227+
-electron-corner-smoothing: 60%;
227228
}
228229
&:disabled::-webkit-slider-thumb {
229230
filter: grayscale(1);
@@ -232,6 +233,7 @@ watchEffect((onInvalidate) => {
232233
height: 4px;
233234
background: var(--design-input-background);
234235
border-radius: 4px;
236+
-electron-corner-smoothing: 60%;
235237
}
236238
}
237239
</style>

addons/explorer/src/renderer/FileExplorer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ function openContextMenu(event: MouseEvent, file?: FileEntity) {
331331
text-decoration: none;
332332
border-radius: 4px;
333333
transition: transform 0.2s;
334+
-electron-corner-smoothing: 60%;
334335
&:hover {
335336
background: var(--design-highlight-background);
336337
}

addons/launcher/src/renderer/LauncherList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ function openLauncherMenu(launcher: Launcher, tab: TerminalTab | undefined, even
394394
opacity: 0.5;
395395
transition: opacity 0.2s, color 0.2s, transform 0.2s;
396396
cursor: pointer;
397+
-electron-corner-smoothing: 60%;
397398
view-transition-name: launcher-folder;
398399
&:hover {
399400
background: var(--design-highlight-background);
@@ -414,6 +415,7 @@ function openLauncherMenu(launcher: Launcher, tab: TerminalTab | undefined, even
414415
height: var(--min-tab-height);
415416
line-height: var(--min-tab-height);
416417
border-radius: 8px;
418+
-electron-corner-smoothing: 60%;
417419
&.is-dropping-active {
418420
outline: 2px solid rgb(var(--system-accent));
419421
}

addons/settings/src/renderer/SettingsLine.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ function pickFont(event: InputEvent) {
300300
text-transform: uppercase;
301301
background: rgb(var(--theme-red));
302302
border-radius: 1em;
303+
-electron-corner-smoothing: 60%;
303304
}
304305
.item-key {
305306
flex: none;

addons/theme/src/renderer/ThemeCard.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ const { theme } = defineProps<{
6464
6565
.theme-card {
6666
border-radius: 4px;
67+
-electron-corner-smoothing: 60%;
6768
}
6869
.card-content {
6970
display: flex;
@@ -73,6 +74,7 @@ const { theme } = defineProps<{
7374
background: var(--design-highlight-background);
7475
border-radius: inherit;
7576
box-shadow: var(--design-element-shadow);
77+
-electron-corner-smoothing: 60%;
7678
}
7779
.card-header {
7880
display: flex;
@@ -99,6 +101,7 @@ const { theme } = defineProps<{
99101
color: transparent;
100102
background: currentColor;
101103
border-radius: 2px;
104+
-electron-corner-smoothing: 60%;
102105
@for $i from 1 through 7 {
103106
.theme-preview > &:nth-child(#{$i}) {
104107
width: #{math.abs(math.sin($i)) * 100} + '%';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"css-font-face-src": "^2.0.0",
7171
"dotenv": "^17.0.1",
7272
"dotenv-cli": "^8.0.0",
73-
"electron": "^36.7.0",
73+
"electron": "^37.2.0",
7474
"esbuild": "^0.25.5",
7575
"eslint": "^9.30.1",
7676
"fuzzaldrin-plus": "^0.6.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/assets/_partials.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
&::-webkit-scrollbar-thumb {
2424
background-color: rgb(var(--theme-foreground) / var(--scrollbar-opacity));
2525
border-radius: $size;
26+
-electron-corner-smoothing: 60%;
2627
&:horizontal:active,
2728
&:vertical:active {
2829
--scrollbar-opacity: 0.2;

src/renderer/assets/layers.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
opacity: 0.5;
1919
transition: opacity 0.2s, color 0.2s, transform 0.2s;
2020
cursor: pointer;
21+
-electron-corner-smoothing: 60%;
2122
&:hover:not(:disabled),
2223
&:focus-visible:not(:disabled) {
2324
background: var(--design-highlight-background);
@@ -80,6 +81,7 @@
8081
background: var(--design-input-background);
8182
border-radius: 4px;
8283
outline: none;
84+
-electron-corner-smoothing: 60%;
8385
&:focus-visible {
8486
outline: 1px solid rgb(var(--system-accent));
8587
}
@@ -100,6 +102,7 @@
100102
background: var(--design-input-background);
101103
border-radius: 4px;
102104
outline: none;
105+
-electron-corner-smoothing: 60%;
103106
&::placeholder {
104107
color: rgb(var(--theme-foreground));
105108
opacity: 0.25;
@@ -144,6 +147,7 @@
144147
background: var(--design-input-background);
145148
border-radius: 4px;
146149
outline: none;
150+
-electron-corner-smoothing: 60%;
147151
&:has(:focus-visible) {
148152
outline: 1px solid rgb(var(--system-accent));
149153
}

0 commit comments

Comments
 (0)