Skip to content

Commit

Permalink
fix: dark mode (Timeline, Activity, Raw Data) (#575)
Browse files Browse the repository at this point in the history
* Set a proper background color for `.vis-tooltip` in dark mode

* Correctly darken uncategorized event rectangles on hover

* Add dark mode icons for sorting arrows
  • Loading branch information
BelKed committed May 12, 2024
1 parent 80db006 commit 05c25c9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions static/dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ hr {
color: #e9ebf0 !important;
}

.vis-tooltip {
background-color: #282c32 !important;
}

#visualization *, svg,
.nav.nav-tabs,
.btn-outline-secondary {
Expand All @@ -181,6 +185,10 @@ svg.appsummary g rect[style="fill: rgb(204, 204, 204);"] {
fill: #666666 !important;
}

svg.appsummary g rect[style="fill: rgb(184, 184, 184);"] {
fill: #555555 !important;
}

svg path[style="fill: rgb(255, 255, 255);"] {
fill: #23272d !important;
}
Expand Down Expand Up @@ -220,4 +228,16 @@ div[style="color: rgb(85, 85, 85); font-size: 0.9em;"] {

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

[aria-sort="none"] {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white' opacity='.4'%3E%3Cpath d='m51 1 25 23 24 22H1l25-22zm0 100 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
}

[aria-sort="ascending"] {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white'%3E%3Cpath opacity='.8' d='m51 1 25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.4' d='m51 101 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
}

[aria-sort="descending"] {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='101' height='101' preserveAspectRatio='none' fill='white'%3E%3Cpath opacity='.4' d='m51 1 25 23 24 22H1l25-22z'/%3E%3Cpath opacity='.8' d='m51 101 25-23 24-22H1l25 22z'/%3E%3C/svg%3E") !important;
}

1 comment on commit 05c25c9

@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.3b18 (click to expand)

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

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

Please sign in to comment.