aboutsummaryrefslogtreecommitdiff
path: root/src/dash-box.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dash-box.vala')
-rw-r--r--src/dash-box.vala19
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 ();