[gtk/wip/jimmac/push-my-buttons-too: 7/9] Adwaita: messege dialog buttons



commit c00d8aa1db3e8e0c0f343fc3e395add9d73d0a30
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Oct 2 11:18:10 2018 +0200

    Adwaita: messege dialog buttons
    
    - top edge should have no rounding

 gtk/theme/Adwaita/_common.scss           | 4 +++-
 gtk/theme/Adwaita/gtk-contained-dark.css | 6 +++---
 gtk/theme/Adwaita/gtk-contained.css      | 6 +++---
 3 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 37c47752b9..cc72cbf5a1 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3763,19 +3763,21 @@ messagedialog { // Message Dialog styling
 
     .dialog-action-area button {
       padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
-      border-radius: 0;
+      border-radius: 0; /* FIXME: top corners still get 3px rounding */
       border-left-style: solid;
       border-right-style: none;
       border-bottom-style: none;
 
       &:first-child{
         border-left-style: none;
+        border-top-left-radius: 0;
         border-bottom-left-radius: 7px;
         -gtk-outline-bottom-left-radius: 5px;
       }
 
       &:last-child {
         border-bottom-right-radius: 7px;
+        border-top-right-radius: 0;
         -gtk-outline-bottom-right-radius: 5px;
       }
     }
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 6c0adf59b1..c5fc4ddd92 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -1646,11 +1646,11 @@ messagedialog .titlebar { min-height: 20px; background-image: none; background-c
 
 messagedialog.csd.background { border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; }
 
-messagedialog.csd .dialog-action-area button { padding: 10px 14px; border-radius: 0; border-color: pink; 
border-left-style: solid; border-right-style: none; border-bottom-style: none; }
+messagedialog.csd .dialog-action-area button { padding: 10px 14px; border-radius: 0; /* FIXME: top corners 
still get 3px rounding */ border-left-style: solid; border-right-style: none; border-bottom-style: none; }
 
-messagedialog.csd .dialog-action-area button:first-child { border-left-style: none; 
border-bottom-left-radius: 7px; -gtk-outline-bottom-left-radius: 5px; }
+messagedialog.csd .dialog-action-area button:first-child { border-left-style: none; border-top-left-radius: 
0; border-bottom-left-radius: 7px; -gtk-outline-bottom-left-radius: 5px; }
 
-messagedialog.csd .dialog-action-area button:last-child { border-bottom-right-radius: 7px; 
-gtk-outline-bottom-right-radius: 5px; }
+messagedialog.csd .dialog-action-area button:last-child { border-bottom-right-radius: 7px; 
border-top-right-radius: 0; -gtk-outline-bottom-right-radius: 5px; }
 
 filechooser .dialog-action-box { border-top: 1px solid #1b1f20; }
 
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 708da43895..1df24149fb 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -1666,11 +1666,11 @@ messagedialog .titlebar { min-height: 20px; background-image: none; background-c
 
 messagedialog.csd.background { border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; }
 
-messagedialog.csd .dialog-action-area button { padding: 10px 14px; border-radius: 0; border-color: pink; 
border-left-style: solid; border-right-style: none; border-bottom-style: none; }
+messagedialog.csd .dialog-action-area button { padding: 10px 14px; border-radius: 0; /* FIXME: top corners 
still get 3px rounding */ border-left-style: solid; border-right-style: none; border-bottom-style: none; }
 
-messagedialog.csd .dialog-action-area button:first-child { border-left-style: none; 
border-bottom-left-radius: 7px; -gtk-outline-bottom-left-radius: 5px; }
+messagedialog.csd .dialog-action-area button:first-child { border-left-style: none; border-top-left-radius: 
0; border-bottom-left-radius: 7px; -gtk-outline-bottom-left-radius: 5px; }
 
-messagedialog.csd .dialog-action-area button:last-child { border-bottom-right-radius: 7px; 
-gtk-outline-bottom-right-radius: 5px; }
+messagedialog.csd .dialog-action-area button:last-child { border-bottom-right-radius: 7px; 
border-top-right-radius: 0; -gtk-outline-bottom-right-radius: 5px; }
 
 filechooser .dialog-action-box { border-top: 1px solid #b6b6b3; }
 


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