[epiphany/wip/exalm/popover2] page-row: Reduce padding for popover




commit 81b04b39bf5aa68a8b674a1b5a2da6bf21a2f13f
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Fri Jan 29 21:29:39 2021 +0500

    page-row: Reduce padding for popover
    
    See https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/893#note_1019711

 src/ephy-page-row.c                          | 4 ++--
 src/resources/gtk/page-row.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/_Adwaita-base.scss      | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/ephy-page-row.c b/src/ephy-page-row.c
index 48abe0ffc..dff9f431f 100644
--- a/src/ephy-page-row.c
+++ b/src/ephy-page-row.c
@@ -189,12 +189,12 @@ ephy_page_row_set_adaptive_mode (EphyPageRow      *self,
 
   switch (adaptive_mode) {
     case EPHY_ADAPTIVE_MODE_NORMAL:
-      gtk_widget_set_margin_end (GTK_WIDGET (self->box), 2);
+      gtk_widget_set_margin_start (GTK_WIDGET (self->box), 3);
       gtk_box_set_spacing (self->box, 0);
 
       break;
     case EPHY_ADAPTIVE_MODE_NARROW:
-      gtk_widget_set_margin_end (GTK_WIDGET (self->box), 0);
+      gtk_widget_set_margin_start (GTK_WIDGET (self->box), 8);
       gtk_box_set_spacing (self->box, 4);
 
       break;
diff --git a/src/resources/gtk/page-row.ui b/src/resources/gtk/page-row.ui
index 43c42d92f..c112b1e17 100644
--- a/src/resources/gtk/page-row.ui
+++ b/src/resources/gtk/page-row.ui
@@ -13,7 +13,7 @@
           <object class="GtkBox" id="box">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
-            <property name="margin-start">6</property>
+            <property name="margin-start">3</property>
             <child>
               <object class="GtkStack" id="icon_stack">
                 <property name="visible">True</property>
diff --git a/src/resources/themes/Adwaita-dark.css b/src/resources/themes/Adwaita-dark.css
index cc020c20e..25f4c8321 100644
--- a/src/resources/themes/Adwaita-dark.css
+++ b/src/resources/themes/Adwaita-dark.css
@@ -277,7 +277,7 @@ fullscreenbox > flap > shadow { min-height: 9px; min-width: 9px; background: lin
 
 .pages-list { margin: 5px; }
 
-.pages-list row { min-height: 36px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #eeeeec; transition: none; box-shadow: none; }
+.pages-list row { min-height: 30px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #eeeeec; transition: none; box-shadow: none; }
 
 .pages-list row:not(:last-child) { margin-bottom: 2px; }
 
diff --git a/src/resources/themes/Adwaita.css b/src/resources/themes/Adwaita.css
index 1de8c1b93..52dcd96ea 100644
--- a/src/resources/themes/Adwaita.css
+++ b/src/resources/themes/Adwaita.css
@@ -277,7 +277,7 @@ fullscreenbox > flap > shadow { min-height: 9px; min-width: 9px; background: lin
 
 .pages-list { margin: 5px; }
 
-.pages-list row { min-height: 36px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #2e3436; transition: none; box-shadow: none; }
+.pages-list row { min-height: 30px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #2e3436; transition: none; box-shadow: none; }
 
 .pages-list row:not(:last-child) { margin-bottom: 2px; }
 
diff --git a/src/resources/themes/HighContrast.css b/src/resources/themes/HighContrast.css
index f0ded94a7..007bc73cd 100644
--- a/src/resources/themes/HighContrast.css
+++ b/src/resources/themes/HighContrast.css
@@ -275,7 +275,7 @@ fullscreenbox > flap > shadow { min-height: 9px; min-width: 9px; background: lin
 
 .pages-list { margin: 5px; }
 
-.pages-list row { min-height: 36px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #2e3436; transition: none; box-shadow: none; }
+.pages-list row { min-height: 30px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #2e3436; transition: none; box-shadow: none; }
 
 .pages-list row:not(:last-child) { margin-bottom: 2px; }
 
diff --git a/src/resources/themes/HighContrastInverse.css b/src/resources/themes/HighContrastInverse.css
index 8e7436f46..85bb8dd65 100644
--- a/src/resources/themes/HighContrastInverse.css
+++ b/src/resources/themes/HighContrastInverse.css
@@ -275,7 +275,7 @@ fullscreenbox > flap > shadow { min-height: 9px; min-width: 9px; background: lin
 
 .pages-list { margin: 5px; }
 
-.pages-list row { min-height: 36px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #eeeeec; transition: none; box-shadow: none; }
+.pages-list row { min-height: 30px; padding: 3px; border-radius: 5px; -gtk-outline-radius: 5px; border: 
none; color: #eeeeec; transition: none; box-shadow: none; }
 
 .pages-list row:not(:last-child) { margin-bottom: 2px; }
 
diff --git a/src/resources/themes/_Adwaita-base.scss b/src/resources/themes/_Adwaita-base.scss
index a533e18ff..aed7ae204 100644
--- a/src/resources/themes/_Adwaita-base.scss
+++ b/src/resources/themes/_Adwaita-base.scss
@@ -125,7 +125,7 @@ $menu_selected_color: if($variant == 'light', darken($bg_color, 6%), darken($bg_
   margin: 5px;
 
   row {
-    min-height: 36px;
+    min-height: 30px;
     padding: 3px;
     border-radius: 5px;
     -gtk-outline-radius: 5px;


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