Skip to content

Commit

Permalink
fix: dark mode (Stopwatch, Category Builder) (#570)
Browse files Browse the repository at this point in the history
* 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 <mykola.korniichuk.ua@gmail.vom>
  • Loading branch information
BelKed and Mykola Korniichuk committed May 9, 2024
1 parent 1b1209d commit 8245c37
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/StopwatchEntry.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template lang="pug">
div
div.row.px-3.py-2#root
div.row.px-3.py-2.stopwatch-entry#root
div.flex-fill
span #[b {{event.data.label || 'No label'}}]
span(style="color: #888") &nbsp;|&nbsp;
Expand Down
2 changes: 1 addition & 1 deletion src/views/settings/CategoryBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ div
div(v-if="words_by_duration.length == 0")
| No words with significant duration. You're good to go!
div(v-else)
div.row(v-for="word in words_by_duration")
div.row.category-builder-word(v-for="word in words_by_duration")
div.col.hover-highlight
div.d-flex.flex-row.py-2
div.flex-grow-1
Expand Down
16 changes: 15 additions & 1 deletion static/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ a, button, span, div, select {
outline: none;
}

body, button, html {
body, button, html, table {
color: #e9ebf0 !important;
}

Expand Down Expand Up @@ -207,3 +207,17 @@ div[style="background-color: rgb(238, 238, 238);"] {
div[style="color: rgb(85, 85, 85); font-size: 0.9em;"] {
color: #e9ebf0 !important;
}

.stopwatch-entry:hover,
.category-builder-word:hover>* {
background-color: #282c32 !important;
}

.category-builder-word .table td,
.category-builder-word .table th {
border-color: #3d444d;
}

.bg-light {
background-color: #1a1d24 !important;
}

1 comment on commit 8245c37

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.