[gtk: 2/3] Adwaita: Make frames rounded




commit c0efadc0f399d87251f236286c4fc602100b6887
Author: nana-4 <hnmaigo gmail com>
Date:   Fri Aug 7 00:54:40 2020 +0900

    Adwaita: Make frames rounded
    
    As per GNOME mockups.
    
    Since GtkFrame now sets GTK_OVERFLOW_HIDDEN, we can round the frame
    without corner overlapping.
    
    This also adds some margin to the child label of GtkFrame to ensure it
    will not be clipped by the rounded corners of the frame.

 gtk/theme/Adwaita/_common.scss | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 64db0790fb..b92747eb5e 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -3005,13 +3005,17 @@ window.dialog.print {
  **********/
 frame,
 .frame {
-  box-shadow: none;
-  margin: 0;
-  padding: 0;
-  border-radius: 0;
   border: 1px solid $borders_color;
 }
 
+frame {
+  border-radius: $window_radius;
+
+  > label {
+    margin: 4px;
+  }
+}
+
 actionbar > revealer >  box {
   padding: 6px;
   border-top: 1px solid $borders_color;
@@ -3220,6 +3224,7 @@ expander-widget {
 calendar {
   color: $text_color;
   border: 1px solid $borders_color;
+  border-radius: $window_radius;
 
   > header {
     border-bottom: 1px solid $borders_color;


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