Skip to content

Commit f67eb12

Browse files
committed
Better Dark color
1 parent ddbc02a commit f67eb12

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

webextensions/panel/panel.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,28 @@
1616
}
1717

1818
:root[data-theme="dark"] {
19-
--bg-color: #2A2A2E /* rgb(42, 42, 46) */;
20-
--text-color: rgb(249, 249, 250);
19+
--in-content-page-background: #2A2A2E /* rgb(42, 42, 46) */;
20+
--in-content-button-background: rgba(249,249,250,0.1);
21+
--in-content-button-background-hover: rgba(249,249,250,0.15);
22+
--in-content-border-hover: rgba(249,249,250,0.3);
23+
24+
--bg-color: var(--dark-popup);
25+
--text-color: var(--dark-popup-text);
26+
--focused-item-bgcolor: var(--in-content-button-background-hover);
27+
--focused-item-textcolor: var(--text-color);
2128
--disabled-message-bgcolor: rgba(42, 42, 46, 0.85);
29+
scrollbar-color: var(--in-content-border-hover) var(--in-content-page-background);
30+
}
31+
32+
@media (prefers-color-scheme: dark) {
33+
:root {
34+
--bg-color: var(--dark-popup);
35+
--text-color: var(--dark-popup-text);
36+
--focused-item-bgcolor: var(--in-content-button-background-hover);
37+
--focused-item-textcolor: var(--text-color);
38+
--disabled-message-bgcolor: rgba(42, 42, 46, 0.85);
39+
scrollbar-color: var(--in-content-border-hover) var(--in-content-page-background);
40+
}
2241
}
2342

2443
body {
@@ -76,6 +95,10 @@ body {
7695
padding: 0;
7796
}
7897

98+
#tabs li:hover {
99+
background: var(--in-content-button-background);
100+
}
101+
79102
#tabs li * {
80103
line-height: 1;
81104
vertical-align: middle;

webextensions/resources/ui-color.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ hr {
198198
--in-content-deemphasized-text: var(--grey-40);
199199
--in-content-box-background: #202023;
200200
--in-content-box-background-hover: /* rgba(249,249,250,0.15) */ rgb(calc((42 * 0.85) + (249 * 0.15)), calc((42 * 0.85) + (249 * 0.15)), calc((46 * 0.85) + (250 * 0.15)));
201-
--in-content-box-background-active: /*rgba(249,249,250,0.2) */ rgb(calc((42 * 0.8) + (249 * 0.2)), calc((42 * 0.8) + (249 * 0.25)), calc((46 * 0.8) + (250 * 0.2)));
201+
--in-content-box-background-active: /*rgba(249,249,250,0.2) */ rgb(calc((42 * 0.8) + (249 * 0.2)), calc((42 * 0.8) + (249 * 0.2)), calc((46 * 0.8) + (250 * 0.2)));
202202
--in-content-box-background-odd: rgba(249,249,250,0.05);
203203
--in-content-box-info-background: rgba(249,249,250,0.15);
204204

0 commit comments

Comments
 (0)