[epiphany] Improve contrast in preferences dialogs



commit cbc48832794972238065cc56f9688078cc0baa92
Author: Jan-Michael Brummer <jan brummer tabos org>
Date:   Sun Jul 19 18:22:38 2020 +0200

    Improve contrast in preferences dialogs
    
    Set theme background color in preferences to improve contrast.
    
    Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/1257

 src/resources/gtk/prefs-appearance-page.ui   | 2 +-
 src/resources/gtk/prefs-general-page.ui      | 2 +-
 src/resources/gtk/prefs-privacy-page.ui      | 2 +-
 src/resources/gtk/prefs-sync-page.ui         | 2 +-
 src/resources/themes/Adwaita-dark.css        | 2 ++
 src/resources/themes/Adwaita.css             | 2 ++
 src/resources/themes/HighContrast.css        | 2 ++
 src/resources/themes/HighContrastInverse.css | 2 ++
 src/resources/themes/_shared-base.scss       | 4 ++++
 src/resources/themes/elementary.css          | 2 ++
 src/resources/themes/shared.css              | 2 ++
 11 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/src/resources/gtk/prefs-appearance-page.ui b/src/resources/gtk/prefs-appearance-page.ui
index fee398a06..21c510e6d 100644
--- a/src/resources/gtk/prefs-appearance-page.ui
+++ b/src/resources/gtk/prefs-appearance-page.ui
@@ -6,7 +6,7 @@
     <property name="title" translatable="yes">Appearance</property>
     <property name="visible">True</property>
     <style>
-      <class name="background"/>
+      <class name="preferences-background"/>
     </style>
     <child>
       <object class="HdyPreferencesGroup">
diff --git a/src/resources/gtk/prefs-general-page.ui b/src/resources/gtk/prefs-general-page.ui
index a11fa173f..bc7f85b32 100644
--- a/src/resources/gtk/prefs-general-page.ui
+++ b/src/resources/gtk/prefs-general-page.ui
@@ -6,7 +6,7 @@
     <property name="title" translatable="yes">General</property>
     <property name="visible">True</property>
     <style>
-      <class name="background"/>
+      <class name="preferences-background"/>
     </style>
     <child>
       <object class="HdyPreferencesGroup" id="webapp_box">
diff --git a/src/resources/gtk/prefs-privacy-page.ui b/src/resources/gtk/prefs-privacy-page.ui
index ad3980f0e..62356b2b6 100644
--- a/src/resources/gtk/prefs-privacy-page.ui
+++ b/src/resources/gtk/prefs-privacy-page.ui
@@ -6,7 +6,7 @@
     <property name="title" translatable="yes">Privacy</property>
     <property name="visible">True</property>
     <style>
-      <class name="background"/>
+      <class name="preferences-background"/>
     </style>
     <child>
       <object class="HdyPreferencesGroup">
diff --git a/src/resources/gtk/prefs-sync-page.ui b/src/resources/gtk/prefs-sync-page.ui
index 756df3937..e26cc9b3c 100644
--- a/src/resources/gtk/prefs-sync-page.ui
+++ b/src/resources/gtk/prefs-sync-page.ui
@@ -6,7 +6,7 @@
     <property name="title" translatable="yes">Sync</property>
     <property name="visible">True</property>
     <style>
-      <class name="background"/>
+      <class name="preferences-background"/>
     </style>
     <child>
       <object class="HdyPreferencesGroup" id="sync_page_box">
diff --git a/src/resources/themes/Adwaita-dark.css b/src/resources/themes/Adwaita-dark.css
index aa28b96d9..a138e5eda 100644
--- a/src/resources/themes/Adwaita-dark.css
+++ b/src/resources/themes/Adwaita-dark.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }
diff --git a/src/resources/themes/Adwaita.css b/src/resources/themes/Adwaita.css
index 0820e9221..9ec13326a 100644
--- a/src/resources/themes/Adwaita.css
+++ b/src/resources/themes/Adwaita.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }
diff --git a/src/resources/themes/HighContrast.css b/src/resources/themes/HighContrast.css
index 9dfc57cf0..d46eba1f2 100644
--- a/src/resources/themes/HighContrast.css
+++ b/src/resources/themes/HighContrast.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }
diff --git a/src/resources/themes/HighContrastInverse.css b/src/resources/themes/HighContrastInverse.css
index a1d5c79f5..2e64834b5 100644
--- a/src/resources/themes/HighContrastInverse.css
+++ b/src/resources/themes/HighContrastInverse.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }
diff --git a/src/resources/themes/_shared-base.scss b/src/resources/themes/_shared-base.scss
index 81be64924..f22a76c35 100644
--- a/src/resources/themes/_shared-base.scss
+++ b/src/resources/themes/_shared-base.scss
@@ -171,6 +171,10 @@
   }
 }
 
+.preferences-background scrolledwindow {
+  background-color: themecolor(theme_bg_color);
+}
+
 .page-menu-contents {
   margin-left: 12px;
   margin-right: 12px;
diff --git a/src/resources/themes/elementary.css b/src/resources/themes/elementary.css
index dd2943ce8..6e9e8715c 100644
--- a/src/resources/themes/elementary.css
+++ b/src/resources/themes/elementary.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }
diff --git a/src/resources/themes/shared.css b/src/resources/themes/shared.css
index 9b461b229..efa16bcdf 100644
--- a/src/resources/themes/shared.css
+++ b/src/resources/themes/shared.css
@@ -54,6 +54,8 @@
 
 .tab-arrow-down-attention arrow.down { background-color: @theme_selected_bg_color; }
 
+.preferences-background scrolledwindow { background-color: @theme_bg_color; }
+
 .page-menu-contents { margin-left: 12px; margin-right: 12px; margin-bottom: 12px; }
 
 .search-entry-occurrences-tag { background: none; color: alpha(@theme_fg_color,0.5); box-shadow: none; 
border: none; margin: 2px; padding: 2px; }


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