[evince] annotation: Make annotation title independent of theme
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] annotation: Make annotation title independent of theme
- Date: Wed, 11 Jul 2018 00:59:02 +0000 (UTC)
commit 7ade5218fc1e27a645a3a26621fea29390447b45
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Tue Jul 10 00:32:26 2018 -0400
annotation: Make annotation title independent of theme
The note text (sticky notes) annotation uses a custom background
color (yellow by default). Having the title adjustable to theme,
breaks dark-themes, because the title becomes white on yellow
background.
We set a fixed black and grey as the foreground colors for the
title, which works on yellow background.
Fixes #664
libview/ev-annotation-window.c | 3 +++
shell/evince.css | 8 ++++++++
2 files changed, 11 insertions(+)
---
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index f405460c..a6726291 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -586,6 +586,9 @@ ev_annotation_window_class_init (EvAnnotationWindowClass *klass)
gtk_widget_class->focus_out_event = ev_annotation_window_focus_out_event;
gtk_widget_class->key_press_event = ev_annotation_window_key_press_event;
+#if GTK_CHECK_VERSION(3, 20, 0)
+ gtk_widget_class_set_css_name (gtk_widget_class, "evannotationwindow");
+#endif
g_object_class_install_property (g_object_class,
PROP_ANNOTATION,
g_param_spec_object ("annotation",
diff --git a/shell/evince.css b/shell/evince.css
index e4d4117b..93a10c37 100644
--- a/shell/evince.css
+++ b/shell/evince.css
@@ -72,3 +72,11 @@ evpresentationview.white-mode {
border-width: 0 0 1px;
border-radius: 0;
}
+
+evannotationwindow label:backdrop {
+ color: grey;
+}
+
+evannotationwindow label {
+ color: black;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]