diff --git a/data/styles/Plug.scss b/data/styles/Plug.scss index 0350263d..bcf74957 100644 --- a/data/styles/Plug.scss +++ b/data/styles/Plug.scss @@ -24,7 +24,35 @@ toolbarview { } } - headerbar { + &.undershoot-bottom scrolledwindow { + overshoot.bottom { + background: + linear-gradient( + to bottom, + #{'alpha(@accent_color, 0)'} 80%, + #{'alpha(@accent_color, 0.25)'} 100% + ), + linear-gradient( + to top, + #{'@borders'}, + rgba(black, 0.05) 1px, + rgba(black, 0.0) rem(3px) + ); + } + + undershoot.bottom { + background: + linear-gradient( + to top, + #{'@borders'}, + rgba(black, 0.05) 1px, + rgba(black, 0.0) rem(3px) + ); + } + } + + headerbar, + actionbar { background: inherit; box-shadow: none; } diff --git a/data/styles/SettingsSidebar.scss b/data/styles/SettingsSidebar.scss index 98ac0db4..ae35e7be 100644 --- a/data/styles/SettingsSidebar.scss +++ b/data/styles/SettingsSidebar.scss @@ -1,6 +1,4 @@ settingssidebar { - background: #{'@insensitive_bg_color'}; - list { background: inherit; min-width: rem(200px); @@ -25,4 +23,49 @@ settingssidebar { } } } + + toolbarview { + revealer.bottom-bar { + color: #{'mix(@text_color, @insensitive_bg_color, 0.15)'}; + + &.raised { + box-shadow: 0 -1px #{'alpha(@highlight_color, 0.2)'}; + background-color: rgba(black, 0.01); + background-image: + linear-gradient( + to bottom, + #{'@borders'} 1px, + rgba(black, 0.07) 1px, + transparent rem(3px) + ); + } + + &.raised.border { + background: rgba(black, 0.03); + box-shadow: + 0 -1px #{'@borders'}, + inset 0 1px #{'alpha(@highlight_color, 0.3)'}; + } + + actionbar { + padding: rem(6px); + + box.start > label { + margin: rem(6px); + font-weight: 500; + } + + box.end > switch { + slider, + trough { + min-height: 1.5em; + } + + slider { + min-width: 1.5em; + } + } + } + } + } } diff --git a/lib/SettingsSidebar.vala b/lib/SettingsSidebar.vala index 7ae56f33..cbfd93ec 100644 --- a/lib/SettingsSidebar.vala +++ b/lib/SettingsSidebar.vala @@ -93,6 +93,8 @@ public class Switchboard.SettingsSidebar : Gtk.Widget { toolbarview.add_top_bar (headerbar); toolbarview.set_parent (this); + add_css_class (Granite.STYLE_CLASS_SIDEBAR); + on_sidebar_changed (); stack.pages.items_changed.connect (on_sidebar_changed);