Skip to content

Commit e3e7eb0

Browse files
committed
💄 Add libadwaita styling for non lightweight themes on Linux
1 parent be0fa8f commit e3e7eb0

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

‎themes/linux/browser.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
@import url("chrome://dot/skin/browser-shared.css");
6+
@import url("chrome://dot/skin/gtk.css");
67

78
@namespace html url("http://www.w3.org/1999/xhtml");
89

‎themes/linux/gtk.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
:root:not(:-moz-lwtheme) {
6+
color-scheme: light dark;
7+
8+
/* https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1.4/named-colors.html */
9+
10+
--lwt-accent-color: light-dark(rgb(245, 245, 245), rgb(36, 36, 36)) !important;
11+
--lwt-accent-color-inactive: light-dark(rgb(230, 230, 230), rgb(36, 36, 36)) !important;
12+
13+
--lwt-text-color: light-dark(rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 1)) !important;
14+
15+
--toolbar-bgcolor: light-dark(rgb(255, 255, 255), rgb(48, 48, 48)) !important;
16+
--toolbar-color: light-dark(rgba(0, 0, 0, 0.8), rgba(255, 255, 255, 1)) !important;
17+
18+
--chrome-content-separator-color: light-dark(rgb(220, 220, 220), rgb(4, 4, 4)) !important;
19+
20+
--toolbar-field-background-color: light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.1)) !important;
21+
}

‎themes/linux/jar.mn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ dot.jar:
66
% skin dot classic/1.0 %skin/classic/dot/
77
#include ../shared/jar.inc.mn
88
skin/classic/dot/browser.css
9-
skin/classic/dot/global.css
9+
skin/classic/dot/global.css
10+
skin/classic/dot/gtk.css

0 commit comments

Comments
 (0)