summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-03-18 22:57:53 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-03-18 22:57:53 (GMT)
commit86a892e1bf5d3483929da3ea72bfcbfd43f6c6bc (patch)
treeb21cf3c4ab4780340984ae8f495884696efb17e3
parent0802224190a4dc5fc772052f6c39fc7f9f134820 (diff)
Painted an extra translucent background on blocks.
-rw-r--r--src/gtkext/gtkbufferdisplay.c12
-rw-r--r--themes/Adwaita/widgets-dark.css6
-rw-r--r--themes/Adwaita/widgets.css6
3 files changed, 24 insertions, 0 deletions
diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c
index 01df570..b9784de 100644
--- a/src/gtkext/gtkbufferdisplay.c
+++ b/src/gtkext/gtkbufferdisplay.c
@@ -465,6 +465,18 @@ static gboolean gtk_buffer_display_draw(GtkWidget *widget, cairo_t *cr)
gtk_style_context_restore(context);
+ if (parent->show_border)
+ {
+ gtk_style_context_save(context);
+
+ gtk_style_context_add_class(context, "graph-block");
+
+ gtk_render_background(context, cr, left_margin, area.y, area.width, area.height);
+
+ gtk_style_context_restore(context);
+
+ }
+
/* Ligne de séparation */
gtk_style_context_save(context);
diff --git a/themes/Adwaita/widgets-dark.css b/themes/Adwaita/widgets-dark.css
index 37d856f..247eb28 100644
--- a/themes/Adwaita/widgets-dark.css
+++ b/themes/Adwaita/widgets-dark.css
@@ -1,4 +1,10 @@
+.graph-block {
+
+ background-color: rgba(255, 255, 255, 0.025);
+
+}
+
.block-palette > image {
background-image: url('resource:///org/chrysalide/gui/core/images/palette.png');
diff --git a/themes/Adwaita/widgets.css b/themes/Adwaita/widgets.css
index de84f34..6666efb 100644
--- a/themes/Adwaita/widgets.css
+++ b/themes/Adwaita/widgets.css
@@ -1,4 +1,10 @@
+.graph-block {
+
+ background-color: rgba(0, 0, 0, 0.1);
+
+}
+
.block-palette > image {
background-image: url('resource:///org/chrysalide/gui/core/images/palette.png');