diff options
author | Mihai Moldovan <ionic@ionic.de> | 2022-12-06 05:10:29 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2023-02-06 08:30:01 +0100 |
commit | 33d2f8d0461314c5eeaab2c74b10b545906e1491 (patch) | |
tree | b550428b5d03ff49f8f9b8dab514d63dd64c9766 /src/dash-box.vala | |
parent | 131bcb9889b9eb9b8eeb895f23ae1d53a25aefe8 (diff) | |
download | arctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.tar.gz arctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.tar.bz2 arctica-greeter-33d2f8d0461314c5eeaab2c74b10b545906e1491.zip |
misc src/: completely rework high contrast mode, add stub for big font mode.
This is a work-in-progress.
The reworked high contrast mode adds support for a configurable high
contrast GTK theme and changes a lot of widgets to change their color.
The big font mode is a stub currently.
Diffstat (limited to 'src/dash-box.vala')
-rw-r--r-- | src/dash-box.vala | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/dash-box.vala b/src/dash-box.vala index d8fe6fd..1073aa5 100644 --- a/src/dash-box.vala +++ b/src/dash-box.vala @@ -221,10 +221,25 @@ public class DashBox : Gtk.Box CairoUtils.rounded_rectangle (c, 0, box_y, box_w, box_h, box_r); - c.set_source_rgba (0.1, 0.1, 0.1, 0.4); + var agsettings = new AGSettings (); + if (agsettings.high_contrast) + { + c.set_source_rgba (1.0, 1.0, 1.0, 1.0); + } + else + { + c.set_source_rgba (0.1, 0.1, 0.1, 0.4); + } c.fill_preserve (); - c.set_source_rgba (0.4, 0.4, 0.4, 0.4); + if (agsettings.high_contrast) + { + c.set_source_rgba (0.0, 0.0, 0.0, 1.0); + } + else + { + c.set_source_rgba (0.4, 0.4, 0.4, 0.4); + } c.set_line_width (1); c.stroke (); |