Skip to content

Commit 731e229

Browse files
committed
Fix settings UI not applying the correct styles for light theme.
1 parent fcd855e commit 731e229

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

src/components/settings-ui.ts

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,44 @@ export class Settings extends LitElement {
5555
details summary {
5656
cursor: pointer;
5757
user-select: none;
58+
color: var(--text-color);
59+
font-family: var(--font-family);
5860
}
5961
6062
#settings-content {
6163
padding: 1.5rem 2rem;
62-
background: var(--bg-secondary, #232323);
63-
border-radius: 10px;
64-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
64+
background: var(--bg-secondary);
65+
border: 1px solid var(--border-color);
66+
border-radius: 4px;
67+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
6568
display: grid;
6669
grid-template-columns: max-content 1fr;
6770
gap: 1rem 1.5rem;
6871
align-items: center;
6972
max-width: 480px;
7073
}
74+
7175
#settings-content label {
7276
justify-self: end;
7377
margin-right: 0.5rem;
7478
font-weight: 500;
79+
color: var(--text-color);
80+
font-family: var(--font-family);
7581
}
76-
#settings-content select,
77-
#settings-content input[type="checkbox"] {
82+
83+
#settings-content select {
7884
margin-left: 0.5rem;
7985
font-size: 1rem;
86+
border-radius: 4px;
87+
padding: 0.25rem 0.5rem;
88+
font-family: var(--font-family);
8089
}
90+
8191
#settings-content input[type="checkbox"] {
8292
transform: scale(1.2);
83-
margin-right: 0.5rem;
93+
accent-color: var(--link-color);
8494
}
95+
8596
@media (max-width: 600px) {
8697
#settings-content {
8798
grid-template-columns: 1fr;

src/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/* Light theme (default) */
66
:root {
77
--bg-color: #ffffff;
8+
--bg-secondary: #f5f5f5;
89
--text-color: #333333;
910
--text-secondary: #666666;
1011
--link-color: #0066cc;
@@ -19,6 +20,7 @@
1920
@media (prefers-color-scheme: dark) {
2021
:root {
2122
--bg-color: #1a1a1a;
23+
--bg-secondary: #232323;
2224
--text-color: #e0e0e0;
2325
--text-secondary: #a0a0a0;
2426
--link-color: #66b3ff;

0 commit comments

Comments
 (0)