[gnome-flashback] theme: add HighContrastInverse



commit e290bd2e1c926c0efc4842c5edffb4a304b72350
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Dec 1 19:00:32 2019 +0200

    theme: add HighContrastInverse

 data/theme/HighContrast/Makefile.am                |  1 +
 .../theme/HighContrast/gnome-flashback-inverse.css | 85 ++++++++++++++++++++++
 gnome-flashback/flashback.gresource.xml            |  1 +
 gnome-flashback/gf-application.c                   |  1 +
 4 files changed, 88 insertions(+)
---
diff --git a/data/theme/HighContrast/Makefile.am b/data/theme/HighContrast/Makefile.am
index a0dc4f8..3ebd4b8 100644
--- a/data/theme/HighContrast/Makefile.am
+++ b/data/theme/HighContrast/Makefile.am
@@ -2,6 +2,7 @@ NULL =
 
 EXTRA_DIST = \
        gnome-flashback.css \
+       gnome-flashback-inverse.css \
        $(NULL)
 
 -include $(top_srcdir)/git.mk
diff --git a/data/theme/HighContrast/gnome-flashback-inverse.css 
b/data/theme/HighContrast/gnome-flashback-inverse.css
new file mode 100644
index 0000000..76da8a4
--- /dev/null
+++ b/data/theme/HighContrast/gnome-flashback-inverse.css
@@ -0,0 +1,85 @@
+@import url("resource:///org/gnome/gnome-flashback/theme/common.css");
+
+gf-popup-window {
+  background-color: #ffffff;
+  color: #000000;
+  border: 1px solid rgba(0, 0, 0, 0.23);
+  border-radius: 10px;
+}
+
+gf-popup-window.solid {
+  border: 1px solid #8d8d8d;
+  border-radius: 0px;
+}
+
+#gf-candidate-popup {
+  border-radius: 3px;
+}
+
+#gf-candidate-popup.solid {
+  border-radius: 0px;
+}
+
+#gf-candidate-popup gf-candidate-box label {
+  padding: 4px 6px;
+}
+
+#gf-candidate-popup gf-candidate-box label:last-child {
+  padding-left: 0px;
+}
+
+#gf-candidate-popup gf-candidate-box:selected,
+#gf-candidate-popup gf-candidate-box:hover {
+  background-color: #000000;
+  color: #ffffff;
+  border-radius: 3px;
+}
+
+#gf-input-source-popup {
+}
+
+#gf-input-source-popup #gf-input-source {
+  min-width: 120px;
+  min-height: 120px;
+  font-size: 22px;
+}
+
+#gf-input-source-popup #gf-input-source:selected {
+  background-color: #000000;
+  color: #ffffff;
+  border-radius: 6px;
+}
+
+#gf-label-window {
+  font-size: 40px;
+}
+
+#gf-osd-window {
+}
+
+#gf-osd-window levelbar block.overdrive {
+  background-color: #ef2929;
+  border-color: #ef2929;
+}
+
+#gf-bubble {
+}
+
+gf-icon {
+  margin: 2px;
+}
+
+gf-icon label {
+  border-radius: 3px;
+  color: #ffffff;
+  padding: 2px;
+}
+
+gf-icon:hover image {
+  -gtk-icon-effect: highlight;
+}
+
+gf-icon:selected label {
+  background: #000000;
+  color: #ffffff;
+}
diff --git a/gnome-flashback/flashback.gresource.xml b/gnome-flashback/flashback.gresource.xml
index 3e6dfba..63983bb 100644
--- a/gnome-flashback/flashback.gresource.xml
+++ b/gnome-flashback/flashback.gresource.xml
@@ -4,6 +4,7 @@
     <file alias="Adwaita/gnome-flashback.css">../data/theme/Adwaita/gnome-flashback.css</file>
     <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="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 7ee03ef..89d3399 100644
--- a/gnome-flashback/gf-application.c
+++ b/gnome-flashback/gf-application.c
@@ -95,6 +95,7 @@ static GfSupportedTheme supported_themes[] =
     { "Adwaita", "Adwaita", NULL, TRUE },
     { "Adwaita-dark", "Adwaita", "dark", FALSE },
     { "HighContrast", "HighContrast", NULL, FALSE },
+    { "HighContrastInverse", "HighContrast", "inverse", FALSE },
     { NULL, NULL, FALSE, FALSE }
   };
 


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