Skip to content

Commit 8245c37

Browse files
BelKedMykola Korniichuk
andauthored
fix: dark mode (Stopwatch, Category Builder) (#570)
* dark mod support for hovering StopwatchEntry * fix for filter button in dark mode * fix: dark mode for category builder * Remove `#root` --------- Co-authored-by: Mykola Korniichuk <[email protected]>
1 parent 1b1209d commit 8245c37

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

src/components/StopwatchEntry.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template lang="pug">
22
div
3-
div.row.px-3.py-2#root
3+
div.row.px-3.py-2.stopwatch-entry#root
44
div.flex-fill
55
span #[b {{event.data.label || 'No label'}}]
66
span(style="color: #888") &nbsp;|&nbsp;

src/views/settings/CategoryBuilder.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ div
4343
div(v-if="words_by_duration.length == 0")
4444
| No words with significant duration. You're good to go!
4545
div(v-else)
46-
div.row(v-for="word in words_by_duration")
46+
div.row.category-builder-word(v-for="word in words_by_duration")
4747
div.col.hover-highlight
4848
div.d-flex.flex-row.py-2
4949
div.flex-grow-1

static/dark.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ a, button, span, div, select {
88
outline: none;
99
}
1010

11-
body, button, html {
11+
body, button, html, table {
1212
color: #e9ebf0 !important;
1313
}
1414

@@ -207,3 +207,17 @@ div[style="background-color: rgb(238, 238, 238);"] {
207207
div[style="color: rgb(85, 85, 85); font-size: 0.9em;"] {
208208
color: #e9ebf0 !important;
209209
}
210+
211+
.stopwatch-entry:hover,
212+
.category-builder-word:hover>* {
213+
background-color: #282c32 !important;
214+
}
215+
216+
.category-builder-word .table td,
217+
.category-builder-word .table th {
218+
border-color: #3d444d;
219+
}
220+
221+
.bg-light {
222+
background-color: #1a1d24 !important;
223+
}

0 commit comments

Comments
 (0)