summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');