[libadwaita] stylesheet: Borderless entries



commit 33914a0cbd4230e76dd8354467192d05cb5c96e1
Author: Tobias Bernard <tbernard gnome org>
Date:   Fri Nov 12 14:07:49 2021 +0100

    stylesheet: Borderless entries

 src/stylesheet/widgets/_entries.scss | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)
---
diff --git a/src/stylesheet/widgets/_entries.scss b/src/stylesheet/widgets/_entries.scss
index 350b4f98..4ed39433 100644
--- a/src/stylesheet/widgets/_entries.scss
+++ b/src/stylesheet/widgets/_entries.scss
@@ -2,17 +2,19 @@
 entry {
   %entry_basic, & {
     min-height: 32px;
-    padding-left: 8px;
-    padding-right: 8px;
-    border: 1px solid $border_color;
+    padding-left: 9px;
+    padding-right: 9px;
     border-radius: $button_radius;
     border-spacing: 6px;
-    color: $view_fg_color;
-    background-color: $view_bg_color;
+    background-color: $button_color;
     background-clip: padding-box;
     transition: all 200ms $ease-out-quad;
     caret-color: currentColor;
 
+    @if $contrast == 'high' {
+      box-shadow: inset 0 0 0 1px $border_color;
+    }
+
     @include focus-ring($focus-state: ':focus-within');
 
     > text {
@@ -31,7 +33,7 @@ entry {
         min-height: 0;
         padding: 2px;
         background-color: transparent;
-        border-color: transparent;
+        box-shadow: none;
         border-radius: 0;
       }
     }
@@ -44,6 +46,8 @@ entry {
       &.#{$e_type} {
         @include focus-ring($focus-state: ':focus-within', $fc: gtkalpha($e_color, $focus_border_opacity));
 
+        color: gtkmix($e_color, $view_fg_color, 70%);
+
         > text {
           color: gtkmix($e_color, $view_fg_color, 70%);
 
@@ -63,7 +67,7 @@ entry {
     }
 
     > image { // icons inside the entry
-      opacity: $dim_label_opacity;
+      opacity: if($contrast == 'high', .9, .75);
 
       &:hover { opacity: 1; }
 
@@ -83,15 +87,10 @@ entry {
         box-shadow: inset 0 0 0 1px $drop_target_color;
       }
     }
-
-    .osd & {
-      color: $osd_text_color;
-      background-color: transparentize(black, 0.5);
-    }
   }
 
   > progress {
-    margin-bottom: 2px;
+    margin-bottom: 3px;
 
     > trough > progress {
       background-color: transparent;


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