[gtk+/gtk-3-14] Adwaita: style menu overflow button



commit e119422927ce748957916626517cd9a9e636568c
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Fri Oct 10 13:53:42 2014 +0200

    Adwaita: style menu overflow button
    
    See bug https://bugzilla.gnome.org/show_bug.cgi?id=738158

 gtk/resources/theme/Adwaita/_common.scss           |   14 ++++++++++++++
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |   20 +++++++++++++++++++-
 gtk/resources/theme/Adwaita/gtk-contained.css      |   20 +++++++++++++++++++-
 3 files changed, 52 insertions(+), 2 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 99be694..e09781b 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -1315,6 +1315,20 @@ column-header.button.dnd { // for treeview-like derive widgets
     &.arrow { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic'); }
     &.arrow:dir(rtl) {-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl'); }
   }
+  &.button { // overlow buttons
+    @extend %undecorated_button;
+    border-color: mix($fg_color, $base_color, 10%);
+    border-style: none;
+    border-radius: 0;
+    &.top { border-bottom: 1px solid; }
+    &.bottom { border-top: 1px solid; }
+    &:hover { background-color: mix($fg_color, $base_color, 10%); }
+    &:insensitive {
+      color: transparent;
+      background-color: transparent;
+      border-color: transparent ;
+    }
+  }
 }
 
 .menuitem .accelerator { color: gtkalpha(currentColor,0.55); }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index b8f431e..2e27e31 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -1095,7 +1095,9 @@ GtkCalendar.header .menuitem.titlebutton.button:backdrop:hover, .button:link, .h
 .titlebar .button.titlebutton:link,
 GtkCalendar.header .button.titlebutton:link, .button:visited, .header-bar .button.titlebutton:visited,
 .titlebar .button.titlebutton:visited,
-GtkCalendar.header .button.titlebutton:visited, .button:link:hover, .button:link:active, 
.button:link:checked, .button:visited:hover, .button:visited:active, .button:visited:checked, 
.button:link:backdrop, .button:visited:backdrop, .notebook tab .button, .notebook tab .header-bar 
.button.titlebutton, .header-bar .notebook tab .button.titlebutton,
+GtkCalendar.header .button.titlebutton:visited, .button:link:hover, .button:link:active, 
.button:link:checked, .button:visited:hover, .button:visited:active, .button:visited:checked, 
.button:link:backdrop, .button:visited:backdrop, .menu.button, .header-bar .menu.button.titlebutton,
+.titlebar .menu.button.titlebutton,
+GtkCalendar.header .menu.button.titlebutton, .notebook tab .button, .notebook tab .header-bar 
.button.titlebutton, .header-bar .notebook tab .button.titlebutton,
 .notebook tab .titlebar .button.titlebutton,
 .titlebar .notebook tab .button.titlebutton,
 .notebook tab GtkCalendar.header .button.titlebutton,
@@ -1925,6 +1927,22 @@ GtkCalendar.header column-header .button.titlebutton, column-header .button:hove
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
     .menu .menuitem.arrow:dir(rtl) {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+  .menu.button, .header-bar .menu.button.titlebutton,
+  .titlebar .menu.button.titlebutton,
+  GtkCalendar.header .menu.button.titlebutton {
+    border-color: #3c3c3c;
+    border-style: none;
+    border-radius: 0; }
+    .menu.button.top {
+      border-bottom: 1px solid; }
+    .menu.button.bottom {
+      border-top: 1px solid; }
+    .menu.button:hover {
+      background-color: #3c3c3c; }
+    .menu.button:insensitive {
+      color: transparent;
+      background-color: transparent;
+      border-color: transparent; }
 
 .menuitem .accelerator {
   color: alpha(currentColor,0.55); }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 500bf00..b73bfda 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -1087,7 +1087,9 @@ GtkCalendar.header .menuitem.titlebutton.button:backdrop:hover, .button:link, .h
 .titlebar .button.titlebutton:link,
 GtkCalendar.header .button.titlebutton:link, .button:visited, .header-bar .button.titlebutton:visited,
 .titlebar .button.titlebutton:visited,
-GtkCalendar.header .button.titlebutton:visited, .button:link:hover, .button:link:active, 
.button:link:checked, .button:visited:hover, .button:visited:active, .button:visited:checked, 
.button:link:backdrop, .button:visited:backdrop, .notebook tab .button, .notebook tab .header-bar 
.button.titlebutton, .header-bar .notebook tab .button.titlebutton,
+GtkCalendar.header .button.titlebutton:visited, .button:link:hover, .button:link:active, 
.button:link:checked, .button:visited:hover, .button:visited:active, .button:visited:checked, 
.button:link:backdrop, .button:visited:backdrop, .menu.button, .header-bar .menu.button.titlebutton,
+.titlebar .menu.button.titlebutton,
+GtkCalendar.header .menu.button.titlebutton, .notebook tab .button, .notebook tab .header-bar 
.button.titlebutton, .header-bar .notebook tab .button.titlebutton,
 .notebook tab .titlebar .button.titlebutton,
 .titlebar .notebook tab .button.titlebutton,
 .notebook tab GtkCalendar.header .button.titlebutton,
@@ -1922,6 +1924,22 @@ GtkCalendar.header column-header .button.titlebutton, column-header .button:hove
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
     .menu .menuitem.arrow:dir(rtl) {
       -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+  .menu.button, .header-bar .menu.button.titlebutton,
+  .titlebar .menu.button.titlebutton,
+  GtkCalendar.header .menu.button.titlebutton {
+    border-color: #eaeaea;
+    border-style: none;
+    border-radius: 0; }
+    .menu.button.top {
+      border-bottom: 1px solid; }
+    .menu.button.bottom {
+      border-top: 1px solid; }
+    .menu.button:hover {
+      background-color: #eaeaea; }
+    .menu.button:insensitive {
+      color: transparent;
+      background-color: transparent;
+      border-color: transparent; }
 
 .menuitem .accelerator {
   color: alpha(currentColor,0.55); }


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