[gnome-flashback] theme: add Yaru



commit b9e1bc5bbc5bfe3d1203d100502bc6123b5e41a8
Author: Dmitry Shachnev <mitya57 gmail com>
Date:   Thu Jan 2 11:24:58 2020 +0300

    theme: add Yaru
    
    https://gitlab.gnome.org/GNOME/gnome-flashback/issues/31

 configure.ac                            |  1 +
 data/theme/Makefile.am                  |  1 +
 data/theme/Yaru/Makefile.am             |  7 +++++++
 data/theme/Yaru/gnome-flashback.css     | 30 ++++++++++++++++++++++++++++++
 gnome-flashback/flashback.gresource.xml |  1 +
 gnome-flashback/gf-application.c        |  3 +++
 6 files changed, 43 insertions(+)
---
diff --git a/configure.ac b/configure.ac
index 9f1b5d7..6ccbc78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,6 +392,7 @@ AC_CONFIG_FILES([
   data/theme/Makefile
   data/theme/Adwaita/Makefile
   data/theme/HighContrast/Makefile
+  data/theme/Yaru/Makefile
   data/ui/Makefile
   data/xsessions/Makefile
 
diff --git a/data/theme/Makefile.am b/data/theme/Makefile.am
index 6acf821..ca0c59a 100644
--- a/data/theme/Makefile.am
+++ b/data/theme/Makefile.am
@@ -3,6 +3,7 @@ NULL =
 SUBDIRS = \
        Adwaita \
        HighContrast \
+       Yaru \
        $(NULL)
 
 EXTRA_DIST = \
diff --git a/data/theme/Yaru/Makefile.am b/data/theme/Yaru/Makefile.am
new file mode 100644
index 0000000..a0dc4f8
--- /dev/null
+++ b/data/theme/Yaru/Makefile.am
@@ -0,0 +1,7 @@
+NULL =
+
+EXTRA_DIST = \
+       gnome-flashback.css \
+       $(NULL)
+
+-include $(top_srcdir)/git.mk
diff --git a/data/theme/Yaru/gnome-flashback.css b/data/theme/Yaru/gnome-flashback.css
new file mode 100644
index 0000000..c36069b
--- /dev/null
+++ b/data/theme/Yaru/gnome-flashback.css
@@ -0,0 +1,30 @@
+@import url("resource:///org/gnome/gnome-flashback/theme/common.css");
+
+gf-popup-window {
+  border: 1px solid @borders;
+}
+
+gf-icon label {
+  color: white;
+}
+
+gf-icon:selected label {
+  background-color: @theme_selected_bg_color;
+  color: @theme_selected_fg_color;
+}
+
+gf-icon:selected:backdrop label {
+  background-color: @theme_unfocused_selected_bg_color;
+  color: @theme_unfocused_selected_fg_color;
+}
+
+#gf-candidate-popup gf-candidate-box:selected,
+#gf-candidate-popup gf-candidate-box:hover {
+  background-color: @theme_selected_bg_color;
+  color: @theme_selected_fg_color;
+}
+
+#gf-input-source-popup #gf-input-source:selected {
+  background-color: @theme_selected_bg_color;
+  color: @theme_selected_fg_color;
+}
diff --git a/gnome-flashback/flashback.gresource.xml b/gnome-flashback/flashback.gresource.xml
index 63983bb..3721871 100644
--- a/gnome-flashback/flashback.gresource.xml
+++ b/gnome-flashback/flashback.gresource.xml
@@ -5,6 +5,7 @@
     <file alias="Adwaita/gnome-flashback-dark.css">../data/theme/Adwaita/gnome-flashback-dark.css</file>
     <file alias="HighContrast/gnome-flashback.css">../data/theme/HighContrast/gnome-flashback.css</file>
     <file 
alias="HighContrast/gnome-flashback-inverse.css">../data/theme/HighContrast/gnome-flashback-inverse.css</file>
+    <file alias="Yaru/gnome-flashback.css">../data/theme/Yaru/gnome-flashback.css</file>
     <file alias="common.css">../data/theme/common.css</file>
     <file alias="fallback.css">../data/theme/fallback.css</file>
   </gresource>
diff --git a/gnome-flashback/gf-application.c b/gnome-flashback/gf-application.c
index 8b212ed..df94ad6 100644
--- a/gnome-flashback/gf-application.c
+++ b/gnome-flashback/gf-application.c
@@ -90,6 +90,9 @@ static GfSupportedTheme supported_themes[] =
     { "Adwaita-dark", "Adwaita", "dark", FALSE },
     { "HighContrast", "HighContrast", NULL, FALSE },
     { "HighContrastInverse", "HighContrast", "inverse", FALSE },
+    { "Yaru", "Yaru", NULL, FALSE },
+    { "Yaru-light", "Yaru", NULL, FALSE },
+    { "Yaru-dark", "Yaru", NULL, FALSE },
     { NULL, NULL, FALSE, FALSE }
   };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]