[libadwaita/wip/exalm/tab-fixes] tab: Use the default flat style for buttons




commit 12fb5ac72c00ce8fd1a55d2c1ee1edd99b276e92
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu Jun 10 02:49:58 2021 +0500

    tab: Use the default flat style for buttons

 src/adw-tab.ui                        |  3 +++
 src/stylesheet/widgets/_tab-view.scss | 12 ------------
 2 files changed, 3 insertions(+), 12 deletions(-)
---
diff --git a/src/adw-tab.ui b/src/adw-tab.ui
index 84bc4260..9e868cd6 100644
--- a/src/adw-tab.ui
+++ b/src/adw-tab.ui
@@ -22,7 +22,9 @@
         <property name="halign">start</property>
         <signal name="clicked" handler="indicator_clicked_cb" swapped="true"/>
         <style>
+          <class name="flat"/>
           <class name="tab-indicator"/>
+          <class name="image-button"/>
         </style>
         <property name="child">
           <object class="GtkImage" id="indicator_icon">
@@ -83,6 +85,7 @@
         <property name="icon-name">window-close-symbolic</property>
         <signal name="clicked" handler="close_clicked_cb" swapped="true"/>
         <style>
+          <class name="flat"/>
           <class name="tab-close-button"/>
         </style>
       </object>
diff --git a/src/stylesheet/widgets/_tab-view.scss b/src/stylesheet/widgets/_tab-view.scss
index e1489fbd..de13d2f6 100644
--- a/src/stylesheet/widgets/_tab-view.scss
+++ b/src/stylesheet/widgets/_tab-view.scss
@@ -155,18 +155,6 @@ dnd {
       min-width: 24px;
       min-height: 24px;
       border-radius: 99px;
-
-      border: none;
-      box-shadow: none;
-      background: none;
-
-      &:hover {
-        background: gtkalpha($fg_color, .15);
-      }
-
-      &:active {
-        background: gtkalpha(black, .2);
-      }
     }
   }
 }


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