[gnome-builder/wip/gtk4-port] plugins/omni-gutter: fix color of the selection when none is there
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] plugins/omni-gutter: fix color of the selection when none is there
- Date: Sat, 30 Apr 2022 06:55:30 +0000 (UTC)
commit ff46e31524a7cb3020b1815ed5b3821200de608e
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 29 23:55:25 2022 -0700
plugins/omni-gutter: fix color of the selection when none is there
src/plugins/omni-gutter/gbp-omni-gutter-renderer.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
index 27ab95f6f..79d570af3 100644
--- a/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
+++ b/src/plugins/omni-gutter/gbp-omni-gutter-renderer.c
@@ -474,7 +474,10 @@ reload_style_colors (GbpOmniGutterRenderer *self,
}
if (!get_style_rgba (scheme, "selection", BACKGROUND, &self->sel.bg))
- gtk_style_context_lookup_color (context, "theme_selected_bg_color", &self->sel.bg);
+ {
+ if (!gtk_style_context_lookup_color (context, "theme_selected_bg_color", &self->sel.bg))
+ gtk_style_context_lookup_color (context, "accent_bg_color", &self->sel.bg);
+ }
/* Make selection translucent like main area */
if (self->sel.bg.alpha == 1.)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]