From 0220883625c477e8b9dc93e5eb3ecda045def9c1 Mon Sep 17 00:00:00 2001 From: Khurshid Alam Date: Wed, 8 Feb 2017 20:20:55 +0530 Subject: [PATCH] [Gtk-3.20][Gtk-3.22] GtkCalendar under popover menu --- src/gtk-3.20/scss/widgets/_menu.scss | 54 +++++++++++++++------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/src/gtk-3.20/scss/widgets/_menu.scss b/src/gtk-3.20/scss/widgets/_menu.scss index 4f233f2..1d5655a 100644 --- a/src/gtk-3.20/scss/widgets/_menu.scss +++ b/src/gtk-3.20/scss/widgets/_menu.scss @@ -1,6 +1,32 @@ @import "entry"; + +@mixin menu_calendar($bg, $fg) { + color: $fg; + + &.header { + border-bottom: 1px solid shade($bg, ($contrast + .1)); + border-radius: 0; + + &:backdrop { border-color: shade($bg, ($contrast + .1)); } + } + + &.button { + @extend %undecorated_button; + color: alpha($fg, .55); + + &:hover { + @extend %undecorated_button; + color: $fg; + } + } + + &:indeterminate, + &:indeterminate:backdrop { color: mix($fg, $bg, .5); } +} + + /********* ! Menubar **********/ @@ -115,31 +141,7 @@ } } - calendar { - color: $menu_fg_color; - - &.header { - border-bottom: 1px solid shade($menu_bg_color, ($contrast + .1)); - border-radius: 0; - - &:backdrop { border-color: shade($menu_bg_color, ($contrast + .1)); } - } - - &.button { - @extend %undecorated_button; - - color: alpha($menu_fg_color, .55); - - &:hover { - @extend %undecorated_button; - - color: $menu_fg_color; - } - } - - &:indeterminate, - &:indeterminate:backdrop { color: mix($menu_fg_color, $menu_bg_color, .5); } - } + calendar { @include menu_calendar($menu_bg_color, $menu_fg_color); } // avoids labels color being overridden, see // https://bugzilla.gnome.org/show_bug.cgi?id=767058 @@ -276,6 +278,8 @@ button { @include button($menu_bg_color, $menu_fg_color); } + calendar { @include menu_calendar($menu_bg_color, $menu_fg_color); } + > list, > .view, > toolbar { border-style: none; background-color: transparent;