[gtk+] Adwaita: csd message dialog fixes.



commit e86f409f32ea133b07d19712ddcf6178e2873702
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Mon Jul 7 17:56:29 2014 +0200

    Adwaita: csd message dialog fixes.
    
    Lighter shadow like popovers and bigger radius then buttons on
    the background to avoid antialiasing artifacts.

 gtk/resources/theme/Adwaita/_common.scss           |    9 ++++++---
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    9 +++++----
 gtk/resources/theme/Adwaita/gtk-contained.css      |    9 +++++----
 3 files changed, 16 insertions(+), 11 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 71b2976..cf32e66 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1863,11 +1863,12 @@ GtkCalendar {
   }
   &.csd { // rounded bottom border styling for csd version
     &.background {
-      border-bottom-left-radius: 7px;
-      border-bottom-right-radius: 7px;
+      // bigger radius for better antialiasing
+      border-bottom-left-radius: 9px;
+      border-bottom-right-radius: 9px;
     }
     .dialog-action-area .button {
-      padding: 8px;
+      padding: 12px;
       border-radius: 0;
       @include button(normal, $noedge: true);
       @extend %middle_button;
@@ -2150,6 +2151,8 @@ GtkColorChooserWidget #add-color-button {
     }
     &.message-dialog {
       border-radius: 7px;
+      box-shadow: 0 1px 2px transparentize(black, 0.8),
+                  0 0 0 1px transparentize($_wm_border,0.1);
     }
   }
 }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 92aea3c..f6d5b3d 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -2391,10 +2391,10 @@ GtkCalendar {
     border-style: none;
     box-shadow: inset 0 1px rgba(238, 238, 236, 0.1); }
   .message-dialog.csd.background {
-    border-bottom-left-radius: 7px;
-    border-bottom-right-radius: 7px; }
+    border-bottom-left-radius: 9px;
+    border-bottom-right-radius: 9px; }
   .message-dialog.csd .dialog-action-area .button {
-    padding: 8px;
+    padding: 12px;
     border-radius: 0;
     border-style: solid;
     border-width: 1px;
@@ -2763,7 +2763,8 @@ GtkColorChooserWidget #add-color-button {
     border-radius: 5px;
     box-shadow: none; }
   .window-frame.csd.message-dialog {
-    border-radius: 7px; }
+    border-radius: 7px;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8); }
 
 .button.titlebutton {
   padding: 8px;
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 9f1094b..2f3905b 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -2383,10 +2383,10 @@ GtkCalendar {
     border-style: none;
     box-shadow: inset 0 1px white; }
   .message-dialog.csd.background {
-    border-bottom-left-radius: 7px;
-    border-bottom-right-radius: 7px; }
+    border-bottom-left-radius: 9px;
+    border-bottom-right-radius: 9px; }
   .message-dialog.csd .dialog-action-area .button {
-    padding: 8px;
+    padding: 12px;
     border-radius: 0;
     border-style: solid;
     border-width: 1px;
@@ -2755,7 +2755,8 @@ GtkColorChooserWidget #add-color-button {
     border-radius: 5px;
     box-shadow: none; }
   .window-frame.csd.message-dialog {
-    border-radius: 7px; }
+    border-radius: 7px;
+    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
 
 .button.titlebutton {
   padding: 8px;


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