Skip to content

Commit c45742f

Browse files
committed
Add component-specific CSS variables for tray app styling
1 parent a1fbe25 commit c45742f

3 files changed

Lines changed: 16 additions & 9 deletions

File tree

.github/workflows/docs.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,12 @@ on:
1010
paths:
1111
- "docs/**"
1212
- ".github/workflows/docs.yml"
13-
workflow_run:
14-
workflows: ["Test", "Release"]
15-
types:
16-
- completed
1713
workflow_dispatch:
1814

1915
jobs:
2016
deploy:
2117
name: Deploy Documentation
2218
runs-on: ubuntu-latest
23-
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
2419
container:
2520
image: squidfunk/mkdocs-material:latest
2621
permissions:

contrib/keylightd-tray/frontend/src/style.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
--error: #f38ba8;
1212
--surface: #181825;
1313
--overlay: #11111b;
14+
15+
/* Component-specific colors (customizable) */
16+
--slider-track: var(--bg-tertiary);
17+
--input-bg: var(--surface);
18+
--input-border: var(--bg-tertiary);
19+
--list-item-bg: var(--surface);
1420
}
1521

1622
* {
@@ -228,7 +234,7 @@ body {
228234
appearance: none;
229235
height: 4px;
230236
border-radius: 2px;
231-
background: var(--bg-tertiary);
237+
background: var(--slider-track);
232238
outline: none;
233239
}
234240

@@ -432,9 +438,9 @@ body {
432438
.setting-row input[type="password"] {
433439
flex: 1;
434440
padding: 6px 10px;
435-
border: 1px solid var(--bg-tertiary);
441+
border: 1px solid var(--input-border);
436442
border-radius: 4px;
437-
background-color: var(--surface);
443+
background-color: var(--input-bg);
438444
color: var(--text-primary);
439445
font-size: 12px;
440446
}
@@ -586,7 +592,7 @@ body {
586592
}
587593

588594
.group-item {
589-
background-color: var(--surface);
595+
background-color: var(--list-item-bg);
590596
border-radius: 6px;
591597
padding: 10px;
592598
}

docs/docs/tray-app.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ Override with `-css` flag.
116116
/* Surface colors */
117117
--surface: #181825;
118118
--overlay: #11111b;
119+
120+
/* Component-specific colors */
121+
--slider-track: var(--bg-tertiary);
122+
--input-bg: var(--surface);
123+
--input-border: var(--bg-tertiary);
124+
--list-item-bg: var(--surface);
119125
}
120126
```
121127

0 commit comments

Comments
 (0)