added 3.16
This commit is contained in:
parent
91db30f5c8
commit
de443e32b9
|
@ -0,0 +1,19 @@
|
||||||
|
/**********************
|
||||||
|
* DE-Specific Styles *
|
||||||
|
**********************/
|
||||||
|
|
||||||
|
@import 'apps/budgie';
|
||||||
|
@import 'apps/gnome';
|
||||||
|
@import 'apps/pantheon';
|
||||||
|
@import 'apps/unity';
|
||||||
|
|
||||||
|
/***********************
|
||||||
|
* App-Specific Styles *
|
||||||
|
***********************/
|
||||||
|
|
||||||
|
@import 'apps/archive-manager';
|
||||||
|
@import 'apps/birdie';
|
||||||
|
@import 'apps/geary';
|
||||||
|
@import 'apps/lightdm';
|
||||||
|
@import 'apps/midori';
|
||||||
|
@import 'apps/vocal';
|
|
@ -0,0 +1,94 @@
|
||||||
|
//apps rely on some named colors to be exported
|
||||||
|
/* GTK NAMED COLORS
|
||||||
|
----------------
|
||||||
|
use responsibly! */
|
||||||
|
|
||||||
|
// Sass thinks we're using the colors in the variables as strings and may shoot
|
||||||
|
// warning, it's innocuous and can be defeated by using "" + $var
|
||||||
|
|
||||||
|
/* widget text/foreground color */
|
||||||
|
@define-color theme_fg_color #{"" +$fg_color};
|
||||||
|
|
||||||
|
/* text color for entries, views and content in general */
|
||||||
|
@define-color theme_text_color #{"" +$text_color};
|
||||||
|
|
||||||
|
/* widget base background color */
|
||||||
|
@define-color theme_bg_color #{"" +$bg_color};
|
||||||
|
|
||||||
|
/* text widgets and the like base background color */
|
||||||
|
@define-color theme_base_color #{"" +$base_color};
|
||||||
|
|
||||||
|
/* base background color of selections */
|
||||||
|
@define-color theme_selected_bg_color #{"" +$selected_bg_color};
|
||||||
|
|
||||||
|
/* text/foreground color of selections */
|
||||||
|
@define-color theme_selected_fg_color #{"" +$selected_fg_color};
|
||||||
|
|
||||||
|
/* base background color of insensitive widgets */
|
||||||
|
@define-color insensitive_bg_color #{"" +$insensitive_bg_color};
|
||||||
|
|
||||||
|
/* text foreground color of insensitive widgets */
|
||||||
|
@define-color insensitive_fg_color #{"" +$insensitive_fg_color};
|
||||||
|
|
||||||
|
/* insensitive text widgets and the like base background color */
|
||||||
|
@define-color insensitive_base_color #{"" +$base_color};
|
||||||
|
|
||||||
|
/* widget text/foreground color on backdrop windows */
|
||||||
|
@define-color theme_unfocused_fg_color #{"" +$backdrop_fg_color};
|
||||||
|
|
||||||
|
/* text color for entries, views and content in general on backdrop windows */
|
||||||
|
@define-color theme_unfocused_text_color #{"" +$text_color};
|
||||||
|
|
||||||
|
/* widget base background color on backdrop windows */
|
||||||
|
@define-color theme_unfocused_bg_color #{"" +$backdrop_bg_color};
|
||||||
|
|
||||||
|
/* text widgets and the like base background color on backdrop windows */
|
||||||
|
@define-color theme_unfocused_base_color #{"" +$backdrop_base_color};
|
||||||
|
|
||||||
|
/* base background color of selections on backdrop windows */
|
||||||
|
@define-color theme_unfocused_selected_bg_color #{"" +$selected_bg_color};
|
||||||
|
|
||||||
|
/* text/foreground color of selections on backdrop windows */
|
||||||
|
@define-color theme_unfocused_selected_fg_color #{"" + $selected_fg_color};
|
||||||
|
|
||||||
|
/* widgets main borders color */
|
||||||
|
@define-color borders #{"" +$borders_color};
|
||||||
|
|
||||||
|
/* widgets main borders color on backdrop windows */
|
||||||
|
@define-color unfocused_borders #{"" +$backdrop_borders_color};
|
||||||
|
|
||||||
|
/* these are pretty self explicative */
|
||||||
|
@define-color warning_color #{"" +$warning_color};
|
||||||
|
@define-color error_color #{"" +$error_color};
|
||||||
|
@define-color success_color #{"" +$success_color};
|
||||||
|
//@define-color destructive_color #{$destructive_color}
|
||||||
|
|
||||||
|
//WM
|
||||||
|
|
||||||
|
$_wm_highlight: if($variant=='light', $top_highlight, // Sass gets mad if this is
|
||||||
|
transparentize(black,1)); // done directly in the
|
||||||
|
// color definition
|
||||||
|
|
||||||
|
/* these colors are exported for the window manager and shouldn't be used in applications,
|
||||||
|
read if you used those and something break with a version upgrade you're on your own... */
|
||||||
|
@define-color wm_title shade(#{$fg_color}, 1.8);
|
||||||
|
@define-color wm_unfocused_title #{$backdrop_fg_color};
|
||||||
|
@define-color wm_highlight #{"" + $_wm_highlight};
|
||||||
|
@define-color wm_borders_edge #{"" + $borders_edge};
|
||||||
|
|
||||||
|
@define-color wm_bg_a shade(#{$bg_color}, 1.2);
|
||||||
|
@define-color wm_bg_b #{$bg_color};
|
||||||
|
|
||||||
|
@define-color wm_shadow alpha(black, 0.35);
|
||||||
|
@define-color wm_border alpha(black, 0.18);
|
||||||
|
|
||||||
|
@define-color wm_button_hover_color_a shade(#{$bg_color}, 1.3);
|
||||||
|
@define-color wm_button_hover_color_b #{$bg_color};
|
||||||
|
@define-color wm_button_active_color_a shade(#{$bg_color}, 0.85);
|
||||||
|
@define-color wm_button_active_color_b shade(#{$bg_color}, 0.89);
|
||||||
|
@define-color wm_button_active_color_c shade(#{$bg_color}, 0.9);
|
||||||
|
|
||||||
|
//FIXME this is really an API
|
||||||
|
|
||||||
|
@define-color content_view_bg #{"" + $base_color};
|
||||||
|
|
|
@ -0,0 +1,94 @@
|
||||||
|
// When color definition differs for dark and light variant
|
||||||
|
// it gets @if ed depending on $variant
|
||||||
|
|
||||||
|
// Main definitions
|
||||||
|
$base_color: if($variant == 'light', #ffffff, #636E73);
|
||||||
|
$bg_color: if($variant == 'light', #f7f7f7, #4F585C);
|
||||||
|
$fg_color: if($variant == 'light', #666666, lighten(#A1A8AB, 10%));
|
||||||
|
$text_color: if($variant == 'light', $fg_color, $fg_color);
|
||||||
|
$headerbar_bg_color: if($variant == 'light', #636E73, #3B4245);
|
||||||
|
$headerbar_fg_color: if($variant == 'light', #ffffff, transparentize(#ffffff, 0.5));
|
||||||
|
|
||||||
|
// Primary colors
|
||||||
|
$red: #f34235;
|
||||||
|
$orange: #fe9700;
|
||||||
|
$yellow: #feea3a;
|
||||||
|
$green: #4bae4f;
|
||||||
|
$blue: #2095f2;
|
||||||
|
$purple: #9b26af;
|
||||||
|
|
||||||
|
$selected_fg_color: #ffffff;
|
||||||
|
$selected_bg_color: if($variant == 'light', #347D9F, lighten(#347D9F,10%));
|
||||||
|
$selected_borders_color: darken($selected_bg_color, 10%);
|
||||||
|
$borders_color: if($variant == 'light', darken($bg_color,15%), darken($bg_color,10%));
|
||||||
|
$borders_edge: if($variant == 'light', transparentize(white, 0.8), transparentize(white, 0.9));
|
||||||
|
$link_color: blue;
|
||||||
|
$link_visited_color:transparentize($link_color,0.5);
|
||||||
|
$top_highlight: $borders_edge;
|
||||||
|
$bottom_highlight: if($variant == 'light', transparentize(white, 0.7), transparentize(white, 0.9));
|
||||||
|
$dark_fill: mix($borders_color, $bg_color, 35%);
|
||||||
|
$menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%));
|
||||||
|
$popover_bg_color: $base_color;
|
||||||
|
$popover_hover_color: lighten($popover_bg_color, 5%);
|
||||||
|
|
||||||
|
$selection_mode_headerbar_bg_color: #347D9F;
|
||||||
|
|
||||||
|
$scrollbar_bg_color: if($variant == 'light', mix($bg_color, $fg_color, 80%), mix($base_color, $bg_color, 50%));
|
||||||
|
$scrollbar_slider_color: mix($fg_color, $bg_color, 60%);
|
||||||
|
$scrollbar_slider_hover_color: mix($fg_color, $bg_color, 80%);
|
||||||
|
$scrollbar_slider_active_color: if($variant=='light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 10%));
|
||||||
|
|
||||||
|
$success_color: if($variant == 'light', $green, darken($green,10%));
|
||||||
|
$destructive_color: if($variant == 'light', $red, darken($red,10%));
|
||||||
|
$suggested_color: if($variant == 'light', $selected_bg_color, darken($selected_bg_color,10%));
|
||||||
|
|
||||||
|
$osd_fg_color: #A1A8AB;
|
||||||
|
$osd_text_color: white;
|
||||||
|
$osd_bg_color: transparentize(#202526, 0.2);
|
||||||
|
$osd_insensitive_bg_color: transparentize(mix($osd_fg_color, opacify($osd_bg_color, 1), 10%), 0.5);
|
||||||
|
$osd_insensitive_fg_color: mix($osd_fg_color, opacify($osd_bg_color, 1), 50%);
|
||||||
|
$osd_borders_color: transparentize(black, 0.3);
|
||||||
|
|
||||||
|
$sidebar_bg_color: mix($bg_color, $base_color, 50%);
|
||||||
|
$base_hover_color: transparentize($fg_color, 0.95);
|
||||||
|
|
||||||
|
$tooltip_borders_color: transparentize(white, 0.9);
|
||||||
|
$shadow_color: transparentize(black, 0.8);
|
||||||
|
|
||||||
|
$drop_target_color: #4e9a06;
|
||||||
|
|
||||||
|
// Infobar colors
|
||||||
|
$warning_color: $yellow;
|
||||||
|
$error_color: $red;
|
||||||
|
$info_color: $blue;
|
||||||
|
$question_color: $green;
|
||||||
|
|
||||||
|
// Panel colors
|
||||||
|
$panel_bg_color: transparentize(black, 0.3);
|
||||||
|
$panel_fg_color: white;
|
||||||
|
$panel_borders_color: transparentize(black, 0.8);
|
||||||
|
|
||||||
|
// Insensitive state colors
|
||||||
|
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
|
||||||
|
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
|
||||||
|
$insensitive_base_color: darken($base_color, 5%);
|
||||||
|
$insensitive_borders_color: $borders_color;
|
||||||
|
|
||||||
|
// Backdrop state colors
|
||||||
|
$backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%));
|
||||||
|
$backdrop_text_color: mix($text_color, $backdrop_base_color, 80%);
|
||||||
|
$backdrop_bg_color: $bg_color;
|
||||||
|
$backdrop_headerbar_bg_color: darken($headerbar_bg_color, 5%);
|
||||||
|
$backdrop_headerbar_fg_color: if($variant == 'light', transparentize($headerbar_fg_color, 0.5), transparentize($headerbar_fg_color, 0.2));
|
||||||
|
$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
|
||||||
|
$backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%));
|
||||||
|
$backdrop_selected_bg_color: if($variant == 'light', lighten($selected_bg_color, 5%), lighten($selected_bg_color, 5%));
|
||||||
|
$backdrop_selected_fg_color: if($variant == 'light', transparentize($selected_fg_color, 0.5), transparentize($selected_fg_color, 0.5));
|
||||||
|
$backdrop_borders_color: mix($borders_color, $bg_color, 90%);
|
||||||
|
$backdrop_dark_fill: mix($backdrop_borders_color, $backdrop_bg_color, 35%);
|
||||||
|
$backdrop_sidebar_bg_color: mix($backdrop_bg_color, $backdrop_base_color, 50%);
|
||||||
|
|
||||||
|
$backdrop_scrollbar_bg_color: darken($backdrop_bg_color, 3%);
|
||||||
|
$backdrop_scrollbar_slider_color: mix($backdrop_fg_color, $backdrop_bg_color, 40%);
|
||||||
|
|
||||||
|
$backdrop_menu_color: if($variant == 'light', $backdrop_base_color, mix($backdrop_bg_color, $backdrop_base_color, 20%));
|
|
@ -0,0 +1,50 @@
|
||||||
|
/**********
|
||||||
|
* Common *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
@function gtkalpha($c,$a) {
|
||||||
|
@return unquote("alpha(#{$c},#{$a})");
|
||||||
|
}
|
||||||
|
|
||||||
|
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||||
|
$asset_suffix: if($variant=='dark', '-dark', '');
|
||||||
|
$backdrop_transition: 200ms ease-out;
|
||||||
|
$button_transition: all 200ms $ease-out-quad;
|
||||||
|
|
||||||
|
* {
|
||||||
|
padding: 0;
|
||||||
|
-GtkToolButton-icon-spacing: 4;
|
||||||
|
-GtkTextView-error-underline-color: $error_color;
|
||||||
|
|
||||||
|
// The size for scrollbars. The slider is 2px smaller, but we keep it
|
||||||
|
// up so that the whole area is sensitive to button presses for the
|
||||||
|
// slider. The stepper button is larger in both directions, the slider
|
||||||
|
// only in the width
|
||||||
|
|
||||||
|
-GtkScrolledWindow-scrollbar-spacing: 0;
|
||||||
|
|
||||||
|
-GtkToolItemGroup-expander-size: 11;
|
||||||
|
-GtkTreeView-expander-size: 11;
|
||||||
|
|
||||||
|
-GtkTreeView-horizontal-separator: 4;
|
||||||
|
|
||||||
|
-GtkWidget-text-handle-width: 20;
|
||||||
|
-GtkWidget-text-handle-height: 24;
|
||||||
|
|
||||||
|
-GtkDialog-button-spacing: 4;
|
||||||
|
-GtkDialog-action-area-border: 0;
|
||||||
|
|
||||||
|
|
||||||
|
-GtkPaned-handle-size: 1;
|
||||||
|
|
||||||
|
// We use the outline properties to signal the focus properties
|
||||||
|
// to the adwaita engine: using real CSS properties is faster,
|
||||||
|
// and we don't use any outlines for now.
|
||||||
|
|
||||||
|
// outline-color: transparentize($fg_color, 0.7);
|
||||||
|
// outline-style: dashed;
|
||||||
|
// outline-offset: -3px;
|
||||||
|
// outline-width: 1px;
|
||||||
|
// outline-radius: 2px;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,591 @@
|
||||||
|
// Drawing mixins
|
||||||
|
|
||||||
|
// generic drawing of more complex things
|
||||||
|
|
||||||
|
@function _widget_edge($c:$borders_edge) {
|
||||||
|
// outer highlight "used" on most widgets
|
||||||
|
@if $c == none { @return none; }
|
||||||
|
@else { @return 0 1px $c; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin _shadows($shadow1, $shadow2:none, $shadow3:none, $shadow4:none) {
|
||||||
|
//
|
||||||
|
// Helper function to stack up to 4 box-shadows;
|
||||||
|
//
|
||||||
|
@if $shadow4!=none { box-shadow: $shadow1, $shadow2, $shadow3, $shadow4; }
|
||||||
|
@else if $shadow3!=none { box-shadow: $shadow1, $shadow2, $shadow3; }
|
||||||
|
@else if $shadow2!=none { box-shadow: $shadow1, $shadow2; }
|
||||||
|
@else { box-shadow: $shadow1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// entries
|
||||||
|
|
||||||
|
@function entry_focus_border($fc:$selected_bg_color) {
|
||||||
|
@if $variant == 'light' { @return $fc; }
|
||||||
|
@else { @return if($fc==$selected_bg_color, $selected_borders_color, darken($fc, 35%)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@function entry_focus_shadow($fc:$selected_bg_color) {
|
||||||
|
@return inset 0 1px 2px 0 transparentize(black, 0.95), inset 0 1px 1px 0 transparentize(black, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
@function entry_gradient($c) {
|
||||||
|
@if $variant=='light' { @return linear-gradient(to bottom, mix($borders_color, $c, 45%),
|
||||||
|
mix($borders_color, $c, 3%) 2px,
|
||||||
|
$c 90%); }
|
||||||
|
@else { @return linear-gradient(to bottom, mix($borders_color, $c, 95%),
|
||||||
|
mix($borders_color, $c, 40%) 3px,
|
||||||
|
$c 90%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin entry($t, $fc:$selected_bg_color, $edge: none) {
|
||||||
|
//
|
||||||
|
// Entries drawing function
|
||||||
|
//
|
||||||
|
// $t: entry type
|
||||||
|
// $fc: focus color
|
||||||
|
// $edge: set to none to not draw the bottom edge or specify a color to not
|
||||||
|
// use the default one
|
||||||
|
//
|
||||||
|
// possible $t values:
|
||||||
|
// normal, focus, insensitive, backdrop, backdrop-insensitive, osd, osd-focus, osd-backdrop;
|
||||||
|
//
|
||||||
|
|
||||||
|
$_blank_edge: if($edge == none, none, 0 1px transparentize($edge, 1));
|
||||||
|
$_entry_edge: if($edge == none, none, _widget_edge($edge));
|
||||||
|
|
||||||
|
@if $t==normal {
|
||||||
|
color: $text_color;
|
||||||
|
border-color: $borders_color;
|
||||||
|
background-color:$base_color;
|
||||||
|
@include _shadows(entry_focus_shadow(transparentize($fc, 1)), $_entry_edge);
|
||||||
|
// for the transition to work the number of shadows in different states needs to match, hence the transparent shadow here.
|
||||||
|
}
|
||||||
|
@if $t==focus {
|
||||||
|
@include _shadows(entry_focus_shadow($fc), $_entry_edge);
|
||||||
|
border-color: entry_focus_border($fc);
|
||||||
|
}
|
||||||
|
@if $t==insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
border-color: $borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $insensitive_bg_color);
|
||||||
|
box-shadow: $_entry_edge;
|
||||||
|
}
|
||||||
|
@if $t==backdrop {
|
||||||
|
color: $backdrop_text_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $backdrop_base_color);
|
||||||
|
box-shadow: $_blank_edge;
|
||||||
|
}
|
||||||
|
@if $t==backdrop-insensitive {
|
||||||
|
color: $backdrop_insensitive_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $insensitive_bg_color);
|
||||||
|
box-shadow: $_blank_edge;
|
||||||
|
}
|
||||||
|
@if $t==osd {
|
||||||
|
color: $osd_text_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, transparentize(opacify($osd_borders_color, 1), 0.5));
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: 0 1px black;
|
||||||
|
icon-shadow: 0 1px black;
|
||||||
|
}
|
||||||
|
@if $t==osd-focus {
|
||||||
|
color: $osd_text_color;
|
||||||
|
border-color: $selected_bg_color;
|
||||||
|
background-image: linear-gradient(to bottom, transparentize(opacify($osd_borders_color, 1), 0.5));
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: entry_focus_shadow($fc);
|
||||||
|
text-shadow: 0 1px black;
|
||||||
|
icon-shadow: 0 1px black;
|
||||||
|
}
|
||||||
|
@if $t==osd-insensitive {
|
||||||
|
color: $osd_insensitive_fg_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $osd_insensitive_bg_color);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
@if $t==osd-backdrop {
|
||||||
|
color: $osd_text_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, transparentize(opacify($osd_borders_color, 1), 0.5));
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Buttons
|
||||||
|
//
|
||||||
|
|
||||||
|
@function _border_color ($c) { @return darken($c, 25%); } // colored buttons want
|
||||||
|
// the border form the
|
||||||
|
// base color
|
||||||
|
|
||||||
|
@function _text_shadow_color ($tc: $fg_color, $bg: $bg_color) {
|
||||||
|
//
|
||||||
|
// calculate the color of text shadows
|
||||||
|
//
|
||||||
|
// $tc is the text color
|
||||||
|
// $bg is the background color
|
||||||
|
//
|
||||||
|
$_lbg: lightness($bg)/100%;
|
||||||
|
@if lightness($tc)<50% { @return transparentize(white, 1-$_lbg/($_lbg*1.3)); }
|
||||||
|
@else { @return transparentize(black, $_lbg*0.8); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@function _button_hilight_color($c) {
|
||||||
|
//
|
||||||
|
// calculate the right top hilight color for buttons
|
||||||
|
//
|
||||||
|
// $c: base color;
|
||||||
|
//
|
||||||
|
@if lightness($c)>95% { @return white; }
|
||||||
|
@else if lightness($c)>90% { @return transparentize(white, 0.2); }
|
||||||
|
@else if lightness($c)>80% { @return transparentize(white, 0.4); }
|
||||||
|
@else if lightness($c)>50% { @return transparentize(white, 0.6); }
|
||||||
|
@else if lightness($c)>40% { @return transparentize(white, 0.8); }
|
||||||
|
@else { @return transparentize(white, 0.95); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin _button_text_shadow ($tc:$fg_color, $bg:$bg_color) {
|
||||||
|
//
|
||||||
|
// helper function for the text emboss effect
|
||||||
|
//
|
||||||
|
// $tc is the optional text color, not the shadow color
|
||||||
|
//
|
||||||
|
// TODO: this functions needs a way to deal with special cases
|
||||||
|
//
|
||||||
|
|
||||||
|
$_shadow: _text_shadow_color($tc, $bg);
|
||||||
|
|
||||||
|
@if lightness($tc)<50% {
|
||||||
|
text-shadow: 0 1px $_shadow;
|
||||||
|
icon-shadow: 0 1px $_shadow;
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
text-shadow: 0 1px transparentize(black, 0.8);
|
||||||
|
icon-shadow: 0 1px transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin button($t, $c:$bg_color, $tc:$fg_color, $edge: none) {
|
||||||
|
//
|
||||||
|
// Button drawing function
|
||||||
|
//
|
||||||
|
// $t: button type,
|
||||||
|
// $c: base button color for colored* types
|
||||||
|
// $tc: optional text color for colored* types
|
||||||
|
// $edge: set to none to not draw the bottom edge or specify a color to not
|
||||||
|
// use the default one
|
||||||
|
//
|
||||||
|
// possible $t values:
|
||||||
|
// normal, hover, active, insensitive, insensitive-active,
|
||||||
|
// backdrop, backdrop-active, backdrop-insensitive, backdrop-insensitive-active,
|
||||||
|
// osd, osd-hover, osd-active, osd-insensitive, osd-backdrop, undecorated
|
||||||
|
//
|
||||||
|
|
||||||
|
$_hilight_color: _button_hilight_color($c);
|
||||||
|
$_button_edge: if($edge == none, none, _widget_edge($edge));
|
||||||
|
$_blank_edge: if($edge == none, none, _widget_edge(transparentize($edge,1)));
|
||||||
|
|
||||||
|
// Normal Button
|
||||||
|
@if $t==normal {
|
||||||
|
|
||||||
|
color: $tc;
|
||||||
|
outline-color: transparentize($tc, 0.7);
|
||||||
|
border-color: if($c!=$bg_color, _border_color($c), $borders_color);
|
||||||
|
background-image: linear-gradient(to bottom, $c, darken($c, 5%));
|
||||||
|
@include _button_text_shadow($tc, $c);
|
||||||
|
@include _shadows(inset 0 1px $_hilight_color, $_button_edge);
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow:0 1px 0 0 transparentize(white, 0.2);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow:0 1px 0 0 transparentize(white, 0.95);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover Button
|
||||||
|
|
||||||
|
@else if $t==hover {
|
||||||
|
|
||||||
|
color: $tc;
|
||||||
|
outline-color: transparentize($tc, 0.7);
|
||||||
|
border-color: if($c!=$bg_color, _border_color($c), $borders_color);
|
||||||
|
@if $variant == 'light' {
|
||||||
|
background-image: linear-gradient(to bottom, lighten($c, 6%), $c 60%, darken($c, 4%));
|
||||||
|
@include _button_text_shadow($tc,lighten($c, 6%));
|
||||||
|
@include _shadows(inset 0 1px _button_hilight_color(lighten($c, 6%)), $_button_edge);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
background-image: linear-gradient(to bottom, lighten($c, 1%), darken($c, 2%) 60%, darken($c, 4%));
|
||||||
|
@include _button_text_shadow($tc,lighten($c, 6%));
|
||||||
|
@include _shadows(inset 0 1px _button_hilight_color(darken($c, 2%)), $_button_edge);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Pressed button
|
||||||
|
@else if $t==active {
|
||||||
|
|
||||||
|
color: $tc;
|
||||||
|
outline-color: transparentize($tc, 0.7);
|
||||||
|
border-color: if($c!=$bg_color, _border_color($c), $borders_color);
|
||||||
|
background-image: linear-gradient(to bottom, darken($c, 7%), darken($c, 2%));
|
||||||
|
@include _button_text_shadow($tc, darken($c,10%));
|
||||||
|
@include _shadows(inset 0 2px 1px -2px transparentize(black,0.4),
|
||||||
|
$_button_edge);
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.2);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.95);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insensitive Button
|
||||||
|
@else if $t==insensitive {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color, mix($c, $base_color, 85%), $insensitive_bg_color);
|
||||||
|
|
||||||
|
GtkLabel, & { color: if($tc!=$fg_color, mix($tc, $_bg, 50%), $insensitive_fg_color); }
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, _border_color($c), $insensitive_borders_color);
|
||||||
|
background-image: none;
|
||||||
|
background-color: $_bg;
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insensitive Pushed Button
|
||||||
|
@else if $t==insensitive-active {
|
||||||
|
$_bg: if($c!=$bg_color, darken(mix($c,$base_color, 85%), 5%),
|
||||||
|
$insensitive_bg_color);
|
||||||
|
$_bc: if($c!=$bg_color, _border_color($c), $insensitive_borders_color);
|
||||||
|
|
||||||
|
GtkLabel, & { color: if($c!=$bg_color, mix($tc, $_bg, 60%), $insensitive_fg_color); }
|
||||||
|
|
||||||
|
border-color: $_bc;
|
||||||
|
background-image: none;
|
||||||
|
background-color: $_bg;
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.2);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.95);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backdrop Button
|
||||||
|
@else if $t==backdrop {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color,$c,$backdrop_bg_color);
|
||||||
|
$_bc: if($variant=='light',$c,_border_color($c));
|
||||||
|
|
||||||
|
GtkLabel, & { color: if($tc!=$fg_color,mix($tc, $_bg, 80%), $backdrop_fg_color); }
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, $_bc, $backdrop_borders_color);
|
||||||
|
background-image: linear-gradient(to bottom, $_bg);
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
@include _shadows(inset 0 1px transparentize(white, 1), $_blank_edge);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backdrop Pressed Button
|
||||||
|
@else if $t==backdrop-active {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color, darken($c, 10%), $backdrop_dark_fill);
|
||||||
|
$_bc: if($variant=='light',$_bg,_border_color($c));
|
||||||
|
|
||||||
|
GtkLabel, & { color: if($tc!=$fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color); }
|
||||||
|
label, & { color: if($tc!=$fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color); }
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, $_bc, $backdrop_borders_color);
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.2);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.95);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insensitive Backdrop Button
|
||||||
|
@else if $t==backdrop-insensitive {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color, mix($c, $base_color, 85%), $insensitive_bg_color);
|
||||||
|
$_bc: if($variant=='light', $_bg,_border_color($c));
|
||||||
|
|
||||||
|
GtkLabel, & { color: if($c!=$bg_color, mix($tc, $_bg, 35%), $backdrop_insensitive_color); }
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, $_bc, $backdrop_borders_color);
|
||||||
|
background-image: none;
|
||||||
|
background-color: $_bg;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
// white with 0 alpha to avoid an ugly transition, since no color means
|
||||||
|
// black with 0 alpha
|
||||||
|
@include _shadows(inset 0 1px transparentize(white, 1), $_blank_edge);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insensitive Backdrop Pushed Button
|
||||||
|
@else if $t==backdrop-insensitive-active {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color, darken(mix($c, $base_color, 85%), 5%),
|
||||||
|
darken($insensitive_bg_color, 5%));
|
||||||
|
$_bc: if($variant=='light', $_bg,_border_color($c));
|
||||||
|
|
||||||
|
GtkLabel { color: if($c!=$bg_color, mix($tc, $_bg, 35%), $backdrop_insensitive_color); }
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, $_bc, $backdrop_borders_color);
|
||||||
|
background-image: none;
|
||||||
|
background-color: $_bg;
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.2);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow:inset 0 1px 1px 0 transparentize(black, 0.95), 0 1px 0 0 transparentize(white, 0.95);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD Button
|
||||||
|
@else if $t==osd {
|
||||||
|
$_bg: if($c!=$bg_color, transparentize($c, 0.5), $osd_bg_color);
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $_bg);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: inset 0 1px transparentize(white, 0.9);
|
||||||
|
text-shadow: 0 1px black;
|
||||||
|
icon-shadow: 0 1px black;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hover OSD Button
|
||||||
|
@else if $t==osd-hover {
|
||||||
|
$_bg: if($c!=$bg_color, transparentize($c, 0.3), lighten($osd_bg_color, 12%));
|
||||||
|
|
||||||
|
color: white;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $_bg);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: inset 0 1px transparentize(white, 0.9);
|
||||||
|
text-shadow: 0 1px black;
|
||||||
|
icon-shadow: 0 1px black;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ACtive OSD Button
|
||||||
|
@else if $t==osd-active {
|
||||||
|
$_bg: if($c!=$bg_color, $c, $osd_borders_color);
|
||||||
|
|
||||||
|
color: white;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $_bg);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insensitive OSD Button
|
||||||
|
@else if $t==osd-insensitive {
|
||||||
|
color: $osd_insensitive_fg_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $osd_insensitive_bg_color);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Backdrop OSD Button
|
||||||
|
@else if $t==osd-backdrop {
|
||||||
|
|
||||||
|
$_bg: if($c!=$bg_color, transparentize($c, 0.5),
|
||||||
|
$osd_bg_color);
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-image: linear-gradient(to bottom, $_bg);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Reset
|
||||||
|
@else if $t==undecorated {
|
||||||
|
border-color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
|
@include _shadows(inset 0 1px transparentize(white, 1), $_blank_edge);
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin trough($flat:false, $c:$bg_color, $tc:$fg_color, $noedge:true) {
|
||||||
|
color: mix($tc, $bg_color, 80%);
|
||||||
|
@if $flat { background-image: linear-gradient(to bottom, $c); }
|
||||||
|
@else {
|
||||||
|
background-image: linear-gradient(to bottom,
|
||||||
|
mix(black,$c,15%) 5%,
|
||||||
|
mix(black,$c,10%) 20%,
|
||||||
|
mix(black,$c,10%) 90%,
|
||||||
|
$c);
|
||||||
|
}
|
||||||
|
|
||||||
|
border-color: if($c!=$bg_color, _border_color($c), $border_color);
|
||||||
|
|
||||||
|
@if not($noedge) {
|
||||||
|
@if lightness($c) > 60% {
|
||||||
|
box-shadow: inset 0 -1px $borders_edge,
|
||||||
|
0 1px $borders_edge;
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
box-shadow: inset 0 -1px transparentize($borders_edge, 0.5),
|
||||||
|
0 1px transparentize($borders_edge, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else { box-shadow: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin overshoot($p, $t:normal, $c:$fg_color) {
|
||||||
|
//
|
||||||
|
// overshoot
|
||||||
|
//
|
||||||
|
// $p: position
|
||||||
|
// $t: type
|
||||||
|
// $c: base color
|
||||||
|
//
|
||||||
|
// possible $p values:
|
||||||
|
// top, bottom, right, left
|
||||||
|
//
|
||||||
|
// possible $t values:
|
||||||
|
// normal, backdrop
|
||||||
|
//
|
||||||
|
|
||||||
|
$_small_gradient_length: 5%;
|
||||||
|
$_big_gradient_length: 100%;
|
||||||
|
|
||||||
|
$_position: center top;
|
||||||
|
$_small_gradient_size: 100% $_small_gradient_length;
|
||||||
|
$_big_gradient_size: 100% $_big_gradient_length;
|
||||||
|
|
||||||
|
@if $p==bottom {
|
||||||
|
$_position: center bottom;
|
||||||
|
$_linear_gradient_direction: to top;
|
||||||
|
}
|
||||||
|
|
||||||
|
@else if $p==right {
|
||||||
|
$_position: right center;
|
||||||
|
$_small_gradient_size: $_small_gradient_length 100%;
|
||||||
|
$_big_gradient_size: $_big_gradient_length 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@else if $p==left {
|
||||||
|
$_position: left center;
|
||||||
|
$_small_gradient_size: $_small_gradient_length 100%;
|
||||||
|
$_big_gradient_size: $_big_gradient_length 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
$_small_gradient_color: $c;
|
||||||
|
$_big_gradient_color: $c;
|
||||||
|
|
||||||
|
@if $c==$fg_color {
|
||||||
|
$_small_gradient_color: darken($borders_color, 10%);
|
||||||
|
$_big_gradient_color: $fg_color;
|
||||||
|
|
||||||
|
@if $t==backdrop { $_small_gradient_color: $backdrop_borders_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
$_small_gradient: -gtk-gradient(radial,
|
||||||
|
$_position, 0,
|
||||||
|
$_position, 0.5,
|
||||||
|
to($_small_gradient_color),
|
||||||
|
to(transparentize($_small_gradient_color, 1)));
|
||||||
|
|
||||||
|
$_big_gradient: -gtk-gradient(radial,
|
||||||
|
$_position, 0,
|
||||||
|
$_position, 0.6,
|
||||||
|
from(transparentize($_big_gradient_color, 0.93)),
|
||||||
|
to(transparentize($_big_gradient_color, 1)));
|
||||||
|
|
||||||
|
@if $t==normal {
|
||||||
|
background-image: $_small_gradient, $_big_gradient;
|
||||||
|
background-size: $_small_gradient_size, $_big_gradient_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@else if $t==backdrop {
|
||||||
|
background-image: $_small_gradient;
|
||||||
|
background-size: $_small_gradient_size;
|
||||||
|
}
|
||||||
|
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: $_position;
|
||||||
|
|
||||||
|
background-color: transparent; // reset some properties to be sure to not inherit them somehow
|
||||||
|
border: none; //
|
||||||
|
box-shadow: none; //
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin undershoot($p) {
|
||||||
|
//
|
||||||
|
// undershoot
|
||||||
|
//
|
||||||
|
// $p: position
|
||||||
|
//
|
||||||
|
// possible $p values:
|
||||||
|
// top, bottom, right, left
|
||||||
|
//
|
||||||
|
|
||||||
|
$_undershoot_color_dark: transparentize(black, 0.8);
|
||||||
|
$_undershoot_color_light: transparentize(white, 0.8);
|
||||||
|
|
||||||
|
$_gradient_dir: left;
|
||||||
|
$_dash_bg_size: 10px 1px;
|
||||||
|
$_gradient_repeat: repeat-x;
|
||||||
|
$_bg_pos: center $p;
|
||||||
|
|
||||||
|
background-color: transparent; // shouldn't be needed, but better to be sure;
|
||||||
|
|
||||||
|
@if ($p == left) or ($p == right) {
|
||||||
|
$_gradient_dir: top;
|
||||||
|
$_dash_bg_size: 1px 10px;
|
||||||
|
$_gradient_repeat: repeat-y;
|
||||||
|
$_bg_pos: $p center;
|
||||||
|
}
|
||||||
|
|
||||||
|
background-image: linear-gradient(to $_gradient_dir, // this is the dashed line
|
||||||
|
$_undershoot_color_light 50%,
|
||||||
|
$_undershoot_color_dark 50%);
|
||||||
|
|
||||||
|
padding-#{$p}: 1px;
|
||||||
|
background-size: $_dash_bg_size;
|
||||||
|
background-repeat: $_gradient_repeat;
|
||||||
|
background-origin: content-box;
|
||||||
|
background-position: $_bg_pos;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
|
@ -0,0 +1,40 @@
|
||||||
|
/***********
|
||||||
|
* Widgets *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
@import 'widgets/action-bars';
|
||||||
|
@import 'widgets/app-notifications';
|
||||||
|
@import 'widgets/base-states';
|
||||||
|
@import 'widgets/buttons';
|
||||||
|
@import 'widgets/calendar';
|
||||||
|
@import 'widgets/checks-radios';
|
||||||
|
@import 'widgets/color-chooser';
|
||||||
|
@import 'widgets/comboboxes';
|
||||||
|
@import 'widgets/dialogs';
|
||||||
|
@import 'widgets/entries';
|
||||||
|
@import 'widgets/expanders';
|
||||||
|
@import 'widgets/floating-bar';
|
||||||
|
@import 'widgets/frames';
|
||||||
|
@import 'widgets/granite';
|
||||||
|
@import 'widgets/header-bars';
|
||||||
|
@import 'widgets/infobars';
|
||||||
|
@import 'widgets/level-bars';
|
||||||
|
@import 'widgets/links';
|
||||||
|
@import 'widgets/lists';
|
||||||
|
@import 'widgets/menus';
|
||||||
|
@import 'widgets/misc';
|
||||||
|
@import 'widgets/notebooks';
|
||||||
|
@import 'widgets/paned';
|
||||||
|
@import 'widgets/pathbars';
|
||||||
|
@import 'widgets/popovers';
|
||||||
|
@import 'widgets/progress-bars';
|
||||||
|
@import 'widgets/scales';
|
||||||
|
@import 'widgets/scrollbars';
|
||||||
|
@import 'widgets/sidebar';
|
||||||
|
@import 'widgets/spinbuttons';
|
||||||
|
@import 'widgets/spinner';
|
||||||
|
@import 'widgets/switches';
|
||||||
|
@import 'widgets/toolbars';
|
||||||
|
@import 'widgets/tooltips';
|
||||||
|
@import 'widgets/treeviews';
|
||||||
|
@import 'widgets/windows';
|
|
@ -0,0 +1,17 @@
|
||||||
|
/*******************
|
||||||
|
* Archive Manager *
|
||||||
|
*******************/
|
||||||
|
|
||||||
|
$archive_manager: #A88A67;
|
||||||
|
|
||||||
|
FrWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar,
|
||||||
|
.toolbar {
|
||||||
|
background-color: $archive_manager;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($archive_manager,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/*********
|
||||||
|
* Birdie *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$birdie: #3998E7;
|
||||||
|
|
||||||
|
|
||||||
|
BirdieWidgetsUnifiedWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-image:none;
|
||||||
|
background-color: $birdie;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-image:none;
|
||||||
|
background-color: darken($birdie,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button {
|
||||||
|
padding: 0px;
|
||||||
|
padding-left: 6px;
|
||||||
|
padding-right: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
BirdieWidgetsTweetList * {
|
||||||
|
background-image: none;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
BirdieWidgetsUserbox {
|
||||||
|
background-color: transparentize($birdie, 0.8)
|
||||||
|
}
|
||||||
|
|
||||||
|
BirdieWidgetsNotebook {
|
||||||
|
.header {
|
||||||
|
background-color: $base_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
tab:active {
|
||||||
|
box-shadow:inset 0 -3px 0 0 $birdie;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,228 @@
|
||||||
|
/*********
|
||||||
|
* Budgie *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
@function gtkalpha($c,$a) {
|
||||||
|
@return unquote("alpha(#{$c},#{$a})");
|
||||||
|
}
|
||||||
|
|
||||||
|
$pos_list: ((top, bottom),(bottom,top),(left,right),(right,left));
|
||||||
|
$asset_suffix: if($variant == 'default', '', '-hc');
|
||||||
|
|
||||||
|
%underscores {
|
||||||
|
&:hover { background-color: transparentize(black, 0.9); }
|
||||||
|
&:active, &:checked { background-color: transparentize(black, 0.8); }
|
||||||
|
|
||||||
|
@each $pos, $b_pos in $pos_list {
|
||||||
|
.#{$pos} & {
|
||||||
|
border-#{$b_pos}: 2px solid transparentize($panel_bg_color,1);
|
||||||
|
border-#{$pos}: 2px solid transparentize($panel_bg_color,1);
|
||||||
|
|
||||||
|
@at-root {
|
||||||
|
.#{$pos} .budgie-panel .unpinned .launcher,
|
||||||
|
.#{$pos} .budgie-panel .pinned .launcher.running { border-#{$pos}: 2px solid transparentize($selected_bg_color, 0.5); }
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
border-#{$b_pos}: 2px solid transparentize(black, 0.9);
|
||||||
|
border-#{$pos}: 2px solid transparentize($selected_bg_color, 0.5);
|
||||||
|
}
|
||||||
|
&:active, &:checked {
|
||||||
|
border-#{$b_pos}: 2px solid transparentize(black, 0.8);
|
||||||
|
border-#{$pos}: 2px solid $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Budgie Menu
|
||||||
|
.budgie-menu {
|
||||||
|
GtkSearchEntry.entry:not(:selected) {
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background: none;
|
||||||
|
font-size: 120%;
|
||||||
|
|
||||||
|
&.image { padding-left: 0px; padding-right: 6px; }
|
||||||
|
}
|
||||||
|
.list-row.activatable:selected,
|
||||||
|
.list-row.activatable:selected .button { color: inherit; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Panel
|
||||||
|
.budgie-panel {
|
||||||
|
font: bold;
|
||||||
|
color: $panel_fg_color;
|
||||||
|
background-color: $panel_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $panel_fg_color;
|
||||||
|
background-color: $panel_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// End Section needs to be fancy
|
||||||
|
@if $variant == 'default' {
|
||||||
|
.end-region {
|
||||||
|
background-color: rgba(0,0,0,0.3);
|
||||||
|
border-radius: 2px;
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
color: transparentize($panel_fg_color, 0.85)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tasklist
|
||||||
|
WnckTasklist {
|
||||||
|
.button,
|
||||||
|
.button:backdrop {
|
||||||
|
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
@if $variant == 'default' {
|
||||||
|
&:not(:hover):not(:active):not(:checked) { color: gtkalpha(currentColor, 0.5); }
|
||||||
|
background: none;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: none;
|
||||||
|
|
||||||
|
@extend %underscores;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Icon Tasklist
|
||||||
|
.launcher {
|
||||||
|
transition: all 100ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||||
|
padding-left: 2px;
|
||||||
|
padding-right: 2px;
|
||||||
|
border-color: transparentize($panel_bg_color,1); // fixes the transition
|
||||||
|
|
||||||
|
&:hover { -gtk-image-effect: highlight; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.unpinned {
|
||||||
|
.launcher {
|
||||||
|
@extend %underscores;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pinned {
|
||||||
|
.launcher.running {
|
||||||
|
@extend %underscores;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@each $pos, $b_pos in $pos_list {
|
||||||
|
|
||||||
|
// Panel borders
|
||||||
|
.#{$pos} .budgie-panel { border-#{$b_pos}: 1px solid $panel_borders_color; }
|
||||||
|
|
||||||
|
// Raven borders
|
||||||
|
.#{$pos} .raven-frame {
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
border-#{$b_pos}: 1px solid transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Shadows
|
||||||
|
.#{$pos} .shadow-block {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: linear-gradient(to $b_pos,
|
||||||
|
$shadow_color,
|
||||||
|
transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Raven
|
||||||
|
.raven {
|
||||||
|
color: $panel_fg_color;
|
||||||
|
background-color: transparentize($panel_bg_color, 0.8);
|
||||||
|
transition: 170ms ease-out;
|
||||||
|
|
||||||
|
.raven-header {
|
||||||
|
color: $panel_fg_color;
|
||||||
|
border-width: 1px 0;
|
||||||
|
|
||||||
|
&.top { border-top-style: none; }
|
||||||
|
&.bottom { border-bottom-style: none; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@if $variant=='default' {
|
||||||
|
.expander-button { color: gtkalpha(currentColor, 0.5); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.raven-background {
|
||||||
|
color: $panel_fg_color;
|
||||||
|
background-color: transparentize($panel_bg_color, 0.8);
|
||||||
|
border-bottom: 1px solid transparentize($panel_borders_color, 0.8);
|
||||||
|
|
||||||
|
&.middle { border-bottom-style: none; } // applet background between two headers
|
||||||
|
}
|
||||||
|
|
||||||
|
.powerstrip .button {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.option-subtitle {
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MPRIS Applet
|
||||||
|
.raven-mpris {
|
||||||
|
// color: $mpris_overlay_fg;
|
||||||
|
// background-color: $mpris_overlay_bg;
|
||||||
|
// border: solid $mpris_overlay_border;
|
||||||
|
border-width: 1px 0;
|
||||||
|
|
||||||
|
.button.image-button { padding: 8px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Notifications
|
||||||
|
.budgie-notification-window {
|
||||||
|
background: none;
|
||||||
|
border-radius: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.budgie-notification {
|
||||||
|
&.background {
|
||||||
|
background-color: white;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-title {
|
||||||
|
font-size: 110%;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-body { color: transparentize($panel_fg_color, 0.3); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.drop-shadow {
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: 0 2px 4px 0 $shadow_color, 0 0 0 1px $panel_borders_color;
|
||||||
|
border-radius: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Session Dialog
|
||||||
|
.budgie-session-dialog {
|
||||||
|
&.background { @extend .drop-shadow; }
|
||||||
|
|
||||||
|
.linked.horizontal > .button {
|
||||||
|
border-bottom: none;
|
||||||
|
border-radius: 0;
|
||||||
|
&:first-child { border-left: none; border-radius: 0; }
|
||||||
|
&:last-child { border-right: none; border-radius: 0; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PolKit Dialog
|
||||||
|
.budgie-polkit-dialog {
|
||||||
|
@extend .budgie-session-dialog;
|
||||||
|
|
||||||
|
.message { color: transparentize($panel_fg_color, 0.3); }
|
||||||
|
.failure { color: $red; }
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/*********
|
||||||
|
* Geary *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$geary: #F2B035;
|
||||||
|
|
||||||
|
.geary-titlebar-left,
|
||||||
|
.geary-titlebar-right {
|
||||||
|
background-color: $geary;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($geary,10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ConversationListView {
|
||||||
|
-GtkWidget-focus-line-width: 1px;
|
||||||
|
-GtkTreeView-grid-line-width: 0;
|
||||||
|
|
||||||
|
.view {
|
||||||
|
&:active,
|
||||||
|
&:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_selected_bg_color;
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.cell {
|
||||||
|
border: solid transparentize(black, 0.8);
|
||||||
|
border-width: 0 0 1px 0;
|
||||||
|
&:selected {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
border: 0px solid darken($selected_bg_color, 10% );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,591 @@
|
||||||
|
/***************
|
||||||
|
* font-viewer *
|
||||||
|
***************/
|
||||||
|
SushiFontWidget {
|
||||||
|
padding: 6px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********
|
||||||
|
* Sudoku *
|
||||||
|
**********/
|
||||||
|
SudokuView SudokuCellView {
|
||||||
|
border: inherit;
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
SudokuView SudokuCellView:backdrop {
|
||||||
|
border: inherit;
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
SudokuView {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************
|
||||||
|
* Character Map *
|
||||||
|
*****************/
|
||||||
|
GucharmapChartable {
|
||||||
|
background-color: $base_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
GucharmapChartable:active,
|
||||||
|
GucharmapChartable:focus,
|
||||||
|
GucharmapChartable:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/********
|
||||||
|
* Misc *
|
||||||
|
*******/
|
||||||
|
|
||||||
|
ApDocView, /* Abiword */
|
||||||
|
EogScrollView, /* Eog */
|
||||||
|
CheeseThumbView /* Cheese */
|
||||||
|
{
|
||||||
|
-EogScrollView-shadow-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Terminal *
|
||||||
|
************/
|
||||||
|
|
||||||
|
$gnome_terminal: #636E73;
|
||||||
|
$terminal_bg_color: transparentize(#002B36, 0.1);
|
||||||
|
$terminal_fg_color: #839495;
|
||||||
|
|
||||||
|
TerminalScreen,
|
||||||
|
VteTerminal {
|
||||||
|
background-color: $terminal_bg_color;
|
||||||
|
color: $terminal_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
TerminalWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_terminal;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_terminal,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Nautilus *
|
||||||
|
************/
|
||||||
|
|
||||||
|
NautilusCanvasView {
|
||||||
|
border: none;
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:focus,
|
||||||
|
&:backdrop {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.nautilus-circular-button {
|
||||||
|
border-radius: 20px;
|
||||||
|
outline-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.disk-space-display {
|
||||||
|
border: 2px solid;
|
||||||
|
|
||||||
|
.unknown {
|
||||||
|
background-color: #888a85;
|
||||||
|
border-color: darken(#888a85, 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.used {
|
||||||
|
background-color: #9FB0B9;
|
||||||
|
border-color: darken(#9FB0B9, 20%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.free {
|
||||||
|
background-color: #D8D8D8;
|
||||||
|
border-color: darken(#D8D8D8, 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.nautilus-desktop {
|
||||||
|
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
.nautilus-canvas-item {
|
||||||
|
border-radius: 5px;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
text-shadow: 1px 1px transparentize(black, 0.4);
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
color: $fg_color;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:prelight {
|
||||||
|
color: $fg_color;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dim-label {
|
||||||
|
&:selected {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.nautilus-list {
|
||||||
|
|
||||||
|
.dim-label {
|
||||||
|
&:selected {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/***********
|
||||||
|
* Builder *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
$gnome_builder: #CBBB2E;
|
||||||
|
|
||||||
|
GbGreeterWindow,
|
||||||
|
GbWorkbench {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_builder;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_builder,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Calculator *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
$gnome_calculator: #07ce8e;
|
||||||
|
|
||||||
|
MathWindow {
|
||||||
|
|
||||||
|
background-color: $base_color;
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.header-bar,
|
||||||
|
.toolbar {
|
||||||
|
background-color: $gnome_calculator;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_calculator,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MathButtons {
|
||||||
|
GtkComboBox,
|
||||||
|
.button {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
box-shadow:none;
|
||||||
|
border: none;
|
||||||
|
text-shadow: none;
|
||||||
|
color: $gnome_calculator;
|
||||||
|
font: bold;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-image: none;
|
||||||
|
background-color:$base_color;
|
||||||
|
color: $gnome_calculator;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: darken($gnome_calculator,10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button.suggested-action {
|
||||||
|
background-image: none;
|
||||||
|
box-shadow:none;
|
||||||
|
text-shadow: none;
|
||||||
|
background-color: $gnome_calculator;
|
||||||
|
color: $base_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_calculator,10%);
|
||||||
|
color: transparentize($base_color, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MathDisplay {
|
||||||
|
padding: 4px;
|
||||||
|
background-color:$base_color;
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Calendar *
|
||||||
|
************/
|
||||||
|
|
||||||
|
$gnome_calendar: #75A3F6;
|
||||||
|
|
||||||
|
GcalWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_calendar;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_calendar,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********
|
||||||
|
* Cheese *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
$cheese: #ad7fa8;
|
||||||
|
|
||||||
|
CheeseWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar,
|
||||||
|
.toolbar {
|
||||||
|
background-color: $cheese;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($cheese,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Contacts *
|
||||||
|
************/
|
||||||
|
|
||||||
|
$gnome_contacts: #2095F2;
|
||||||
|
|
||||||
|
ContactsWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_contacts;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_contacts,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********
|
||||||
|
* Clocks *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
$gnome_clocks: #4BAE4F;
|
||||||
|
|
||||||
|
ClocksWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_clocks;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_clocks,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Disks *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$gnome_disks: #8561C5;
|
||||||
|
|
||||||
|
GduWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_disks;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_disks,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Disk Usage *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
$gnome_baobab: #CC5E55;
|
||||||
|
|
||||||
|
BaobabWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_baobab;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_baobab,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************
|
||||||
|
* Documents *
|
||||||
|
*************/
|
||||||
|
|
||||||
|
$gnome_documents: #C2352A;
|
||||||
|
|
||||||
|
#Documents {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_documents;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_documents,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Epiphany *
|
||||||
|
************/
|
||||||
|
|
||||||
|
$gnome_epiphany: #6573C3;
|
||||||
|
|
||||||
|
EphyWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_epiphany;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_epiphany,10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.incognito-mode {
|
||||||
|
background-color: darken($gnome_epiphany,15%);
|
||||||
|
|
||||||
|
.button {
|
||||||
|
background-image:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_epiphany,25%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Gedit *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$gedit: #DC4836;
|
||||||
|
|
||||||
|
GeditWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gedit;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gedit,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .entry {
|
||||||
|
@extend %entry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Log Viewer *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
$gnome_logs: #009587;
|
||||||
|
|
||||||
|
GlWindow,
|
||||||
|
LogviewWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar,
|
||||||
|
.toolbar {
|
||||||
|
background-color: $gnome_logs;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_logs,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Music *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$gnome_music: #fe9700;
|
||||||
|
|
||||||
|
gnomemusic+window+Window {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_music;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_music,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************
|
||||||
|
* Notes/Bijiben *
|
||||||
|
*****************/
|
||||||
|
|
||||||
|
$bijiben: #ebdd4d;
|
||||||
|
|
||||||
|
BjbMainToolbar,
|
||||||
|
BjbWindowBase {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $bijiben;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($bijiben,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********
|
||||||
|
* Photos *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
$gnome_photos: #D30101;
|
||||||
|
|
||||||
|
PhotosMainWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_photos;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_photos,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**********
|
||||||
|
* Polari *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
$polari: #4BAE4F;
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
&.polari-titlebar-left,
|
||||||
|
&.polari-titlebar-right {
|
||||||
|
background-color: $polari;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($polari,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*******************
|
||||||
|
* System Settings *
|
||||||
|
******************/
|
||||||
|
|
||||||
|
$gnome_settings: #5F7C8A;
|
||||||
|
|
||||||
|
CcWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_settings;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_settings,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
CcShellNavBar {
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Software *
|
||||||
|
************/
|
||||||
|
|
||||||
|
$gnome_software: #1A77C2;
|
||||||
|
|
||||||
|
#window_software {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_software;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_software,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/******************
|
||||||
|
* System Monitor *
|
||||||
|
******************/
|
||||||
|
|
||||||
|
$gnome_system_monitor: #6fbe72;
|
||||||
|
|
||||||
|
#gnome-system-monitor {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_system_monitor;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_system_monitor,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/********
|
||||||
|
* ToDo *
|
||||||
|
********/
|
||||||
|
|
||||||
|
$gnome_todo: #3262A1;
|
||||||
|
|
||||||
|
GtdWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $gnome_todo;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($gnome_todo,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/********
|
||||||
|
* Yelp *
|
||||||
|
********/
|
||||||
|
|
||||||
|
$yelp: #435ece;
|
||||||
|
|
||||||
|
YelpWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $yelp;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($yelp,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,115 @@
|
||||||
|
/***********
|
||||||
|
* LightDm *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
// the panel widget at the top
|
||||||
|
#panel_window {
|
||||||
|
background-color: $panel_bg_color;
|
||||||
|
color: $panel_fg_color;
|
||||||
|
font: bold;
|
||||||
|
box-shadow: inset 0 -1px darken($panel_bg_color, 7%);
|
||||||
|
|
||||||
|
// the menubars/menus of the panel, i.e. indicators
|
||||||
|
.menubar,
|
||||||
|
.menubar > .menuitem
|
||||||
|
menubar,
|
||||||
|
menubar > menuitem {
|
||||||
|
background-color: transparent;
|
||||||
|
color: $panel_fg_color;
|
||||||
|
font: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menubar .menuitem:insensitive,
|
||||||
|
menubar menuitem:insensitive {
|
||||||
|
color: transparentize($panel_fg_color, 0.5);
|
||||||
|
|
||||||
|
GtkLabel { color: inherit; }
|
||||||
|
label { color: inherit; }
|
||||||
|
}
|
||||||
|
.menubar .menu > .menuitem,
|
||||||
|
menubar menu > menuitem { font: normal; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// the login window
|
||||||
|
#login_window,
|
||||||
|
#shutdown_dialog,
|
||||||
|
#restart_dialog {
|
||||||
|
font: normal;
|
||||||
|
border-style: none;
|
||||||
|
background-color: transparent;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the top half of the login-window, in GtkDialog terms, the content
|
||||||
|
#content_frame {
|
||||||
|
padding-bottom: 14px;
|
||||||
|
background-color: $bg_color;
|
||||||
|
border-top-left-radius: 2px;
|
||||||
|
border-top-right-radius: 2px;
|
||||||
|
border: solid transparentize(black, 0.9);
|
||||||
|
border-width: 1px 1px 0 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#content_frame button {
|
||||||
|
@include button(normal);
|
||||||
|
|
||||||
|
&:hover { @include button(hover); }
|
||||||
|
&:active, &:checked { @include button(active); }
|
||||||
|
&:insensitive { @include button(insensitive); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// the lower half of the login-window, in GtkDialog terms the buttonbox or action area
|
||||||
|
#buttonbox_frame {
|
||||||
|
padding-top: 20px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
border-style: none;
|
||||||
|
background-color: if($variant=='light', $osd_bg_color, $headerbar_bg_color);
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
border: solid transparentize(black, 0.9);
|
||||||
|
border-width: 0 1px 1px 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#buttonbox_frame button{
|
||||||
|
@include button(osd);
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover); }
|
||||||
|
&:active, &:checked { @include button(osd-active); }
|
||||||
|
&:insensitive { @include button(osd-insensitive); }
|
||||||
|
}
|
||||||
|
|
||||||
|
#login_window #user_combobox {
|
||||||
|
color: $fg_color;
|
||||||
|
font: 13px;
|
||||||
|
|
||||||
|
.menu,
|
||||||
|
menu { font: normal; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// the user's avatar box
|
||||||
|
#user_image {
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// the shutdown button
|
||||||
|
#shutdown_button.button {
|
||||||
|
@include button(suggested_destructive, $destructive_color);
|
||||||
|
|
||||||
|
&:hover { @include button(suggested_destructive, lighten($destructive_color, 10%)); }
|
||||||
|
&:active, &:checked { @include button(suggested_destructive, darken($destructive_color, 10%)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// the restart button
|
||||||
|
#restart_button.button {
|
||||||
|
@include button(suggested_destructive, $suggested_color);
|
||||||
|
|
||||||
|
&:hover { @include button(suggested_destructive, lighten($suggested_color, 10%)); }
|
||||||
|
&:active, &:checked { @include button(suggested_destructive, darken($suggested_color, 10%)); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// the warning, in case a wrong password is entered or something else goes wrong according to PAM
|
||||||
|
#greeter_infobar {
|
||||||
|
border-bottom-width: 0;
|
||||||
|
font: bold;
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
/**********
|
||||||
|
* Midori *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
$midori: #7FC843;
|
||||||
|
|
||||||
|
MidoriBrowser {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar,
|
||||||
|
.toolbar {
|
||||||
|
background-color: $midori;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($midori,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,351 @@
|
||||||
|
/********
|
||||||
|
* Gala *
|
||||||
|
*******/
|
||||||
|
|
||||||
|
.gala-notification {
|
||||||
|
border-width: 0;
|
||||||
|
border-radius: 2px;
|
||||||
|
color: white;
|
||||||
|
border: 1px solid $base_color;
|
||||||
|
background-color: $base_color;
|
||||||
|
|
||||||
|
.title,
|
||||||
|
.label {
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.gala-button {
|
||||||
|
padding: 3px;
|
||||||
|
color: $base_color;
|
||||||
|
border: none;
|
||||||
|
border-radius: 50%;
|
||||||
|
background-image: linear-gradient(to bottom,
|
||||||
|
#7e7e7e,
|
||||||
|
#3e3e3e
|
||||||
|
);
|
||||||
|
box-shadow: inset 0 0 0 1px transparentize(white, 0.02),
|
||||||
|
inset 0 1px 0 0 transparentize(white, 0.07),
|
||||||
|
inset 0 -1px 0 0 transparentize(white, 0.01),
|
||||||
|
0 0 0 1px transparentize(black, 0.40),
|
||||||
|
0 3px 6px transparentize(black, 0.16),
|
||||||
|
0 3px 6px transparentize(black, 0.23);
|
||||||
|
text-shadow: 0 1px 1px transparentize(black, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**********
|
||||||
|
* Notify *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
.notify {
|
||||||
|
/*-notify-shadow: 0px 2px 18px transparentize(black, 0.60);*/
|
||||||
|
|
||||||
|
border-radius: 5px;
|
||||||
|
border: 1px solid transparentize(black, 0.30);
|
||||||
|
|
||||||
|
background-color: transparentize($base_color, 0.95);
|
||||||
|
|
||||||
|
.low {}
|
||||||
|
.critical {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***************
|
||||||
|
* SwitchBoard *
|
||||||
|
***************/
|
||||||
|
|
||||||
|
.category-label {
|
||||||
|
font-weight: bold;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*************
|
||||||
|
* Slingshot *
|
||||||
|
************/
|
||||||
|
|
||||||
|
.button.app {
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
|
.app {
|
||||||
|
&:hover{
|
||||||
|
border-radius: 8px;
|
||||||
|
border: none;
|
||||||
|
background-color: transparentize($selected_bg_color, 0.7);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
&:focus{
|
||||||
|
/*background-color: transparentize(black, 0.20);*/
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item {
|
||||||
|
border-radius: 0;
|
||||||
|
border: none;
|
||||||
|
color: $fg_color;
|
||||||
|
background: none;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: transparentize($selected_bg_color, 0.7);
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.search-entry-large,
|
||||||
|
.search-entry-large:focus {
|
||||||
|
border: none;
|
||||||
|
font: 18;
|
||||||
|
font-weight: 300;
|
||||||
|
background-image: none;
|
||||||
|
background: none;
|
||||||
|
box-shadow: none;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-category-header {
|
||||||
|
font-weight: bold;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Panel *
|
||||||
|
********/
|
||||||
|
|
||||||
|
.panel {
|
||||||
|
background-color: transparent;
|
||||||
|
transition: all 100ms ease-in-out;
|
||||||
|
|
||||||
|
.maximized {
|
||||||
|
background-color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.translucent {
|
||||||
|
background-color: transparentize(black, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.color-light {
|
||||||
|
|
||||||
|
.composited-indicator {
|
||||||
|
|
||||||
|
GtkRevealer {
|
||||||
|
color: transparentize(black, 0.65);
|
||||||
|
text-shadow: 0 0 2px transparentize(white, 0.7),
|
||||||
|
0 1px 0 transparentize(white, 0.75);
|
||||||
|
icon-shadow: 0 0 2px transparentize(white, 0.7),
|
||||||
|
0 1px 0 transparentize(white, 0.75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.composited-indicator {
|
||||||
|
|
||||||
|
GtkRevealer {
|
||||||
|
color: $base_color;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: 0 0 2px transparentize(black, 0.7),
|
||||||
|
0 1px 2px transparentize(black, 0.4);
|
||||||
|
icon-shadow: 0 0 2px transparentize(black, 0.7),
|
||||||
|
0 1px 2px transparentize(black, 0.4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*************
|
||||||
|
* AppCenter *
|
||||||
|
*************/
|
||||||
|
|
||||||
|
$appcenter: #378BE6;
|
||||||
|
|
||||||
|
AppCenterMainWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar{
|
||||||
|
background-color: $appcenter;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($appcenter,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Calculator *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
$pantheon_calculator: #07ce8e;
|
||||||
|
|
||||||
|
PantheonCalculatorMainWindow {
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $pantheon_calculator;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($pantheon_calculator,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.window-frame {
|
||||||
|
border-radius:3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/********
|
||||||
|
* Maya *
|
||||||
|
********/
|
||||||
|
|
||||||
|
$maya: #4bae4f;
|
||||||
|
|
||||||
|
MayaViewMayaToolbar {
|
||||||
|
&.titlebar,
|
||||||
|
&.header-bar {
|
||||||
|
background-color: $maya;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($maya,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Cards *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
.deck {
|
||||||
|
background-color: darken($bg_color, 8%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card {
|
||||||
|
background-color: $base_color;
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 0 0 1px transparentize(black, 0.95),
|
||||||
|
0 3px 3px transparentize(black, 0.8);
|
||||||
|
transition: all 150ms ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card.collapsed {
|
||||||
|
background-color: darken($base_color, 5%);
|
||||||
|
box-shadow: 0 0 0 1px transparentize(black, 0.95),
|
||||||
|
0 1px 2px transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********
|
||||||
|
* Noise *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$noise: #EE6020;
|
||||||
|
|
||||||
|
NoiseLibraryWindow {
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $noise;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($noise,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-bar {
|
||||||
|
border-radius: 0 0 4px 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.window-frame {
|
||||||
|
border-radius:3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********
|
||||||
|
* Scratch *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
$scratch: #e74c3c;
|
||||||
|
|
||||||
|
ScratchMainWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $scratch;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($scratch,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/********
|
||||||
|
* Snap *
|
||||||
|
********/
|
||||||
|
|
||||||
|
$snap: #6d266a;
|
||||||
|
|
||||||
|
SnapMainWindow,
|
||||||
|
SnapSnapWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $snap;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($snap,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.take-button {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*******************
|
||||||
|
* Photos/Shotwell *
|
||||||
|
*******************/
|
||||||
|
|
||||||
|
$pantheon_photos: #5544B5;
|
||||||
|
|
||||||
|
DirectWindow,
|
||||||
|
LibraryWindow {
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
background-color: $pantheon_photos;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($pantheon_photos,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.the-button-in-the-combobox {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkerboard-layout {
|
||||||
|
background-color: $bg_color;
|
||||||
|
background-image: linear-gradient(45deg,
|
||||||
|
transparentize(black, 0.9) 25%,
|
||||||
|
transparent 25%,
|
||||||
|
transparent 75%,
|
||||||
|
transparentize(black, 0.9) 75%,
|
||||||
|
transparentize(black, 0.9)),
|
||||||
|
linear-gradient(45deg,
|
||||||
|
transparentize(black, 0.9) 25%,
|
||||||
|
transparent 25%,
|
||||||
|
transparent 75%,
|
||||||
|
transparentize(black, 0.9) 75%,
|
||||||
|
transparentize(black, 0.9));
|
||||||
|
background-size: 24px 24px;
|
||||||
|
background-position: 0 0, 12px 12px
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkboard-layout .item {
|
||||||
|
background-color: $fg_color;
|
||||||
|
}
|
|
@ -0,0 +1,178 @@
|
||||||
|
/********
|
||||||
|
* Unity *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$unity_color: #636E73; /* Unity window border color */
|
||||||
|
$backdrop_unity_color: darken($unity_color,10%); /* Backdrop Unity window border color */
|
||||||
|
$unity_text_color: #dbdee0; /* Unity window text color */
|
||||||
|
$backdrop_unity_text_color: darken($unity_text_color,10%); /* Backdrop Unity window text color */
|
||||||
|
$unity_panel_color: darken($unity_color, 20%); /* Unity panel color #454D50 */
|
||||||
|
$backdrop_unity_panel_color: darken($unity_panel_color, 10%); /* Backdrop Unity panel color */
|
||||||
|
|
||||||
|
UnityDecoration {
|
||||||
|
|
||||||
|
/* Border properties (top, right, bottom, left) */
|
||||||
|
-UnityDecoration-extents: 28px 1px 1px 1px;/* the size of the decorations */
|
||||||
|
-UnityDecoration-input-extents: 10px;/* the extra size of the input areas */
|
||||||
|
|
||||||
|
/* Shadows settings */
|
||||||
|
-UnityDecoration-shadow-offset-x: 1px;/* Size property, the shadow x offset */
|
||||||
|
-UnityDecoration-shadow-offset-y: 1px;/* Size property, the shadow y offset */
|
||||||
|
-UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.647);/* Color property, active window shadow color */
|
||||||
|
-UnityDecoration-active-shadow-radius: 8px;/* Size property, active window shadow radius */
|
||||||
|
-UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.647);/* Color property, inactive windows shadow color */
|
||||||
|
-UnityDecoration-inactive-shadow-radius: 5px;/* Size property, inactive windows shadow radius */
|
||||||
|
|
||||||
|
/* Glow applied to the selected scaled window */
|
||||||
|
-UnityDecoration-glow-size: 8px;/* Size property, size of glow */
|
||||||
|
-UnityDecoration-glow-color: $selected_bg_color;/* Color property of the glow */
|
||||||
|
|
||||||
|
/* Title settings */
|
||||||
|
-UnityDecoration-title-indent: 10px;/* Size property, left indent of the title */
|
||||||
|
-UnityDecoration-title-fade: 35px;/* Size property, space of the title that can be faded */
|
||||||
|
-UnityDecoration-title-alignment: 0.0;/* Float from 0.0 to 1.0, to align the title */
|
||||||
|
background-color: $unity_color;
|
||||||
|
color: $unity_text_color;
|
||||||
|
|
||||||
|
.top {
|
||||||
|
padding: 0 5px 0 5px;
|
||||||
|
border-radius: 4px 4px 0px 0px;
|
||||||
|
box-shadow: none;
|
||||||
|
border: 1px solid $unity_color;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
background-color: $unity_color;
|
||||||
|
color: $unity_text_color;
|
||||||
|
border-top: 1px solid rgba(255,255,255,0.1);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-bottom-width: 0;
|
||||||
|
background-color: $backdrop_unity_color;
|
||||||
|
color: $backdrop_unity_text_color;
|
||||||
|
border-top: 1px solid rgba(255,255,255,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuitem {
|
||||||
|
color: $unity_text_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_unity_color;
|
||||||
|
color: $backdrop_unity_text_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
UnityDecoration.left,
|
||||||
|
UnityDecoration.right {
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-color: darken($unity_color, 0.6);
|
||||||
|
background-size: 1px 120px;
|
||||||
|
background-clip: border-box;
|
||||||
|
background-image: linear-gradient(to bottom,
|
||||||
|
$unity_color,
|
||||||
|
darken($unity_color, 0.6)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
UnityDecoration.bottom {
|
||||||
|
background-size: 1px;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-color: darken($unity_color, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
UnityDecoration.left:backdrop,
|
||||||
|
UnityDecoration.right:backdrop,
|
||||||
|
UnityDecoration.bottom:backdrop {
|
||||||
|
background-size: 1px;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-color: $backdrop_unity_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Unity Panel *
|
||||||
|
***************/
|
||||||
|
|
||||||
|
UnityPanelWidget,
|
||||||
|
.unity-panel {
|
||||||
|
background-color: $unity_panel_color;
|
||||||
|
color: $unity_text_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
UnityPanelWidget:backdrop,
|
||||||
|
.unity-panel:backdrop {
|
||||||
|
background-color: $backdrop_unity_panel_color;
|
||||||
|
color: $backdrop_unity_text_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menuitem,
|
||||||
|
.unity-panel .menuitem {
|
||||||
|
border-width: 0 1px;
|
||||||
|
color: $unity_text_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar,
|
||||||
|
.unity-panel .menubar {
|
||||||
|
color: $unity_text_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menu.menubar,
|
||||||
|
.unity-panel .menu .menubar {
|
||||||
|
background-color: $unity_panel_color;
|
||||||
|
color: $unity_text_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar:backdrop,
|
||||||
|
.unity-panel .menubar *:backdrop {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar.menuitem,
|
||||||
|
.unity-panel.menubar .menuitem {
|
||||||
|
padding: 3px 5px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
color: $unity_text_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar.menuitem:hover,
|
||||||
|
.unity-panel.menubar .menuitem:hover {
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: darken($unity_color, 1.05);
|
||||||
|
color: $unity_text_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar .menuitem *:hover {
|
||||||
|
color: white;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.unity-panel.menubar .menuitem.separator,
|
||||||
|
.unity-panel.menubar.menuitem.separator {
|
||||||
|
-GtkMenuItem-horizontal-padding: 0;
|
||||||
|
-GtkWidget-separator-height: 1;
|
||||||
|
border: none;
|
||||||
|
color: $borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Force Quit */
|
||||||
|
SheetStyleDialog.unity-force-quit {
|
||||||
|
background-color: $base_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes playbackmenuitem_spinner {
|
||||||
|
to { -gtk-icon-transform: rotate(1turn); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu IdoPlaybackMenuItem.menuitem:active {
|
||||||
|
-gtk-icon-source: -gtk-icontheme("process-working-symbolic");
|
||||||
|
animation: playbackmenuitem_spinner 1s infinite linear;
|
||||||
|
color: $selected_bg_color;
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*********
|
||||||
|
* Vocal *
|
||||||
|
*********/
|
||||||
|
|
||||||
|
$vocal: #9C69C6;
|
||||||
|
|
||||||
|
.titlebar,
|
||||||
|
.header-bar {
|
||||||
|
&.vocal-headerbar {
|
||||||
|
background-color: $vocal;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($vocal,10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,26 @@
|
||||||
|
/* Copyright 2016 Sam Hewitt.
|
||||||
|
*
|
||||||
|
* This file is part of the Paper GTK theme.
|
||||||
|
*
|
||||||
|
* The Paper GTK theme is free software: you can redistribute it
|
||||||
|
* and/or modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* The Paper GTK theme is distributed in the hope that it will be
|
||||||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with the Paper GTK theme. If not, see http://www.gnu.org/licenses/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
$variant: 'dark';
|
||||||
|
|
||||||
|
@import 'colors';
|
||||||
|
@import 'colors-public';
|
||||||
|
@import 'drawing';
|
||||||
|
@import 'common';
|
||||||
|
@import 'widgets';
|
||||||
|
@import 'apps';
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,26 @@
|
||||||
|
/* Copyright 2016 Sam Hewitt.
|
||||||
|
*
|
||||||
|
* This file is part of the Paper GTK theme.
|
||||||
|
*
|
||||||
|
* The Paper GTK theme is free software: you can redistribute it
|
||||||
|
* and/or modify it under the terms of the GNU General Public License as
|
||||||
|
* published by the Free Software Foundation, either version 3 of the
|
||||||
|
* License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* The Paper GTK theme is distributed in the hope that it will be
|
||||||
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||||
|
* Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with the Paper GTK theme. If not, see http://www.gnu.org/licenses/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
$variant: 'light';
|
||||||
|
|
||||||
|
@import 'colors';
|
||||||
|
@import 'colors-public';
|
||||||
|
@import 'drawing';
|
||||||
|
@import 'common';
|
||||||
|
@import 'widgets';
|
||||||
|
@import 'apps';
|
|
@ -0,0 +1,27 @@
|
||||||
|
/***************
|
||||||
|
* Action bars *
|
||||||
|
***************/
|
||||||
|
|
||||||
|
.action-bar {
|
||||||
|
background-color: darken($bg_color, 10%);
|
||||||
|
border: solid $borders_color;
|
||||||
|
border-width: 1px 0 0 0;
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($backdrop_bg_color, 10%);
|
||||||
|
box-shadow: none;
|
||||||
|
-gtk-image-effect: dim;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-radius: 6px 6px 0px 0px;
|
||||||
|
border-width: 1px 1px 0px 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-radius: 0 0 6px 6px;
|
||||||
|
border-width: 0px 1px 1px 1px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
/*********************
|
||||||
|
* App Notifications *
|
||||||
|
*********************/
|
||||||
|
.app-notification,
|
||||||
|
.app-notification.frame {
|
||||||
|
@extend %osd;
|
||||||
|
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 0 0 5px 5px;
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
background-clip: padding-box;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-image: none;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button, button { @extend %osd_button; }
|
||||||
|
}
|
|
@ -0,0 +1,206 @@
|
||||||
|
/***************
|
||||||
|
* Base States *
|
||||||
|
***************/
|
||||||
|
.background {
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: $bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
These wildcard seems unavoidable, need to investigate.
|
||||||
|
Wildcards are bad and troublesome, use them with care,
|
||||||
|
or better, just don't.
|
||||||
|
Everytime a wildcard is used a kitten dies, painfully.
|
||||||
|
*/
|
||||||
|
|
||||||
|
*:insensitive { -gtk-image-effect: dim; }
|
||||||
|
|
||||||
|
.gtkstyle-fallback {
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: $bg_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: lighten($bg_color, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: darken($bg_color, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
background-color: $insensitive_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.view,
|
||||||
|
%view {
|
||||||
|
color: $text_color;
|
||||||
|
background-color: $base_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_text_color;
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
&:focus, & {
|
||||||
|
@extend %selected_items;
|
||||||
|
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTextView {
|
||||||
|
GtkLabel {
|
||||||
|
@extend %view;
|
||||||
|
|
||||||
|
selection { &:focus, & { @extend %selected_items; }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTextView{
|
||||||
|
background-color: mix($bg_color, $base_color, 50%);
|
||||||
|
|
||||||
|
&:backdrop { background-color: mix($backdrop_bg_color, $backdrop_base_color, 50%); }
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
background-size: 100% 1px;
|
||||||
|
background-position: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.top {
|
||||||
|
background-size: 100% 1px;
|
||||||
|
background-position: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
background-size: 1px 100%;
|
||||||
|
background-position: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
background-size: 1px 100%;
|
||||||
|
background-position: left;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkIconView {
|
||||||
|
@extend .view;
|
||||||
|
background-color:transparent;
|
||||||
|
|
||||||
|
&:backdrop{
|
||||||
|
background-color:transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.rubberband,
|
||||||
|
%rubberband {
|
||||||
|
border: 1px solid darken($selected_bg_color, 10%);
|
||||||
|
background-color: transparentize(darken($selected_bg_color, 10%), 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
GtkFlow {
|
||||||
|
rubberband { @extend %rubberband; }
|
||||||
|
|
||||||
|
flowboxchild {
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
@extend %selected_items;
|
||||||
|
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkLabel {
|
||||||
|
&.separator {
|
||||||
|
@extend .dim-label;
|
||||||
|
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_fg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-row:selected &,
|
||||||
|
row:selected &,
|
||||||
|
&:selected { @extend %nobg_selected_items; }
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
|
||||||
|
&:selected { @extend %selected_items:insensitive; }
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_insensitive_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
|
||||||
|
&:selected { @extend %selected_items:backdrop; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dim-label {
|
||||||
|
opacity: 0.55;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
%osd,
|
||||||
|
.osd {
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border: none;
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
background-clip: padding-box;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.7);
|
||||||
|
text-shadow: 0 1px black;
|
||||||
|
icon-shadow: 0 1px black;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%selected_items {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
|
||||||
|
@at-root %nobg_selected_items, & {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
@if $variant == 'light' { outline-color: transparentize($selected_fg_color, 0.7); }
|
||||||
|
|
||||||
|
&:insensitive { color: mix($selected_fg_color, $selected_bg_color, 50%); }
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
|
||||||
|
&:insensitive { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.monospace { font: Monospace; }
|
|
@ -0,0 +1,526 @@
|
||||||
|
/***********
|
||||||
|
* Buttons *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
// stuff for .needs-attention
|
||||||
|
$_dot_color: if($variant=='light', $selected_bg_color,
|
||||||
|
lighten($selected_bg_color,15%));
|
||||||
|
@keyframes needs_attention {
|
||||||
|
from {
|
||||||
|
background-image: -gtk-gradient(radial,
|
||||||
|
center center, 0,
|
||||||
|
center center, 0.01,
|
||||||
|
to($_dot_color),
|
||||||
|
to(transparent));
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
background-image: -gtk-gradient(radial,
|
||||||
|
center center, 0,
|
||||||
|
center center, 0.5,
|
||||||
|
to($selected_bg_color),
|
||||||
|
to(transparent));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%button,
|
||||||
|
.button {
|
||||||
|
@at-root %button_basic, & {
|
||||||
|
|
||||||
|
padding: 4px 9px;
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
border-radius: 3px;
|
||||||
|
transition: $button_transition;
|
||||||
|
|
||||||
|
@include button(normal);
|
||||||
|
|
||||||
|
&.flat {
|
||||||
|
@include button(undecorated);
|
||||||
|
// to avoid adiacent buttons borders clashing when transitioning, the transition on the normal state is set
|
||||||
|
// to none, while it's added back in the hover state, so the button decoration will fade in on hover, but
|
||||||
|
// it won't fade out when the pointer leave the button allocation area. To make the transition more evident
|
||||||
|
// in this case the duration is increased.
|
||||||
|
transition: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
transition: $button_transition;
|
||||||
|
transition-duration: 500ms;
|
||||||
|
|
||||||
|
&:active { transition: $button_transition; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include button(hover);
|
||||||
|
-gtk-image-effect: highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
@include button(active);
|
||||||
|
|
||||||
|
transition-duration: 50ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
&.flat, & {
|
||||||
|
@include button(backdrop);
|
||||||
|
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
-gtk-image-effect: none;
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-active); }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(backdrop-insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-insensitive-active); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.flat { &:backdrop, &:insensitive, &:backdrop:insensitive { @include button(undecorated); }}
|
||||||
|
|
||||||
|
&:insensitive,
|
||||||
|
&:insensitive {
|
||||||
|
@include button(insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(insensitive-active); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.image-button {
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button {
|
||||||
|
padding-left: 16px;
|
||||||
|
padding-right: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button.image-button {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
|
||||||
|
GtkLabel,
|
||||||
|
label {
|
||||||
|
padding-left: 8px;
|
||||||
|
padding-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@at-root %button_selected, & {
|
||||||
|
row:selected & {
|
||||||
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
||||||
|
|
||||||
|
&.flat:not(:active):not(:checked):not(:hover):not(disabled) {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
border-color: transparent;
|
||||||
|
|
||||||
|
&:backdrop { color: if($variant=='light', $backdrop_base_color, $backdrop_fg_color); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Standalone Buttons
|
||||||
|
&.osd {
|
||||||
|
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-radius: 5px;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.7); //FIXME: define a color var?
|
||||||
|
|
||||||
|
@include button(osd);
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include button(osd-hover);
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
@include button(osd-active);
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive,
|
||||||
|
&:insensitive {
|
||||||
|
&:backdrop, & {
|
||||||
|
@include button(osd-insensitive);
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@include button(osd-backdrop);
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//overlay / OSD style
|
||||||
|
@at-root %osd_button,
|
||||||
|
.osd & {
|
||||||
|
@include button(osd);
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover); }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { &:backdrop, & { @include button(osd-active); }}
|
||||||
|
|
||||||
|
&:insensitive { &:backdrop, & { @include button(osd-insensitive); }}
|
||||||
|
|
||||||
|
&:backdrop { @include button(osd-backdrop); }
|
||||||
|
|
||||||
|
&.flat {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
box-shadow: none; //FIXME respect no edge on the button mixin
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover); }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(osd-insensitive);
|
||||||
|
background-image: none;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop { @include button(undecorated); }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(osd-active); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Suggested and Destructive Action buttons
|
||||||
|
@each $b_type, $b_color in (suggested-action, $selected_bg_color),
|
||||||
|
(destructive-action, $destructive_color) {
|
||||||
|
&.#{$b_type} {
|
||||||
|
@include button(normal, $b_color, white);
|
||||||
|
|
||||||
|
&.flat {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $b_color; //FIXME: does it work on the dark variant?
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover { @include button(hover, $b_color, white); }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(active, $b_color, white); }
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&.flat:backdrop {
|
||||||
|
@include button(backdrop, $b_color, white);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-active, $b_color, white); }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(backdrop-insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-insensitive-active, $b_color, white); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.flat {
|
||||||
|
&:backdrop, &:insensitive, &:backdrop:insensitive {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: transparentize($b_color, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(insensitive-active, $b_color, white); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.osd & {
|
||||||
|
@include button(osd, $b_color);
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover, $b_color); }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { &:backdrop, & { @include button(osd-active, $b_color); }}
|
||||||
|
|
||||||
|
&:insensitive { &:backdrop, & { @include button(osd-insensitive, $b_color); }}
|
||||||
|
|
||||||
|
&:backdrop { @include button(osd-backdrop, $b_color); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.stack-switcher > & {
|
||||||
|
// to position the needs attention dot, padding is added to the button
|
||||||
|
// child, a label needs just lateral padding while an icon needs vertical
|
||||||
|
// padding added too.
|
||||||
|
|
||||||
|
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
||||||
|
|
||||||
|
> GtkLabel {
|
||||||
|
padding-left: 6px; // label padding
|
||||||
|
padding-right: 6px; //
|
||||||
|
}
|
||||||
|
|
||||||
|
> GtkImage {
|
||||||
|
padding-left: 6px; // image padding
|
||||||
|
padding-right: 6px; //
|
||||||
|
padding-top: 3px; //
|
||||||
|
padding-bottom: 3px; //
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button {
|
||||||
|
// compensate text-button paddings
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.image-button {
|
||||||
|
// we want image buttons to have a 1:1 aspect ratio, so compensation
|
||||||
|
// of the padding added to the GtkImage is needed
|
||||||
|
padding-left: 2px;
|
||||||
|
padding-right: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.needs-attention {
|
||||||
|
> label,
|
||||||
|
> image { @extend %needs_attention; }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
> label,
|
||||||
|
> image {
|
||||||
|
animation: none;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//inline-toolbar buttons
|
||||||
|
.inline-toolbar &, .inline-toolbar &:backdrop {
|
||||||
|
border-radius: 2px;
|
||||||
|
border-width: 1px;
|
||||||
|
@extend %linked;
|
||||||
|
}
|
||||||
|
|
||||||
|
.primary-toolbar & { icon-shadow: none; } // tango icons don't need shadows
|
||||||
|
|
||||||
|
.linked > &,
|
||||||
|
.linked > &:hover,
|
||||||
|
.linked > &:active,
|
||||||
|
.linked > &:checked,
|
||||||
|
.linked > &:backdrop { @extend %linked; }
|
||||||
|
|
||||||
|
.linked.vertical > &,
|
||||||
|
.linked.vertical > &:hover,
|
||||||
|
.linked.vertical > &:active,
|
||||||
|
.linked.vertical > &:checked,
|
||||||
|
.linked.vertical > &:backdrop { @extend %linked_vertical; }
|
||||||
|
}
|
||||||
|
|
||||||
|
%needs_attention {
|
||||||
|
animation: needs_attention 150ms ease-in;
|
||||||
|
$_dot_shadow: _text_shadow_color();
|
||||||
|
$_dot_shadow_r: if($variant=='light',0.5,0.45);
|
||||||
|
background-image: -gtk-gradient(radial,
|
||||||
|
center center, 0,
|
||||||
|
center center, 0.5,
|
||||||
|
to($_dot_color),
|
||||||
|
to(transparent)),
|
||||||
|
-gtk-gradient(radial,
|
||||||
|
center center, 0,
|
||||||
|
center center, $_dot_shadow_r,
|
||||||
|
to($_dot_shadow),
|
||||||
|
to(transparent));
|
||||||
|
background-size: 6px 6px, 6px 6px;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
|
@if $variant == 'light' { background-position: right 3px, right 4px; }
|
||||||
|
|
||||||
|
@else { background-position: right 3px, right 2px; }
|
||||||
|
|
||||||
|
&:backdrop { background-size: 6px 6px, 0 0;}
|
||||||
|
|
||||||
|
&:dir(rtl) {
|
||||||
|
@if $variant == 'light' { background-position: left 3px, left 4px; }
|
||||||
|
|
||||||
|
@else { background-position: left 3px, left 2px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// all the following is for the +|- buttons on inline toolbars, that way
|
||||||
|
// should really be deprecated...
|
||||||
|
.inline-toolbar toolbutton > button { // redefining the button look is
|
||||||
|
// needed since those are flat...
|
||||||
|
@include button(normal);
|
||||||
|
|
||||||
|
&:hover { @include button(hover); }
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked{ @include button(active); }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(insensitive-active); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@include button(backdrop);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-active); }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(backdrop-insensitive);
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked { @include button(backdrop-insensitive-active); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// More inline toolbar buttons
|
||||||
|
toolbar.inline-toolbar toolbutton,
|
||||||
|
toolbar.inline-toolbar toolbutton:backdrop {
|
||||||
|
> button.flat { @extend %linked_middle; }
|
||||||
|
|
||||||
|
&:first-child > button.flat { @extend %linked:first-child; }
|
||||||
|
|
||||||
|
&:last-child > button.flat { @extend %linked:last-child; }
|
||||||
|
|
||||||
|
&:only-child > button.flat { @extend %linked:only-child; }
|
||||||
|
}
|
||||||
|
|
||||||
|
%linked_middle {
|
||||||
|
border-radius: 0;
|
||||||
|
border-right-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
%linked {
|
||||||
|
@extend %linked_middle;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
border-right-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:only-child {
|
||||||
|
border-radius: 3px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%linked_vertical_middle {
|
||||||
|
border-style: solid solid none solid;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
%linked_vertical{
|
||||||
|
@extend %linked_vertical_middle;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:only-child {
|
||||||
|
border-radius: 3px;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%undecorated_button {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: inset 0 1px transparentize(white,1),
|
||||||
|
0 1px transparentize(white, 1);
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* menu buttons */
|
||||||
|
modelbutton.flat,
|
||||||
|
.menuitem.button.flat {
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
border-radius: 3px;
|
||||||
|
outline-offset: -2px;
|
||||||
|
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
&:hover { background-color: $popover_hover_color; }
|
||||||
|
|
||||||
|
&:selected { @extend %selected_items; }
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&:backdrop:hover { @extend %undecorated_button; }
|
||||||
|
|
||||||
|
// FIXME: remove the following when the checks/radios rewrite lands
|
||||||
|
check:last-child,
|
||||||
|
radio:last-child { margin-left: 8px; }
|
||||||
|
|
||||||
|
check:first-child,
|
||||||
|
radio:first-child { margin-right: 8px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
modelbutton.flat arrow {
|
||||||
|
background: none;
|
||||||
|
|
||||||
|
&:hover { background: none; }
|
||||||
|
|
||||||
|
&.left { -gtk-icon-source: -gtk-icontheme("pan-start-symbolic"); }
|
||||||
|
|
||||||
|
&.right { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||||
|
}
|
||||||
|
|
||||||
|
button.color {
|
||||||
|
padding: 4px;
|
||||||
|
|
||||||
|
colorswatch:only-child {
|
||||||
|
&, overlay { border-radius: 0; }
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
box-shadow: 0 1px _text_shadow_color();
|
||||||
|
|
||||||
|
&:insensitive,
|
||||||
|
&:backdrop { box-shadow: none; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,56 @@
|
||||||
|
/************
|
||||||
|
* Calendar *
|
||||||
|
***********/
|
||||||
|
GtkCalendar {
|
||||||
|
color: $text_color;
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
@extend %selected_items;
|
||||||
|
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.header {
|
||||||
|
border-bottom: 1px solid transparentize(black, 0.9);
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
&:backdrop { border-color: transparentize(black, 0.9); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.button {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
color: transparentize($fg_color, 0.55);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
color: transparentize($backdrop_fg_color,0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
color: transparentize($insensitive_fg_color,0.55);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.highlight,
|
||||||
|
&.highlight:backdrop {
|
||||||
|
font-size: smaller;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_text_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,184 @@
|
||||||
|
/*************************
|
||||||
|
* Check and Radio Items *
|
||||||
|
*************************/
|
||||||
|
// draw regular check and radio items using our PNG assets
|
||||||
|
// all assets are rendered from assets.svg. never add pngs directly
|
||||||
|
|
||||||
|
|
||||||
|
// unchecked
|
||||||
|
@each $s,$un in ('','-unchecked'),
|
||||||
|
(':hover', '-unchecked-hover'),
|
||||||
|
(':active', '-unchecked-active'),
|
||||||
|
(':backdrop', '-unchecked-backdrop'),
|
||||||
|
(':insensitive', '-unchecked-insensitive'),
|
||||||
|
(':insensitive:backdrop', '-unchecked-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png")), -gtk-scaled(url("../assets/checkbox#{$un}-dark.png"),url("../assets/checkbox#{$un}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$un}.png"),url("../assets/radio#{$un}@2.png")), -gtk-scaled(url("../assets/radio#{$un}-dark.png"),url("../assets/radio#{$un}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// checked
|
||||||
|
@each $s,$ch in (':checked', '-checked'),
|
||||||
|
(':checked:hover', '-checked-hover'),
|
||||||
|
(':checked:active', '-checked-active'),
|
||||||
|
(':checked:backdrop', '-checked-backdrop'),
|
||||||
|
(':checked:insensitive', '-checked-insensitive'),
|
||||||
|
(':checked:insensitive:backdrop', '-checked-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png")), -gtk-scaled(url("../assets/checkbox#{$ch}-dark.png"),url("../assets/checkbox#{$ch}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$ch}.png"),url("../assets/radio#{$ch}@2.png")), -gtk-scaled(url("../assets/radio#{$ch}-dark.png"),url("../assets/radio#{$ch}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// mixed
|
||||||
|
@each $s,$mx in (':inconsistent', '-mixed'),
|
||||||
|
(':inconsistent:hover', '-mixed-hover'),
|
||||||
|
(':inconsistent:active', '-mixed-active'),
|
||||||
|
(':inconsistent:backdrop', '-mixed-backdrop'),
|
||||||
|
(':inconsistent:insensitive', '-mixed-insensitive'),
|
||||||
|
(':inconsistent:insensitive:backdrop', '-mixed-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/checkbox#{$mx}.png"),url("../assets/checkbox#{$mx}@2.png")), -gtk-scaled(url("../assets/checkbox#{$mx}-dark.png"),url("../assets/checkbox#{$mx}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/radio#{$mx}.png"),url("../assets/radio#{$mx}@2.png")), -gtk-scaled(url("../assets/radio#{$mx}-dark.png"),url("../assets/radio#{$mx}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// unchecked:selected
|
||||||
|
@each $s,$un in (':selected','-unchecked'),
|
||||||
|
(':hover:selected', '-unchecked-hover'),
|
||||||
|
(':active:selected', '-unchecked-active'),
|
||||||
|
(':backdrop:selected', '-unchecked-backdrop'),
|
||||||
|
(':insensitive:selected', '-unchecked-insensitive'),
|
||||||
|
(':insensitive:backdrop:selected', '-unchecked-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-checkbox#{$un}.png"),url("../assets/selected-checkbox#{$un}@2.png")), -gtk-scaled(url("../assets/selected-checkbox#{$un}-dark.png"),url("../assets/selected-checkbox#{$un}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$un}.png"),url("../assets/selected-radio#{$un}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$un}-dark.png"),url("../assets/selected-radio#{$un}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// checked:selected
|
||||||
|
@each $s,$ch in (':checked:selected', '-checked'),
|
||||||
|
(':checked:hover:selected', '-checked-hover'),
|
||||||
|
(':checked:active:selected', '-checked-active'),
|
||||||
|
(':checked:backdrop:selected', '-checked-backdrop'),
|
||||||
|
(':checked:insensitive:selected', '-checked-insensitive'),
|
||||||
|
(':checked:insensitive:backdrop:selected', '-checked-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-checkbox#{$ch}.png"),url("../assets/selected-checkbox#{$ch}@2.png")), -gtk-scaled(url("../assets/selected-checkbox#{$ch}-dark.png"),url("../assets/selected-checkbox#{$ch}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$ch}.png"),url("../assets/selected-radio#{$ch}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$ch}-dark.png"),url("../assets/selected-radio#{$ch}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// mixed:selected
|
||||||
|
@each $s,$mx in (':inconsistent:selected', '-mixed'),
|
||||||
|
(':inconsistent:hover:selected', '-mixed-hover'),
|
||||||
|
(':inconsistent:active:selected', '-mixed-active'),
|
||||||
|
(':inconsistent:backdrop:selected', '-mixed-backdrop'),
|
||||||
|
(':inconsistent:insensitive:selected', '-mixed-insensitive'),
|
||||||
|
(':inconsistent:insensitive:backdrop:selected', '-mixed-insensitive-backdrop') {
|
||||||
|
.check#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-checkbox#{$mx}.png"),url("../assets/selected-checkbox#{$mx}@2.png")), -gtk-scaled(url("../assets/selected-checkbox#{$mx}-dark.png"),url("../assets/selected-checkbox#{$mx}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.radio#{$s}{
|
||||||
|
-gtk-icon-source: if($variant == 'light', -gtk-scaled(url("../assets/selected-radio#{$mx}.png"),url("../assets/selected-radio#{$mx}@2.png")), -gtk-scaled(url("../assets/selected-radio#{$mx}-dark.png"),url("../assets/selected-radio#{$mx}-dark@2.png")));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// selection-mode unchecked
|
||||||
|
@each $s,$un in ('','-unchecked'),
|
||||||
|
(':hover', '-unchecked-hover'),
|
||||||
|
(':active', '-unchecked-active'),
|
||||||
|
(':backdrop', '-unchecked-backdrop'),
|
||||||
|
(':insensitive', '-unchecked-insensitive'),
|
||||||
|
(':insensitive:backdrop', '-unchecked-insensitive-backdrop') {
|
||||||
|
.view.content-view.check#{$s}{
|
||||||
|
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-checkbox#{$un}.png"),url("../assets/checkbox#{$un}@2.png"));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.view.content-view.radio#{$s}{
|
||||||
|
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-radio#{$un}.png"),url("../assets/radio#{$un}@2.png"));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// selection-mode checked
|
||||||
|
@each $s,$ch in ('','-checked'),
|
||||||
|
(':hover', '-checked-hover'),
|
||||||
|
(':active', '-checked-active'),
|
||||||
|
(':backdrop', '-checked-backdrop'),
|
||||||
|
(':insensitive', '-checked-insensitive'),
|
||||||
|
(':insensitive:backdrop', '-checked-insensitive-backdrop') {
|
||||||
|
.view.content-view.check#{$s}{
|
||||||
|
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-checkbox#{$ch}.png"),url("../assets/checkbox#{$ch}@2.png"));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
.view.content-view.radio#{$s}{
|
||||||
|
-gtk-icon-source: -gtk-scaled(url("../assets/selection-mode-radio#{$ch}.png"),url("../assets/radio#{$ch}@2.png"));
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Style
|
||||||
|
.check.text-button, .radio.text-button {
|
||||||
|
// this is for a nice focus on check and radios text
|
||||||
|
padding: 2px 0;
|
||||||
|
outline-offset: 0;
|
||||||
|
|
||||||
|
label:not(:only-child) {
|
||||||
|
&:first-child { margin-left: 4px; }
|
||||||
|
&:last-child { margin-right: 4px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.check,
|
||||||
|
.radio {
|
||||||
|
margin: 0 4px;
|
||||||
|
|
||||||
|
.menu .menuitem & {
|
||||||
|
margin: 0; // this is a workaround for a menu check/radio size allocation issue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTreeView.view check,
|
||||||
|
GtkTreeView.view radio {
|
||||||
|
&:selected {
|
||||||
|
&:focus, & {
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
@if $variant == 'light' { border-color: $selected_borders_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_insensitive_color; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop { &:selected, & { color: $backdrop_fg_color; }}
|
||||||
|
}
|
|
@ -0,0 +1,114 @@
|
||||||
|
/*****************
|
||||||
|
* Color Chooser *
|
||||||
|
*****************/
|
||||||
|
GtkColorSwatch {
|
||||||
|
// This widget is made of two boxes one on top of the other, the lower box is colorswatch {} the other one
|
||||||
|
|
||||||
|
$_colorswatch_radius: 5px;
|
||||||
|
$_colorswatch_overlay_shadow: if($variant == 'light', inset 0 2px 2px -3px transparentize(black, 0.3),
|
||||||
|
inset 0 3px 2px -2px transparentize(black, 0.5));
|
||||||
|
|
||||||
|
&.top {
|
||||||
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
border-top-left-radius: $_colorswatch_radius;
|
||||||
|
border-top-right-radius: $_colorswatch_radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
border-bottom-left-radius: $_colorswatch_radius;
|
||||||
|
border-bottom-right-radius: $_colorswatch_radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left,
|
||||||
|
&:first-child:not(.top) {
|
||||||
|
border-top-left-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
border-bottom-left-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
border-top-left-radius: $_colorswatch_radius;
|
||||||
|
border-bottom-left-radius: $_colorswatch_radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right,
|
||||||
|
&:last-child:not(.bottom) {
|
||||||
|
border-top-right-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
border-bottom-right-radius: $_colorswatch_radius + 0.5px;
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
border-top-right-radius: $_colorswatch_radius;
|
||||||
|
border-bottom-right-radius: $_colorswatch_radius;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.dark overlay {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); }
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_selected_fg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.light overlay {
|
||||||
|
color: $text_color;
|
||||||
|
|
||||||
|
&:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); }
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_text_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
box-shadow: $_colorswatch_overlay_shadow;
|
||||||
|
border: 1px solid if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
||||||
|
|
||||||
|
&:hover { box-shadow: inset 0 1px transparentize(white, 0.7); }
|
||||||
|
|
||||||
|
&:backdrop, &:backdrop:hover {
|
||||||
|
border-color: if($variant == 'light', transparentize(black, 0.7), $borders_color);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&#add-color-button {
|
||||||
|
border-radius: $_colorswatch_radius $_colorswatch_radius 0 0;
|
||||||
|
|
||||||
|
&:only-child { border-radius: $_colorswatch_radius; }
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
@include button(normal);
|
||||||
|
|
||||||
|
&:hover { @include button(hover); }
|
||||||
|
|
||||||
|
&:backdrop { @include button(backdrop); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
opacity: 0.5;
|
||||||
|
|
||||||
|
overlay {
|
||||||
|
border-color: transparentize(black, 0.4);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
row:selected & { box-shadow: 0 0 0 2px $selected_fg_color; }
|
||||||
|
|
||||||
|
&#editor-color-sample {
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
overlay { border-radius: 4.5px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// colorscale popup
|
||||||
|
colorchooser .popover.osd { border-radius: 5px; }
|
|
@ -0,0 +1,71 @@
|
||||||
|
/**************
|
||||||
|
* ComboBoxes *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
GtkComboBox {
|
||||||
|
.arrow {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||||
|
}
|
||||||
|
|
||||||
|
&.linked {
|
||||||
|
.button:nth-child(2) {
|
||||||
|
&:dir(ltr) { @extend %linked:last-child; }
|
||||||
|
&:dir(rtl) { @extend %linked:first-child; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.linked > GtkComboBox > box > button.combo {
|
||||||
|
// the combo is a composite widget so the way we do button linking doesn't
|
||||||
|
// work, special case needed. See
|
||||||
|
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
||||||
|
|
||||||
|
&:dir(ltr),
|
||||||
|
&:dir(rtl) { @extend %linked_middle; } // specificity bump
|
||||||
|
}
|
||||||
|
|
||||||
|
.linked:not(.vertical) > GtkComboBox:first-child > box > button.combo { @extend %linked:first-child; }
|
||||||
|
.linked:not(.vertical) > GtkComboBox:last-child > box > button.combo { @extend %linked:last-child; }
|
||||||
|
.linked:not(.vertical) > GtkComboBox:only-child > box > button.combo { @extend %linked:only-child; }
|
||||||
|
|
||||||
|
.linked.vertical > GtkComboBox > box > button.combo { @extend %linked_vertical_middle; }
|
||||||
|
.linked.vertical > GtkComboBox:first-child > box > button.combo { @extend %linked_vertical:first-child;}
|
||||||
|
.linked.vertical > GtkComboBox:last-child > box > button.combo { @extend %linked_vertical:last-child; }
|
||||||
|
.linked.vertical > GtkComboBox:only-child > box > button.combo { @extend %linked_vertical:only-child; }
|
||||||
|
|
||||||
|
/******************
|
||||||
|
* Combobox Entry *
|
||||||
|
******************/
|
||||||
|
|
||||||
|
.combobox-entry {
|
||||||
|
|
||||||
|
// Button
|
||||||
|
.button {
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
border-right-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Entry
|
||||||
|
.entry {
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-radius: 4px 0 0 4px;
|
||||||
|
border-right-width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
border-radius: 0 4px 4px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
/***********
|
||||||
|
* Dialogs *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
GtkMessageDialog,
|
||||||
|
.message-dialog {
|
||||||
|
.header-bar,
|
||||||
|
.titlebar {
|
||||||
|
background-image: none;
|
||||||
|
background-color: $bg_color;
|
||||||
|
border-style: none;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
box-shadow: inset 0 1px $top_highlight;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.default-decoration {
|
||||||
|
padding: 6px;
|
||||||
|
background-color: $bg_color;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
&.titlebutton {
|
||||||
|
padding: 1px;
|
||||||
|
border-radius:50%;
|
||||||
|
background-color:transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color:darken($bg_color, 10%);;
|
||||||
|
color:lighten($fg_color, 10%);
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: lighten($fg_color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:transparent;
|
||||||
|
color:$backdrop_fg_color;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: lighten($backdrop_fg_color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color:$fg_color;
|
||||||
|
color:$bg_color;
|
||||||
|
border-radius:50%;
|
||||||
|
box-shadow:none;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: lighten($bg_color, 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.csd { // rounded bottom border styling for csd version
|
||||||
|
border:none;
|
||||||
|
box-shadow: 0 1px 4px 0 transparentize(black, 0.8);
|
||||||
|
|
||||||
|
&.background {
|
||||||
|
// bigger radius for better antialiasing
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dialog-action-area .button {
|
||||||
|
padding: 10px 14px; // labels are not vertically centered on message dialog, this is a workaround
|
||||||
|
border-radius: 0;
|
||||||
|
background-image:none;
|
||||||
|
border-left-style: solid;
|
||||||
|
border-right-style: none;
|
||||||
|
border-bottom-style: none;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-left-style: none;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
// -gtk-outline-bottom-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
// -gtk-outline-bottom-right-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkFileChooserDialog {
|
||||||
|
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
|
||||||
|
.dialog-action-box {
|
||||||
|
border-top: 1px solid $borders_color;
|
||||||
|
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
|
||||||
|
&:backdrop { border-top-color: $backdrop_borders_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
#pathbarbox { border-bottom: 1px solid $bg_color; }
|
||||||
|
}
|
|
@ -0,0 +1,139 @@
|
||||||
|
/****************
|
||||||
|
* Text Entries *
|
||||||
|
****************/
|
||||||
|
|
||||||
|
%entry,
|
||||||
|
.entry {
|
||||||
|
%entry_basic, & {
|
||||||
|
padding: 4px 6px;
|
||||||
|
border: 1px solid;
|
||||||
|
border-radius: 3px;
|
||||||
|
transition: all 200ms $ease-out-quad;
|
||||||
|
|
||||||
|
@include entry(normal);
|
||||||
|
|
||||||
|
// icons inside the entry
|
||||||
|
GtkImage {
|
||||||
|
color: mix($fg_color, $base_color, 80%);
|
||||||
|
|
||||||
|
&:hover { color: $fg_color; }
|
||||||
|
|
||||||
|
&:active { color: $selected_bg_color; }
|
||||||
|
|
||||||
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
|
||||||
|
|
||||||
|
&.left { padding-left: 0; padding-right: 6px; }
|
||||||
|
&.right { padding-left: 6px; padding-right: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.undershoot {
|
||||||
|
&.left { @include undershoot(left); }
|
||||||
|
&.right { @include undershoot(right); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.flat {
|
||||||
|
&:focus, & {
|
||||||
|
padding: 2px;
|
||||||
|
background-image: none;
|
||||||
|
border-color: transparent;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus { @include entry(focus); }
|
||||||
|
|
||||||
|
&:insensitive { @include entry(insensitive); }
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@include entry(backdrop);
|
||||||
|
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop:insensitive { @include entry(backdrop-insensitive); }
|
||||||
|
&:backdrop:insensitive { @include entry(backdrop-insensitive); }
|
||||||
|
|
||||||
|
&:selected { &:focus, & { @extend %selected_items; }}
|
||||||
|
|
||||||
|
// entry error and warning style
|
||||||
|
@each $e_type, $e_color in (error, $error_color),
|
||||||
|
(warning, $warning_color) {
|
||||||
|
&.#{$e_type} {
|
||||||
|
color: $e_color;
|
||||||
|
border-color: entry_focus_border($e_color);
|
||||||
|
|
||||||
|
&:focus { @include entry(focus, $e_color); }
|
||||||
|
|
||||||
|
&:selected { &:focus, & { background-color: $e_color; }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressbar {
|
||||||
|
margin: 2px -6px;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 0 0 2px;
|
||||||
|
border-color: $selected_bg_color;
|
||||||
|
border-style: solid;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:backdrop { background-color: transparent; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// linked entries
|
||||||
|
.linked:not(.vertical) > & { @extend %linked; }
|
||||||
|
.linked:not(.vertical) > &:focus + &,
|
||||||
|
.linked:not(.vertical) > &:focus + button,
|
||||||
|
.linked:not(.vertical) > &:focus + combobox > box > button.combo { border-left-color: entry_focus_border(); }
|
||||||
|
|
||||||
|
// Vertically linked entries
|
||||||
|
// FIXME: take care of "colored" entries
|
||||||
|
.linked.vertical > & {
|
||||||
|
@extend %linked_vertical;
|
||||||
|
|
||||||
|
// brighter border between linked entries
|
||||||
|
&:not(:insensitive) + entry:not(:insensitive),
|
||||||
|
&:not(:insensitive) + %entry:not(:insensitive) {
|
||||||
|
border-top-color: mix($borders_color, $base_color, 30%);
|
||||||
|
background-image: linear-gradient(to bottom, $base_color);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%);
|
||||||
|
background-image: linear-gradient(to bottom, $backdrop_base_color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// brighter border between linked insensitive entries
|
||||||
|
&:insensitive + %entry:insensitive { border-top-color: mix($borders_color, $base_color, 30%); }
|
||||||
|
|
||||||
|
// color back the top border of a linked focused entry following another entry and add back the focus shadow.
|
||||||
|
// :not(:only-child) is a specificity bump hack.
|
||||||
|
+ %entry:focus:not(:only-child) { border-top-color: entry_focus_border(); }
|
||||||
|
|
||||||
|
// this takes care of coloring the top border of the focused entry subsequent widget.
|
||||||
|
// :not(:only-child) is a specificity bump hack.
|
||||||
|
&:focus:not(:only-child) {
|
||||||
|
+ %entry,
|
||||||
|
+ .entry,
|
||||||
|
+ .button,
|
||||||
|
+ GtkComboBox > box > .button.combo { border-top-color: entry_focus_border(); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTreeView .acceleditor > GtkLabel {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTreeView .entry {
|
||||||
|
&.flat, & {
|
||||||
|
border-radius: 0;
|
||||||
|
background-image: none;
|
||||||
|
background-color: $base_color;
|
||||||
|
|
||||||
|
&:focus { border-color: $selected_bg_color; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
/*************
|
||||||
|
* Expanders *
|
||||||
|
*************/
|
||||||
|
expander {
|
||||||
|
.arrow {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||||
|
|
||||||
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
||||||
|
|
||||||
|
&:hover { color: lighten($fg_color,30%); } //only lightens the arrow
|
||||||
|
|
||||||
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
/****************
|
||||||
|
* Floating Bar *
|
||||||
|
****************/
|
||||||
|
.floating-bar {
|
||||||
|
background-color: $bg_color;
|
||||||
|
padding-top:1px;
|
||||||
|
border-width: 1px;
|
||||||
|
border-style: solid solid none;
|
||||||
|
border-color: $borders_color;
|
||||||
|
border-radius: 3px 3px 0 0;
|
||||||
|
box-shadow: inset 0 1px $top_highlight;
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
border-left-style: none;
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
border-right-style: none;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .button {
|
||||||
|
padding:4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
/**********
|
||||||
|
* Frames *
|
||||||
|
**********/
|
||||||
|
.frame {
|
||||||
|
box-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
|
||||||
|
&.flat { border-style: none; }
|
||||||
|
|
||||||
|
&:backdrop { border-color: $backdrop_borders_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkScrolledWindow {
|
||||||
|
GtkViewport.frame { // avoid double borders when viewport inside scrolled window
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is used when content is touch-dragged past boundaries.
|
||||||
|
// draws a box on top of the content, the size changes programmatically.
|
||||||
|
overshoot {
|
||||||
|
&.top {
|
||||||
|
@include overshoot(top);
|
||||||
|
|
||||||
|
&:backdrop { @include overshoot(top, backdrop); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
@include overshoot(bottom);
|
||||||
|
|
||||||
|
&:backdrop { @include overshoot(bottom, backdrop); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
@include overshoot(left);
|
||||||
|
|
||||||
|
&:backdrop { @include overshoot(left, backdrop); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
@include overshoot(right);
|
||||||
|
|
||||||
|
&:backdrop { @include overshoot(right, backdrop); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Overflow indication, works similarly to the overshoot, the size if fixed tho.
|
||||||
|
undershoot {
|
||||||
|
&.top { @include undershoot(top); }
|
||||||
|
|
||||||
|
&.bottom { @include undershoot(bottom); }
|
||||||
|
|
||||||
|
&.left { @include undershoot(left); }
|
||||||
|
|
||||||
|
&.right { @include undershoot(right); }
|
||||||
|
}
|
||||||
|
|
||||||
|
junction { // the small square between two scrollbars
|
||||||
|
border-color: transparent;
|
||||||
|
// the border image is used to add the missing dot between the borders, details, details, details...
|
||||||
|
border-image: linear-gradient(to bottom, $borders_color 1px, transparent 1px) 0 0 0 1 / 0 1px stretch;
|
||||||
|
background-color: $scrollbar_bg_color;
|
||||||
|
|
||||||
|
&:dir(rtl) { border-image-slice: 0 1 0 0; }
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-image-source: linear-gradient(to bottom, $backdrop_borders_color 1px, transparent 1px);
|
||||||
|
background-color: $backdrop_scrollbar_bg_color;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//vbox and hbox separators
|
||||||
|
.separator {
|
||||||
|
background: transparentize(black, 0.9);
|
||||||
|
}
|
|
@ -0,0 +1,225 @@
|
||||||
|
/************
|
||||||
|
* Popovers *
|
||||||
|
************/
|
||||||
|
|
||||||
|
GraniteWidgetsPopOver {
|
||||||
|
|
||||||
|
-GraniteWidgetsPopOver-arrow-width: 21;
|
||||||
|
-GraniteWidgetsPopOver-arrow-height: 10;
|
||||||
|
-GraniteWidgetsPopOver-border-radius: 8px;
|
||||||
|
-GraniteWidgetsPopOver-border-width: 0;
|
||||||
|
-GraniteWidgetsPopOver-shadow-size: 12;
|
||||||
|
|
||||||
|
border: 1px solid $base_color;
|
||||||
|
background: $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
.button {
|
||||||
|
background-image: none;
|
||||||
|
background: none;
|
||||||
|
border: none;
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:active:hover, {
|
||||||
|
color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> .frame {
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar.view {
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GraniteWidgetsStaticNotebook .frame {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.popover_bg {
|
||||||
|
background-color: $base_color;
|
||||||
|
border: 1px solid $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/***********
|
||||||
|
* Welcome *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
GraniteWidgetsWelcome {
|
||||||
|
background-color: $base_color;
|
||||||
|
|
||||||
|
GtkLabel {
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h1,.h3 {
|
||||||
|
color: transparentize($fg_color, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Source List *
|
||||||
|
***************/
|
||||||
|
|
||||||
|
.source-list {
|
||||||
|
-GtkTreeView-horizontal-separator: 4px;
|
||||||
|
-GtkTreeView-vertical-separator: 4px;
|
||||||
|
|
||||||
|
|
||||||
|
background-color: $bg_color;
|
||||||
|
border: solid $borders_color;
|
||||||
|
color: $fg_color;
|
||||||
|
border-right-width: 1px;
|
||||||
|
|
||||||
|
.view {
|
||||||
|
border-width:0;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:$borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {}
|
||||||
|
|
||||||
|
.category-expander {
|
||||||
|
border:none;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
background-image: none;
|
||||||
|
background-color: transparentize(black, 0.6);
|
||||||
|
color: $bg_color;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 0 6px;
|
||||||
|
margin: 0 3px;
|
||||||
|
border-width: 0;
|
||||||
|
|
||||||
|
&:selected:backdrop,
|
||||||
|
&:selected:hover:backdrop {
|
||||||
|
background-color: transparentize(black, 0.8);
|
||||||
|
color: darken($bg_color, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-row {
|
||||||
|
border:none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
> GtkLabel {
|
||||||
|
padding-left: 6px;
|
||||||
|
padding-right: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.sidebar {
|
||||||
|
border-width:0;
|
||||||
|
border-style:solid;
|
||||||
|
border-color:$borders_color;
|
||||||
|
|
||||||
|
&.left,
|
||||||
|
&.right {
|
||||||
|
border-width:0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Text Styles *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
.h1 {
|
||||||
|
font-size: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h2 {
|
||||||
|
font-weight: 300;
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h3 {
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.h4 {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category-label {
|
||||||
|
font-size: 9px;
|
||||||
|
padding: 6px;
|
||||||
|
color: transparentize($fg_color, 0.1);
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: 0 1px transparentize(white,0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**************
|
||||||
|
* Storage Bar *
|
||||||
|
**************/
|
||||||
|
.storage-bar {
|
||||||
|
|
||||||
|
.trough {
|
||||||
|
border: none;
|
||||||
|
box-shadow:0 1px 0 0 $bottom_highlight;
|
||||||
|
background-image: none;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 8px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fill-block {
|
||||||
|
background-color: $yellow;
|
||||||
|
border:none;
|
||||||
|
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9), inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||||
|
|
||||||
|
transition: all 200ms ease-in-out;
|
||||||
|
|
||||||
|
padding: 8px 6px;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-bottom-left-radius: 4px;
|
||||||
|
border-left-width: 1px;
|
||||||
|
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9),
|
||||||
|
inset 1px 0 0 transparentize(black, 0.9),
|
||||||
|
inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
border-bottom-right-radius: 4px;
|
||||||
|
box-shadow: inset 0 1px 0 0 transparentize(black, 0.9),
|
||||||
|
inset -1px 0 0 transparentize(black, 0.9),
|
||||||
|
inset 0 -1px 0 0 transparentize(black, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.empty-block {
|
||||||
|
background-color: $base_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.app {
|
||||||
|
background-color: $blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.audio {
|
||||||
|
background-color: $orange;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.photo {
|
||||||
|
background-color: $red;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.video {
|
||||||
|
background-color: $purple;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legend {
|
||||||
|
padding: 12px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,414 @@
|
||||||
|
/***************
|
||||||
|
* Header Bars *
|
||||||
|
***************/
|
||||||
|
|
||||||
|
%headerbar,
|
||||||
|
.header-bar {
|
||||||
|
padding:0 8px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px 4px 0 0;
|
||||||
|
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
box-shadow: inset 0 1px $top_highlight;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
|
||||||
|
box-shadow: inset 0 1px transparentize($top_highlight, 0.4);
|
||||||
|
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-weight: bold;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color:$backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
font-size: smaller;
|
||||||
|
padding-left: 12px;
|
||||||
|
padding-right: 12px;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
@extend .dim-label;
|
||||||
|
}
|
||||||
|
|
||||||
|
// selection mode
|
||||||
|
&.selection-mode {
|
||||||
|
|
||||||
|
border-radius: 4px 4px 0 0;
|
||||||
|
|
||||||
|
color: $selected_fg_color;
|
||||||
|
text-shadow: 0 -1px transparentize(black, 0.5);
|
||||||
|
border-color: $selected_borders_color;
|
||||||
|
|
||||||
|
background-color: $selection_mode_headerbar_bg_color;
|
||||||
|
box-shadow: inset 0 1px $top_highlight;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($selection_mode_headerbar_bg_color, 10%);
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: inset 0 1px transparentize($top_highlight, 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle:link { @extend *:link:selected; }
|
||||||
|
|
||||||
|
.selection-menu {
|
||||||
|
&:backdrop, & {
|
||||||
|
border-color: transparentize($selected_bg_color, 1);
|
||||||
|
background-image: linear-gradient(to bottom, transparentize($selected_bg_color, 1));
|
||||||
|
box-shadow: none;
|
||||||
|
text-shadow: none;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
|
||||||
|
GtkArrow { -GtkArrow-arrow-scaling: 1; }
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||||
|
color: transparentize($selected_fg_color,0.5);
|
||||||
|
icon-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tiled &,
|
||||||
|
.maximized & { &:backdrop, & { border-radius: 0; }} // squared corners when the window is maximized or tiled
|
||||||
|
|
||||||
|
&.default-decoration {
|
||||||
|
padding: 6px;
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
.maximized {
|
||||||
|
padding: 6px;
|
||||||
|
border-radius:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_headerbar_bg_color;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Entries
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
|
||||||
|
margin:6px 0;
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: 4px;
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background: transparentize($base_color, 0.05);
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow: 0 1px 0 0 transparentize(black, 0.8);
|
||||||
|
|
||||||
|
> .image {
|
||||||
|
padding-right: 6px;
|
||||||
|
color: transparentize($fg_color, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:focus {
|
||||||
|
background: $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||||
|
|
||||||
|
> .image {
|
||||||
|
padding-right: 6px;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.2);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background: transparentize($base_color, 0.4);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
> .image {
|
||||||
|
padding-right: 6px;
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.5);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.2);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
> .image {
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
|
||||||
|
// header bar buttons have no backgrounds or borders
|
||||||
|
.button {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px;
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
&.back-button,
|
||||||
|
&.suggested-action,
|
||||||
|
&.menu-button,
|
||||||
|
&.text-button,
|
||||||
|
&.image-button,
|
||||||
|
&.linked,
|
||||||
|
&.flat {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px;
|
||||||
|
text-shadow: none;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
text-shadow: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow:none;
|
||||||
|
text-shadow:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkLabel,
|
||||||
|
GtkImage {
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow:none;
|
||||||
|
text-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
border-radius: 0px;
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
|
||||||
|
box-shadow: inset 0 -2px 0 0 $headerbar_fg_color;
|
||||||
|
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
|
||||||
|
box-shadow: inset 0 -2px 0 0 $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow: inset 0 -2px 0 0 $headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive,
|
||||||
|
&:insensitive:backdrop {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
|
image,
|
||||||
|
GtkImage {
|
||||||
|
-gtk-image-effect: dim;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Title Button
|
||||||
|
&.titlebutton {
|
||||||
|
background-color:transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius:50%;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 1px;
|
||||||
|
text-shadow: none;
|
||||||
|
color:$headerbar_fg_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color:transparentize($headerbar_fg_color, 0.9);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:transparent;
|
||||||
|
color:$backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color:$headerbar_fg_color;
|
||||||
|
color:$headerbar_bg_color;
|
||||||
|
border-radius:50%;
|
||||||
|
box-shadow:none;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color:$headerbar_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Suggested Button
|
||||||
|
&.suggested-action {
|
||||||
|
font-weight: bold;
|
||||||
|
padding:0;
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 2px;
|
||||||
|
|
||||||
|
background-color: $headerbar_fg_color;
|
||||||
|
color: $selected_bg_color;
|
||||||
|
box-shadow: 0 1px 0 0 transparentize(black, 0.8);
|
||||||
|
|
||||||
|
GtkLabel { color: $selected_bg_color;}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $headerbar_fg_color;
|
||||||
|
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||||
|
GtkLabel {color: $selected_bg_color;}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparentize($headerbar_fg_color, 0.2);
|
||||||
|
box-shadow:none;
|
||||||
|
GtkLabel { color:transparentize($selected_bg_color, 0.2);}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background-color: transparentize(black, 0.9);
|
||||||
|
box-shadow:none;
|
||||||
|
GtkLabel { color:transparentize($headerbar_fg_color, 0.5);}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparentize(black, 0.9);
|
||||||
|
box-shadow:none;
|
||||||
|
GtkLabel { color:transparentize($headerbar_fg_color, 0.5);}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparentize($headerbar_fg_color, 0.9);
|
||||||
|
box-shadow: none;
|
||||||
|
GtkLabel {color:transparentize($selected_bg_color, 0.8);}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Linked button
|
||||||
|
&.linked {
|
||||||
|
&:first-child,
|
||||||
|
&:last-child {
|
||||||
|
border-radius:0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Separator
|
||||||
|
.separator {
|
||||||
|
color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar {
|
||||||
|
&, &:backdrop {
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-bar {
|
||||||
|
.separator:first-child + &,
|
||||||
|
separator:first-child + &, // tackles the paned container case
|
||||||
|
&:first-child { &, &:backdrop { border-top-left-radius: 4px; }}
|
||||||
|
|
||||||
|
&:last-child { &, &:backdrop { border-top-right-radius: 4px; }}
|
||||||
|
}
|
||||||
|
|
||||||
|
.titlebar:not(headerbar) {
|
||||||
|
window.csd > & {
|
||||||
|
// in csd we assume every titlebar is a headerbar so reset anything, this is needed for split toolbars cases
|
||||||
|
padding: 0;
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
background-image: none;
|
||||||
|
border-style: none;
|
||||||
|
border-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_headerbar_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@extend %headerbar;
|
||||||
|
}
|
|
@ -0,0 +1,122 @@
|
||||||
|
/**************
|
||||||
|
* GtkInfoBar *
|
||||||
|
**************/
|
||||||
|
%infobar,
|
||||||
|
GtkInfoBar,
|
||||||
|
infobar {
|
||||||
|
text-shadow: none;
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: $bg_color;
|
||||||
|
border-bottom:1px solid darken($bg_color,10%);
|
||||||
|
box-shadow: inset 0 1px transparentize(white, 0.8),
|
||||||
|
0 1px 0 0 transparentize(black, 0.95),
|
||||||
|
0 1px 2px 0 transparentize(black, 0.85);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
%color_infobar {
|
||||||
|
|
||||||
|
@extend %infobar;
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
border:none;
|
||||||
|
|
||||||
|
.label {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
border-radius: 2px;
|
||||||
|
border: none;
|
||||||
|
background: transparentize($base_color, 0.05);
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow: 0 1px 0 0 transparentize(black, 0.8);
|
||||||
|
|
||||||
|
.label {
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background: $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.2);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
box-shadow: 0 1px 2px 0 transparentize(black, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background: transparentize($base_color, 0.4);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.5);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background: transparentize($base_color, 0.2);
|
||||||
|
color: transparentize($fg_color, 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
@extend %color_infobar;
|
||||||
|
background-color: $info_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:lighten($info_color,10%);
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.warning {
|
||||||
|
@extend %color_infobar;
|
||||||
|
background-color: $warning_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:lighten($warning_color,10%);
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.question {
|
||||||
|
@extend %color_infobar;
|
||||||
|
background-color: $question_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:lighten($question_color,10%);
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
@extend %color_infobar;
|
||||||
|
background-color: $error_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:lighten($error_color,10%);
|
||||||
|
color: $backdrop_selected_fg_color;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,85 @@
|
||||||
|
/*************
|
||||||
|
* Level Bar *
|
||||||
|
*************/
|
||||||
|
GtkLevelBar,
|
||||||
|
.level-bar {
|
||||||
|
|
||||||
|
-GtkLevelBar-min-block-width: 32;
|
||||||
|
-GtkLevelBar-min-block-height: 8;
|
||||||
|
|
||||||
|
&:backdrop { transition: $backdrop_transition; }
|
||||||
|
|
||||||
|
.trough {
|
||||||
|
@extend %scale_trough;
|
||||||
|
margin: 0;
|
||||||
|
padding:2px;
|
||||||
|
border-radius:3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.horizontal.indicator-discrete.fill-block { margin: 0 1px; }
|
||||||
|
&.horizontal.discrete block { margin: 0 1px; }
|
||||||
|
|
||||||
|
&.vertical.indicator-discrete.fill-block { margin: 1px 0; }
|
||||||
|
&.vertical.discrete block { margin: 1px 0; }
|
||||||
|
|
||||||
|
%fill-block,
|
||||||
|
.fill-block {
|
||||||
|
|
||||||
|
border-radius:2px;
|
||||||
|
|
||||||
|
&.low,
|
||||||
|
&.level-low {
|
||||||
|
border:1px solid darken($warning_color,10%);
|
||||||
|
background-color: $warning_color;
|
||||||
|
|
||||||
|
&:backdrop { border:1px solid $warning_color; };
|
||||||
|
}
|
||||||
|
|
||||||
|
&.high,
|
||||||
|
&.level-high {
|
||||||
|
border:1px solid darken($selected_bg_color,10%);
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop { border:1px solid $selected_bg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.full,
|
||||||
|
&.level-full {
|
||||||
|
border:1px solid darken($success_color,10%);
|
||||||
|
background-color: $success_color;
|
||||||
|
|
||||||
|
&:backdrop { border:1px solid $success_color; };
|
||||||
|
}
|
||||||
|
|
||||||
|
&.empty,
|
||||||
|
&.level-empty {
|
||||||
|
background-color: transparent;
|
||||||
|
border:1px solid if($variant=='light', transparentize($fg_color,0.8),
|
||||||
|
transparentize($fg_color,0.9));
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:backdrop { border-color: transparentize($backdrop_fg_color,0.85); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Trough
|
||||||
|
&.horizontal,
|
||||||
|
&.vertical {
|
||||||
|
.trough {
|
||||||
|
@extend %scale_trough;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Vertical
|
||||||
|
&.vertical {
|
||||||
|
-GtkLevelBar-min-block-width: 8;
|
||||||
|
-GtkLevelBar-min-block-height: 32;
|
||||||
|
|
||||||
|
.fill-block {
|
||||||
|
|
||||||
|
@extend %fill-block;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,49 @@
|
||||||
|
/*********
|
||||||
|
* Links *
|
||||||
|
*********/
|
||||||
|
*:link {
|
||||||
|
color: $link_color;
|
||||||
|
|
||||||
|
&:visited {
|
||||||
|
color: $link_visited_color;
|
||||||
|
|
||||||
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 60%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: lighten($link_color,10%);
|
||||||
|
|
||||||
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 90%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
color: $link_color;
|
||||||
|
|
||||||
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop { &:backdrop:hover, &:backdrop:hover:selected, & { color: $selected_bg_color; }}
|
||||||
|
|
||||||
|
@at-root %link_selected,
|
||||||
|
&:selected,
|
||||||
|
*:selected & { color: mix($selected_fg_color, $selected_bg_color, 80%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:link,
|
||||||
|
.button:visited {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
@extend *:link;
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
> GtkLabel { text-decoration-line: underline; }
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
/*********
|
||||||
|
* Lists *
|
||||||
|
*********/
|
||||||
|
.list {
|
||||||
|
color: $text_color;
|
||||||
|
background-color: $base_color;
|
||||||
|
border-color: $borders_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.list-row {
|
||||||
|
border-radius:0;
|
||||||
|
transition: all 150ms $ease-out-quad;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
padding-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover { transition: none; }
|
||||||
|
|
||||||
|
&:backdrop { transition: $backdrop_transition; }
|
||||||
|
|
||||||
|
&:selected { @extend %selected_items; }
|
||||||
|
}
|
|
@ -0,0 +1,118 @@
|
||||||
|
/*********
|
||||||
|
* Menus *
|
||||||
|
*********/
|
||||||
|
.menubar {
|
||||||
|
-GtkWidget-window-dragging: true;
|
||||||
|
padding: 0px;
|
||||||
|
box-shadow: inset 0 -1px transparentize(black, 0.9);
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop { background-color: $backdrop_headerbar_bg_color; }
|
||||||
|
|
||||||
|
> .menuitem {
|
||||||
|
padding: 4px 8px;
|
||||||
|
|
||||||
|
&:hover { //Seems like it :hover even with keyboard focus
|
||||||
|
box-shadow: inset 0 -3px $selected_bg_color;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%menu,
|
||||||
|
.content-view .menu,
|
||||||
|
.menu,
|
||||||
|
.popup {
|
||||||
|
padding: 4px 0px;
|
||||||
|
background-color: $menu_color;
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: 0 2px 4px 0 transparentize(black,0.9), inset 0 1px 0 0 $top_highlight;
|
||||||
|
|
||||||
|
.csd & {border: none;}
|
||||||
|
|
||||||
|
&:backdrop { background-color: $backdrop_menu_color; }
|
||||||
|
|
||||||
|
.menuitem {
|
||||||
|
padding: 8px 4px;
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
&:backdrop { color: $backdrop_insensitive_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&:backdrop:hover {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
// submenu indicators
|
||||||
|
.arrow {
|
||||||
|
|
||||||
|
&:dir(ltr) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:dir(rtl) {
|
||||||
|
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// overflow arrows
|
||||||
|
> .arrow {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
padding: 4px;
|
||||||
|
background-color: $menu_color;
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
&.top {
|
||||||
|
margin-top: -6px;
|
||||||
|
border-bottom: 1px solid mix($fg_color, $base_color, 10%);
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-up-symbolic');
|
||||||
|
}
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
margin-bottom: -6px;
|
||||||
|
border-top: 1px solid mix($fg_color, $base_color, 10%);
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover { background-color: mix($fg_color, $base_color, 10%); }
|
||||||
|
|
||||||
|
&:backdrop { background-color: $backdrop_menu_color; }
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: transparent ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuitem {
|
||||||
|
.accelerator { color: gtkalpha(currentColor,0.55); }
|
||||||
|
|
||||||
|
.check,
|
||||||
|
.radio {
|
||||||
|
|
||||||
|
&:dir(ltr) { margin-right: 7px; }
|
||||||
|
&:dir(rtl) { margin-left: 7px; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
/********
|
||||||
|
* Misc *
|
||||||
|
********/
|
||||||
|
|
||||||
|
//content view (grid/list)
|
||||||
|
.content-view {
|
||||||
|
background-color: darken($bg_color,7%);
|
||||||
|
|
||||||
|
&:hover { -gtk-image-effect: highlight; }
|
||||||
|
|
||||||
|
&:backdrop { background-color: darken($bg_color,7%); }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.scale-popup {
|
||||||
|
.osd & { @extend %osd; }
|
||||||
|
|
||||||
|
.osd & button.flat { //FIXME: quick hack, redo properly
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// +/- buttons on GtkVolumeButton popup
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
&:hover {
|
||||||
|
@extend %undecorated_button;
|
||||||
|
background-color: transparentize($fg_color,0.9);
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop { &:hover, &:insensitive, & { @extend %undecorated_button; }}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
color: $borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
/************
|
||||||
|
* Assistant *
|
||||||
|
*************/
|
||||||
|
|
||||||
|
GtkAssistant {
|
||||||
|
|
||||||
|
border-bottom-left-radius:4px;
|
||||||
|
border-bottom-right-radius:4px;
|
||||||
|
|
||||||
|
.sidebar {
|
||||||
|
background-color: $base_color;
|
||||||
|
border-top: 1px solid $borders_color;
|
||||||
|
|
||||||
|
border-bottom-left-radius:4px;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.csd .sidebar { border-top-style: none; }
|
||||||
|
|
||||||
|
.sidebar GtkLabel { padding: 6px 12px; }
|
||||||
|
|
||||||
|
.sidebar GtkLabel.highlight { background-color: mix($bg_color, $fg_color, 80%); }
|
||||||
|
}
|
|
@ -0,0 +1,113 @@
|
||||||
|
/*************
|
||||||
|
* Notebooks *
|
||||||
|
*************/
|
||||||
|
.dynamic-notebook,
|
||||||
|
.notebook {
|
||||||
|
padding:0;
|
||||||
|
background-color: $base_color;
|
||||||
|
box-shadow:0 0 0 1px $borders_color;
|
||||||
|
background-clip: border-box;
|
||||||
|
|
||||||
|
> .header {
|
||||||
|
border: none;
|
||||||
|
box-shadow:none;
|
||||||
|
background-color: $bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
> tab {
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: $bg_color;
|
||||||
|
|
||||||
|
&.top {
|
||||||
|
padding: 6px 8px 8px 8px;
|
||||||
|
box-shadow:inset 0 -1px 0 0 $borders_color;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow:inset 0 -3px 0 0 $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 0 -3px 0 0 $backdrop_selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 0 -1px 0 0 $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:inset 0 -1px 0 0 $insensitive_borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
padding: 8px 8px 6px 8px;
|
||||||
|
box-shadow:inset 0 1px 0 0 $borders_color;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow:inset 0 3px 0 0 $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 0 3px 0 0 $backdrop_selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 0 1px 0 0 $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:inset 0 1px 0 0 $insensitive_borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
padding: 8px;
|
||||||
|
box-shadow:inset -1px 0 0 0 $borders_color;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow:inset -3px 0 0 0 $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset -3px 0 0 0 $backdrop_selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset -1px 0 0 0 $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:inset -1px 0 0 0 $insensitive_borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
padding: 8px;
|
||||||
|
box-shadow:inset 1px 0 0 0 $borders_color;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
box-shadow:inset 3px 0 0 0 $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 3px 0 0 0 $backdrop_selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:inset 1px 0 0 0 $backdrop_borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:inset 1px 0 0 0 $insensitive_borders_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: darken($bg_color, 5%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,56 @@
|
||||||
|
/*********
|
||||||
|
* Paned *
|
||||||
|
*********/
|
||||||
|
.paned {
|
||||||
|
> .separator {
|
||||||
|
-gtk-icon-source: none; // defeats the ugly default handle decoration
|
||||||
|
border-style: none; // just to be sure
|
||||||
|
background-color: $borders_color;
|
||||||
|
// workaround, using background istead of a border since the border will get rendered twice (?)
|
||||||
|
background-size: 1px 1px;
|
||||||
|
|
||||||
|
&:selected { background-color: $selected_bg_color } // FIXME is this needed?
|
||||||
|
|
||||||
|
&:backdrop { background-color: $backdrop_borders_color }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
border: solid $borders_color;
|
||||||
|
border-left-width: 1px;
|
||||||
|
|
||||||
|
&.horizontal > .separator {
|
||||||
|
background-repeat: repeat-y;
|
||||||
|
|
||||||
|
&:dir(ltr) {
|
||||||
|
margin: 0 -8px 0 0;
|
||||||
|
padding: 0 8px 0 0;
|
||||||
|
background-position: left;
|
||||||
|
}
|
||||||
|
&:dir(rtl) {
|
||||||
|
margin: 0 0 0 -8px;
|
||||||
|
padding: 0 0 0 8px;
|
||||||
|
background-position: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.wide {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-repeat: repeat-y, repeat-y;
|
||||||
|
background-position: left, right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.vertical > .separator {
|
||||||
|
margin: 0 0 -8px 0;
|
||||||
|
padding: 0 0 8px 0;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
background-position: top;
|
||||||
|
|
||||||
|
&.wide {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-repeat: repeat-x, repeat-x;
|
||||||
|
background-position: bottom, top;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
/************
|
||||||
|
* Pathbars *
|
||||||
|
************/
|
||||||
|
.path-bar button {
|
||||||
|
&.text-button, &.image-button, & {
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button.image-button label {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.text-button.image-button, & {
|
||||||
|
label:last-child { padding-right: 8px; }
|
||||||
|
label:first-child { padding-left: 8px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
image {
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.slider-button {
|
||||||
|
padding-left: 0;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
/************
|
||||||
|
* Popovers *
|
||||||
|
************/
|
||||||
|
.popover {
|
||||||
|
|
||||||
|
.background {
|
||||||
|
padding: 2px;
|
||||||
|
border-radius: 4px;
|
||||||
|
border:none;
|
||||||
|
background-color: $popover_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .view,
|
||||||
|
> .toolbar {
|
||||||
|
border-style: none;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.csd &, & {
|
||||||
|
|
||||||
|
box-shadow: 0 0 0 1px transparentize(black, 0.9), 0 2px 3px 0 transparentize(black, 0.7);
|
||||||
|
|
||||||
|
&.touch-selection,
|
||||||
|
&.magnifier {
|
||||||
|
@extend %osd;
|
||||||
|
|
||||||
|
border: 1px solid transparentize(white, 0.9);
|
||||||
|
|
||||||
|
button { @extend %osd_button };
|
||||||
|
}
|
||||||
|
|
||||||
|
&.osd { @extend %osd; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator { margin: 3px; }
|
||||||
|
|
||||||
|
.check,
|
||||||
|
.radio { @extend modelbutton.flat; }
|
||||||
|
|
||||||
|
.menuitem {
|
||||||
|
padding: 8px;
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $selected_fg_color;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
&:backdrop { color: $backdrop_insensitive_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&:backdrop:hover {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
// submenu indicators
|
||||||
|
.arrow {
|
||||||
|
|
||||||
|
&:dir(ltr) {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:dir(rtl) {
|
||||||
|
-gtk-icon-source:-gtk-icontheme('pan-end-symbolic-rtl');
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,91 @@
|
||||||
|
/*****************
|
||||||
|
* Progress bars *
|
||||||
|
*****************/
|
||||||
|
|
||||||
|
GtkProgressBar,
|
||||||
|
.progressbar {
|
||||||
|
|
||||||
|
@extend %scale_trough;
|
||||||
|
|
||||||
|
// sizing
|
||||||
|
&.horizontal progress { margin: 0 -1px; } // the progress node is positioned after the trough border
|
||||||
|
&.vertical progress { margin: -1px 0; } // this moves it over it.
|
||||||
|
|
||||||
|
|
||||||
|
// FIXME: insensitive state missing and some other state should be set probably
|
||||||
|
font-size: smaller;
|
||||||
|
color: transparentize($fg_color, 0.6);
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
border-radius:0px;
|
||||||
|
color: transparentize(black,0.5);
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
border-color: darken($selected_bg_color, 10%);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: lighten($selected_bg_color, 10%);
|
||||||
|
border-color: lighten(darken($selected_bg_color, 10%), 10%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressbar {
|
||||||
|
@extend %scale_highlight;
|
||||||
|
|
||||||
|
border-radius: 0px;
|
||||||
|
|
||||||
|
// default 2px
|
||||||
|
&.left {
|
||||||
|
border-top-left-radius: 0px;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
border-top-right-radius: 0px;
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.top {
|
||||||
|
border-top-right-radius: 0px;
|
||||||
|
border-top-left-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.bottom {
|
||||||
|
border-bottom-right-radius: 0px;
|
||||||
|
border-bottom-left-radius: 0px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop .progressbar { @extend %scale_highlight:backdrop; } // states not passed here as well
|
||||||
|
&:backdrop progress { @extend %scale_highlight:backdrop; } // states not passed here as well
|
||||||
|
|
||||||
|
&.osd { // progressbar.osd used for epiphany page loading progress
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
|
.trough {
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.progressbar {
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// In-Row
|
||||||
|
|
||||||
|
row,
|
||||||
|
.list-row {
|
||||||
|
&:selected {
|
||||||
|
border: 1px solid darken($selected_bg_color, 10%);
|
||||||
|
color: transparentize(black,0.5);
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,269 @@
|
||||||
|
/**********
|
||||||
|
* Scales *
|
||||||
|
**********/
|
||||||
|
|
||||||
|
%scale_trough {
|
||||||
|
border:none;
|
||||||
|
background-color: $base_color;
|
||||||
|
box-shadow: 0px 1px $bottom_highlight;
|
||||||
|
border:1px solid $borders_color;
|
||||||
|
|
||||||
|
padding:0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background-color: $insensitive_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
|
||||||
|
&:insensitive { background-color: $insensitive_bg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// on selected list rows
|
||||||
|
row:selected & {
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&, &:insensitive { border-color: $selected_borders_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD
|
||||||
|
.osd & {
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
background-color: transparentize($osd_borders_color, 0.2);
|
||||||
|
box-shadow: none;
|
||||||
|
outline-color: transparentize($osd_fg_color, 0.8);
|
||||||
|
|
||||||
|
&:insensitive { background-color: $osd_insensitive_bg_color; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%scale_highlight {
|
||||||
|
|
||||||
|
border: 1px solid $selected_borders_color;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
box-shadow: inset 0px 1px $top_highlight;
|
||||||
|
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
background-color: transparentize(black, 0.9);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&:active:backdrop {
|
||||||
|
border-color: lighten($selected_bg_color, 10%);
|
||||||
|
background-color: lighten($selected_bg_color, 10%);
|
||||||
|
&:insensitive {
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// on selected list rows
|
||||||
|
.list-row:selected & { &:insensitive, & { border-color: $selected_borders_color; } }
|
||||||
|
row:selected & { &:insensitive, & { border-color: $selected_borders_color; } }
|
||||||
|
|
||||||
|
// OSD
|
||||||
|
.osd & {
|
||||||
|
border-color: $osd_borders_color;
|
||||||
|
|
||||||
|
&:insensitive { border-color: transparent; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Scale
|
||||||
|
.scale {
|
||||||
|
// sizing
|
||||||
|
|
||||||
|
$_marks_length: 6px;
|
||||||
|
$_marks_distance: 6px;
|
||||||
|
|
||||||
|
|
||||||
|
-GtkScale-slider-length: 16px;
|
||||||
|
-GtkRange-slider-width: 16px;
|
||||||
|
-GtkRange-trough-border: 0px;
|
||||||
|
|
||||||
|
padding: 8px;
|
||||||
|
|
||||||
|
// those are inside the trough node, I need them to show their own border over the trough one, so negative margin
|
||||||
|
.highlight { margin: -1px; }
|
||||||
|
|
||||||
|
// Slider, the scale handle
|
||||||
|
.slider {
|
||||||
|
margin: 1px;
|
||||||
|
|
||||||
|
background-color:$base_color;
|
||||||
|
box-shadow:0 1px 2px 0 transparentize(black, 0.7);
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
border-radius: 12px;
|
||||||
|
|
||||||
|
transition: $button_transition;
|
||||||
|
transition-property: background, border, box-shadow;
|
||||||
|
|
||||||
|
&:hover {}
|
||||||
|
&:active {
|
||||||
|
box-shadow:0 1px 2px 0 transparentize($selected_bg_color, 0.5);
|
||||||
|
border: 1px solid $selected_bg_color;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:none;
|
||||||
|
border: 1px solid transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
box-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {}
|
||||||
|
|
||||||
|
.list-row:selected & { &, &:insensitive { border-color: $selected_borders_color; } }
|
||||||
|
row:selected & { &, &:insensitive { border-color: $selected_borders_color; } }
|
||||||
|
|
||||||
|
// OSD
|
||||||
|
.osd & {
|
||||||
|
@include button(osd);
|
||||||
|
border-color: darken($osd_borders_color, 3%);
|
||||||
|
background-color: opacify($osd_bg_color, 1); // solid background needed here
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover); }
|
||||||
|
|
||||||
|
&:active { @include button(osd-active); }
|
||||||
|
|
||||||
|
&:insensitive { @include button(osd-insensitive); }
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@include button(osd-backdrop);
|
||||||
|
|
||||||
|
&:insensitive { @include button(osd-backdrop-insensitive); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Trough
|
||||||
|
.trough {
|
||||||
|
@extend %scale_trough;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin: 6px;
|
||||||
|
|
||||||
|
outline-offset: 2px;
|
||||||
|
outline-radius: 5px;
|
||||||
|
|
||||||
|
&.horizontal {
|
||||||
|
}
|
||||||
|
|
||||||
|
&.vertical {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// The coloured part of the Trough
|
||||||
|
.highlight{
|
||||||
|
@extend %scale_highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fine-tune mode
|
||||||
|
// when you click-and-hold the slider
|
||||||
|
&.fine-tune {
|
||||||
|
|
||||||
|
&.horizontal {
|
||||||
|
padding-top: 9px;
|
||||||
|
padding-bottom: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.vertical {
|
||||||
|
padding-left: 9px;
|
||||||
|
padding-right: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// to make the trough grow in fine-tune mode
|
||||||
|
.slider {
|
||||||
|
|
||||||
|
background-color:$base_color;
|
||||||
|
border-color:$base_color;
|
||||||
|
border: 1px solid transparentize(black, 0.7);
|
||||||
|
border-radius: 12px;
|
||||||
|
box-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.trough {
|
||||||
|
@extend %scale_trough;
|
||||||
|
|
||||||
|
border-radius:6px;
|
||||||
|
|
||||||
|
outline-offset: 2px;
|
||||||
|
outline-radius: 5px;
|
||||||
|
|
||||||
|
margin: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
@extend %scale_highlight;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// this is another differently styled part of the backing bit, the most relevant use case is for example
|
||||||
|
// in media player to indicate how much video stream as been cached
|
||||||
|
fill {
|
||||||
|
@extend %scale_trough;
|
||||||
|
border-radius: 2px;
|
||||||
|
|
||||||
|
&, &:backdrop {
|
||||||
|
background-color: $borders_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
&, &:backdrop {
|
||||||
|
border-color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD
|
||||||
|
.osd & {
|
||||||
|
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
&, &:backdrop {
|
||||||
|
border-color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
value { color: gtkalpha(currentColor, 0.4); }
|
||||||
|
|
||||||
|
marks {
|
||||||
|
color: gtkalpha(currentColor, 0.4);
|
||||||
|
|
||||||
|
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
||||||
|
(bottom, bottom, top),
|
||||||
|
(top, left, right),
|
||||||
|
(bottom, right, left) {
|
||||||
|
&.#{$marks_class} {
|
||||||
|
margin-#{$marks_margin}: $_marks_distance;
|
||||||
|
margin-#{$marks_pos}: -($_marks_distance + $_marks_length);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.fine-tune marks {
|
||||||
|
@each $marks_class, $marks_pos, $marks_margin in (top, top, bottom),
|
||||||
|
(bottom, bottom, top),
|
||||||
|
(top, left, right),
|
||||||
|
(bottom, right, left) {
|
||||||
|
&.#{$marks_class} {
|
||||||
|
margin-#{$marks_margin}: $_marks_distance;
|
||||||
|
margin-#{$marks_pos}: -($_marks_distance + $_marks_length - 3px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,188 @@
|
||||||
|
/**************
|
||||||
|
* Scrollbars *
|
||||||
|
**************/
|
||||||
|
|
||||||
|
.scrollbar {
|
||||||
|
$_slider_min_length: 40px;
|
||||||
|
|
||||||
|
// disable steppers
|
||||||
|
@at-root * {
|
||||||
|
-GtkScrollbar-has-backward-stepper: false;
|
||||||
|
-GtkScrollbar-has-forward-stepper: false;
|
||||||
|
}
|
||||||
|
|
||||||
|
background-color: $scrollbar_bg_color;
|
||||||
|
transition: 300ms $ease-out-quad;
|
||||||
|
|
||||||
|
// scrollbar border
|
||||||
|
&.top { border-bottom: 1px solid $borders_color; }
|
||||||
|
&.bottom { border-top: 1px solid $borders_color; }
|
||||||
|
&.left { border-right: 1px solid $borders_color; }
|
||||||
|
&.right { border-left: 1px solid $borders_color; }
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_scrollbar_bg_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
// slider
|
||||||
|
.slider {
|
||||||
|
margin: -1px;
|
||||||
|
border: 4px solid transparent;
|
||||||
|
border-radius: 8px;
|
||||||
|
background-clip: padding-box;
|
||||||
|
background-color: $scrollbar_slider_color;
|
||||||
|
|
||||||
|
&:hover { background-color: $scrollbar_slider_hover_color; }
|
||||||
|
|
||||||
|
&:hover:active { background-color: $scrollbar_slider_active_color; }
|
||||||
|
|
||||||
|
&:backdrop { background-color: $backdrop_scrollbar_slider_color; }
|
||||||
|
|
||||||
|
&:insensitive { background-color: transparent; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.fine-tune {
|
||||||
|
.slider {
|
||||||
|
}
|
||||||
|
|
||||||
|
&.horizontal .slider { border-width: 5px 4px; }
|
||||||
|
&.vertical .slider { border-width: 4px 5px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.overlay-indicator {
|
||||||
|
&:not(.dragging):not(.hovering) {
|
||||||
|
border-color: transparent;
|
||||||
|
opacity: 0.4;
|
||||||
|
background-color: transparent;
|
||||||
|
|
||||||
|
.slider {
|
||||||
|
margin: 0;
|
||||||
|
background-color: $fg_color;
|
||||||
|
border: 1px solid if($variant == 'light', white, black);
|
||||||
|
}
|
||||||
|
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
background-color: $fg_color;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border-radius: 100%;
|
||||||
|
border: 1px solid if($variant == 'light', white, black);
|
||||||
|
-gtk-icon-source: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.horizontal {
|
||||||
|
.slider,
|
||||||
|
slider {
|
||||||
|
margin: 0 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
margin: 1px 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.vertical {
|
||||||
|
.slider {
|
||||||
|
margin: 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
margin: 2px 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.dragging,
|
||||||
|
&.hovering { opacity: 0.8; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// button styling
|
||||||
|
.button {
|
||||||
|
padding: 0;
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $scrollbar_slider_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $scrollbar_slider_hover_color;
|
||||||
|
}
|
||||||
|
&:active, &:checked {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $scrollbar_slider_active_color;
|
||||||
|
}
|
||||||
|
&:insensitive {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: transparentize($scrollbar_slider_color, 0.8);
|
||||||
|
}
|
||||||
|
&:backdrop {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $backdrop_scrollbar_slider_color;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: transparentize($backdrop_scrollbar_slider_color, 0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// button icons
|
||||||
|
&.vertical {
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||||
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-up-symbolic'); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.horizontal {
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
&.down { -gtk-icon-source: -gtk-icontheme('pan-right-symbolic'); }
|
||||||
|
&.up { -gtk-icon-source: -gtk-icontheme('pan-left-symbolic'); }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkTreeView ~ .scrollbar.vertical {
|
||||||
|
border-top: 1px solid $borders_color;
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********************
|
||||||
|
* Overlay Scrollbars *
|
||||||
|
*********************/
|
||||||
|
|
||||||
|
OsThumb,
|
||||||
|
OsScrollbar {
|
||||||
|
|
||||||
|
color: $selected_bg_color;
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:selected {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop,
|
||||||
|
&:active:backdrop {
|
||||||
|
background-color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background-color: $insensitive_fg_color;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,73 @@
|
||||||
|
/***********
|
||||||
|
* Sidebar *
|
||||||
|
***********/
|
||||||
|
.sidebar {
|
||||||
|
padding:0;
|
||||||
|
border-style: solid;
|
||||||
|
background-color: $bg_color;
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
border-right: 1px solid $borders_color;
|
||||||
|
border-left-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
border-left: 1px solid $borders_color;
|
||||||
|
border-right-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_sidebar_bg_color;
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frame {
|
||||||
|
border-width:0;
|
||||||
|
border-left-width:1px;
|
||||||
|
border-right-width:1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-item,
|
||||||
|
.sidebar-row {
|
||||||
|
padding: 5px 8px;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
padding-right: 6px;
|
||||||
|
padding-left: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected,
|
||||||
|
&:active {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
box-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: lighten($selected_bg_color, 20%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow:0 1px 2px 0 transparentize(black, 0.8);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
color: $borders_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,172 @@
|
||||||
|
/*****************
|
||||||
|
* GtkSpinButton *
|
||||||
|
*****************/
|
||||||
|
|
||||||
|
.spinbutton {
|
||||||
|
&:not(.vertical) {
|
||||||
|
|
||||||
|
@extend %entry;
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
margin: 0;
|
||||||
|
padding: 6px;
|
||||||
|
color: mix($fg_color, $base_color, 90%);
|
||||||
|
background-image: none;
|
||||||
|
border-style: none none none solid;
|
||||||
|
border-color: transparentize($borders_color, 0.7);
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:dir(rtl) { border-style: none solid none none; }
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $fg_color;
|
||||||
|
background-color: $base_hover_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive { color: transparentize($insensitive_fg_color, 0.7); }
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: transparentize(black, 0.9);
|
||||||
|
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
|
||||||
|
background-color: transparent;
|
||||||
|
border-color: transparentize($backdrop_borders_color, 0.7);
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop:insensitive {
|
||||||
|
color: transparentize($backdrop_insensitive_color,0.7);
|
||||||
|
background-image: none;
|
||||||
|
border-style: none none none solid; // It is needed or it gets overridden
|
||||||
|
|
||||||
|
&:dir(rtl) { border-style: none solid none none; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD horizontal
|
||||||
|
.osd &:not(.vertical) {
|
||||||
|
.button {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-style: none none none solid;
|
||||||
|
border-color: transparentize($osd_borders_color, 0.3);
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:dir(rtl) { border-style: none solid none none; }
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||||
|
background-color: transparentize($osd_fg_color, 0.9);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $osd_fg_color;
|
||||||
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
@include button(undecorated);
|
||||||
|
|
||||||
|
color: $osd_insensitive_fg_color;
|
||||||
|
border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child { border-radius: 0 3px 3px 0; }
|
||||||
|
|
||||||
|
&:dir(rtl):first-child { border-radius: 3px 0 0 3px; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vertical
|
||||||
|
&.vertical {
|
||||||
|
|
||||||
|
&:insensitive { color: $insensitive_fg_color; }
|
||||||
|
&:backdrop:insensitive { color: $backdrop_insensitive_color; }
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
padding: 0;
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
box-shadow: none;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color:$selected_bg_color;
|
||||||
|
color: $selected_fg_color;
|
||||||
|
icon-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color:transparent;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.up { @extend %top_button; }
|
||||||
|
|
||||||
|
&.down { @extend %bottom_button; }
|
||||||
|
}
|
||||||
|
|
||||||
|
%top_button {
|
||||||
|
border-radius: 3px 3px 0 0;
|
||||||
|
border-style: solid solid none solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
%bottom_button {
|
||||||
|
border-radius: 0 0 3px 3px;
|
||||||
|
border-style: none solid solid solid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// OSD vertical
|
||||||
|
.osd &.vertical button:first-child {
|
||||||
|
@include button(osd);
|
||||||
|
|
||||||
|
&:hover { @include button(osd-hover);}
|
||||||
|
|
||||||
|
&:active { @include button(osd-active); }
|
||||||
|
|
||||||
|
&:insensitive { @include button(osd-insensitive); }
|
||||||
|
|
||||||
|
&:backdrop { @include button(osd-backdrop); }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Misc
|
||||||
|
|
||||||
|
GtkTreeView &:not(.vertical) {
|
||||||
|
border-style: none;
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
.entry {
|
||||||
|
padding: 1px 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
/***********
|
||||||
|
* Spinner *
|
||||||
|
***********/
|
||||||
|
|
||||||
|
.menu.spinner,
|
||||||
|
menu spinner,
|
||||||
|
.primary-toolbar .spinner {
|
||||||
|
color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*********************
|
||||||
|
* Spinner Animation *
|
||||||
|
*********************/
|
||||||
|
@keyframes spin {
|
||||||
|
to { -gtk-icon-transform: rotate(1turn); }
|
||||||
|
}
|
||||||
|
|
||||||
|
.spinner,
|
||||||
|
spinner {
|
||||||
|
background-image: none;
|
||||||
|
background: none;
|
||||||
|
opacity: 0; // non spinning spinner makes no sense
|
||||||
|
-gtk-icon-source: -gtk-icontheme('process-working-symbolic');
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
opacity: 1;
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
|
||||||
|
&:insensitive, &:insensitive { opacity: 0.5; }
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,79 @@
|
||||||
|
/**********
|
||||||
|
* Switch *
|
||||||
|
**********/
|
||||||
|
GtkSwitch {
|
||||||
|
-GtkSwitch-slider-width: 24px;
|
||||||
|
-GtkSwitch-slider-height: 24px;
|
||||||
|
|
||||||
|
font: 1;
|
||||||
|
font-weight: bold;
|
||||||
|
outline-offset: -4px;
|
||||||
|
transition: all 200ms ease-in;
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
border-radius: 14px;
|
||||||
|
color: transparent;
|
||||||
|
|
||||||
|
background-color: transparentize(black, 0.9);
|
||||||
|
box-shadow: inset 0 0 0 1px transparentize(black, 0.95), 0px 1px $bottom_highlight;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background-color: $insensitive_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
|
||||||
|
&:insensitive { background-color: $insensitive_bg_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_selected_bg_color;
|
||||||
|
|
||||||
|
.slider,
|
||||||
|
slider {
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow:none;
|
||||||
|
background-color:transparentize($base_color, 0.1);
|
||||||
|
border:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Handle
|
||||||
|
.slider {
|
||||||
|
padding:2px;
|
||||||
|
border-radius: 50%;
|
||||||
|
transition: $button_transition;
|
||||||
|
background-color: $base_color;
|
||||||
|
|
||||||
|
box-shadow: 0 2px 2px transparentize(black, 0.8),
|
||||||
|
0 1px 2px transparentize(black, 0.8);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
padding:2px;
|
||||||
|
box-shadow:none;
|
||||||
|
background-color:$base_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Trough
|
||||||
|
.trough {
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: $backdrop_selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,298 @@
|
||||||
|
/************
|
||||||
|
* Toolbars *
|
||||||
|
************/
|
||||||
|
%toolbar {
|
||||||
|
-GtkWidget-window-dragging: true;
|
||||||
|
padding: 0px;
|
||||||
|
background-color: $headerbar_bg_color;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color:$backdrop_headerbar_bg_color;
|
||||||
|
color:$backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar {
|
||||||
|
@extend %toolbar;
|
||||||
|
|
||||||
|
// on OSD
|
||||||
|
.osd & { box-shadow:none; background-color: transparent; }
|
||||||
|
|
||||||
|
// Buttons
|
||||||
|
.button {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px;
|
||||||
|
text-shadow: none;
|
||||||
|
|
||||||
|
&.suggested-action,
|
||||||
|
&.text-button,
|
||||||
|
&.image-button,
|
||||||
|
&.linked,
|
||||||
|
&.flat {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 10px;
|
||||||
|
text-shadow: none;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
text-shadow: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow:none;
|
||||||
|
text-shadow:none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GtkLabel,
|
||||||
|
GtkImage {
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow:none;
|
||||||
|
text-shadow:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
|
||||||
|
GtkImage {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active,
|
||||||
|
&:checked {
|
||||||
|
border-radius: 0px;
|
||||||
|
|
||||||
|
text-shadow: none;
|
||||||
|
icon-shadow: none;
|
||||||
|
|
||||||
|
box-shadow: inset 0 -2px 0 0 $headerbar_fg_color;
|
||||||
|
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $headerbar_fg_color;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
|
||||||
|
box-shadow: inset 0 -2px 0 0 $backdrop_headerbar_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:hover {
|
||||||
|
background-image:none;
|
||||||
|
background-color: transparentize(black, 0.85);
|
||||||
|
color:lighten($headerbar_fg_color, 10%);
|
||||||
|
box-shadow: inset 0 -2px 0 0 $headerbar_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive,
|
||||||
|
&:insensitive:backdrop {
|
||||||
|
color: $backdrop_headerbar_fg_color;
|
||||||
|
background-color: transparent;
|
||||||
|
background-image: none;
|
||||||
|
|
||||||
|
image,
|
||||||
|
GtkImage {
|
||||||
|
-gtk-image-effect: dim;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator {
|
||||||
|
color: transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
// stand-alone OSD toolbars
|
||||||
|
&.osd {
|
||||||
|
padding: 13px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
background-color: $osd_bg_color;
|
||||||
|
|
||||||
|
&.left,
|
||||||
|
&.right,
|
||||||
|
&.top,
|
||||||
|
&.bottom { border-radius: 0; } // positional classes for `attached` osd toolbars
|
||||||
|
}
|
||||||
|
|
||||||
|
// toolbar separators
|
||||||
|
&.horizontal separator { margin: 0 7px 1px 6px; }
|
||||||
|
&.vertical separator { margin: 6px 1px 7px 0; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*******************
|
||||||
|
* Inline Toolbars *
|
||||||
|
*******************/
|
||||||
|
|
||||||
|
%inline-toolbar,
|
||||||
|
.inline-toolbar {
|
||||||
|
-GtkWidget-window-dragging: true;
|
||||||
|
|
||||||
|
background-color: darken($bg_color, 2%);
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
border: 1px solid $borders_color;
|
||||||
|
border-top-width: 0;
|
||||||
|
border-radius: 0 0 5px 5px;
|
||||||
|
|
||||||
|
box-shadow: inset 0 -1px 1px -2px transparentize(black, 0.5);
|
||||||
|
|
||||||
|
padding: 0px;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
background-color: darken($bg_color, 5%);
|
||||||
|
}
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
button,
|
||||||
|
.button,
|
||||||
|
.flat,
|
||||||
|
.text-button,
|
||||||
|
.image-button {
|
||||||
|
border: none;
|
||||||
|
background: none;
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: transparent;
|
||||||
|
color: $fg_color;
|
||||||
|
border-radius: 0px;
|
||||||
|
padding: 10px;
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&:active {
|
||||||
|
font:bold;
|
||||||
|
color: $fg_color;
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
background-color: transparentize(black, 0.95);
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border: none;
|
||||||
|
background-color: transparent;
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: transparentize(black, 0.95);
|
||||||
|
text-shadow: none;
|
||||||
|
color: $fg_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
background:none;
|
||||||
|
background-color: transparent;
|
||||||
|
color: transparentize($fg_color,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border: none;
|
||||||
|
background:none;
|
||||||
|
background-color: transparent;
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry,
|
||||||
|
entry {
|
||||||
|
background: none;
|
||||||
|
color: $fg_color;
|
||||||
|
border-radius: 0px;
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&.image {
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&.left{
|
||||||
|
padding-right: 6px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
color: $backdrop_fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: $base_color;
|
||||||
|
background-color:$selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
%darkbar {
|
||||||
|
border-style: solid;
|
||||||
|
border-color: $borders_color;
|
||||||
|
$_bg: mix($bg_color, $borders_color, 70%);
|
||||||
|
background-color: $_bg;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-color: $backdrop_borders_color;
|
||||||
|
background-color: $backdrop_dark_fill;
|
||||||
|
box-shadow: none;
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// search-bar
|
||||||
|
searchbar,
|
||||||
|
.search-bar {
|
||||||
|
@extend %darkbar;
|
||||||
|
@extend %inline-toolbar;
|
||||||
|
|
||||||
|
padding:3px 0px;
|
||||||
|
border-width: 0;
|
||||||
|
border-radius:0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// location-bar
|
||||||
|
.location-bar {
|
||||||
|
@extend %darkbar;
|
||||||
|
@extend %inline-toolbar;
|
||||||
|
|
||||||
|
border-width: 0 0 1px;
|
||||||
|
padding: 3px;
|
||||||
|
}
|
|
@ -0,0 +1,29 @@
|
||||||
|
/************
|
||||||
|
* Tooltips *
|
||||||
|
************/
|
||||||
|
.tooltip,
|
||||||
|
.overlay-bar {
|
||||||
|
|
||||||
|
margin: 4px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: $base_color;
|
||||||
|
color: $fg_color;
|
||||||
|
|
||||||
|
&.background {
|
||||||
|
background-color: $base_color;
|
||||||
|
border: none;
|
||||||
|
box-shadow: 0 1px 2px 0 transparentize(black, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
* { // Yeah this is ugly
|
||||||
|
padding: 2px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: $fg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
.csd {
|
||||||
|
border-radius: 5px;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,226 @@
|
||||||
|
/**************
|
||||||
|
* Tree Views *
|
||||||
|
**************/
|
||||||
|
GtkTreeView.view,
|
||||||
|
treeview.view {
|
||||||
|
-GtkTreeView-grid-line-width: 1;
|
||||||
|
-GtkTreeView-tree-line-width: 1;
|
||||||
|
-GtkTreeView-tree-line-pattern: '';
|
||||||
|
-GtkTreeView-expander-size: 16;
|
||||||
|
|
||||||
|
border-left-color: mix($fg_color, $base_color, 50%); // this is actually the tree lines color,
|
||||||
|
border-top-color: $bg_color; // while this is the grid lines color, better then nothing
|
||||||
|
|
||||||
|
.rubberband,rubberband { @extend rubberband; } // to avoid borders being overridden by the previously set props
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
&:focus, & {
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
@extend %selected_items;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop, & {
|
||||||
|
border-left-color: mix($selected_fg_color, $selected_bg_color, 50%);
|
||||||
|
border-top-color: transparentize($fg_color, 0.9); // doesn't work unfortunatelly
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
color: $insensitive_fg_color;
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: mix($selected_fg_color, $selected_bg_color, 40%);
|
||||||
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop { color: $backdrop_insensitive_color; }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.separator {
|
||||||
|
color: $bg_color;
|
||||||
|
|
||||||
|
&:backdrop { color: transparentize($bg_color, 0.9); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-left-color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
||||||
|
border-top: $backdrop_bg_color;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.expander {
|
||||||
|
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||||
|
|
||||||
|
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
||||||
|
|
||||||
|
color: mix($fg_color, $base_color, 70%);
|
||||||
|
|
||||||
|
&:hover { color: $fg_color; }
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
color: mix($selected_fg_color, $selected_bg_color, 70%);
|
||||||
|
|
||||||
|
&:hover { color: $selected_fg_color; }
|
||||||
|
|
||||||
|
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 70%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
|
||||||
|
|
||||||
|
&:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
&.progressbar { // progress bar in treeviews
|
||||||
|
@if $variant == light { color: $base_color; }
|
||||||
|
|
||||||
|
border: 1px solid $selected_borders_color;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
background-image: linear-gradient(to bottom,
|
||||||
|
$selected_bg_color,
|
||||||
|
darken($selected_bg_color,10%));
|
||||||
|
box-shadow: inset 0 1px if($variant=='light', transparentize(white,0.7),
|
||||||
|
transparentize(white,0.85)),
|
||||||
|
0 1px if($variant=='light', transparentize(black, 0.8),
|
||||||
|
transparentize(black,0.9));
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
&:focus, & {
|
||||||
|
border-radius: 0;
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
color: $selected_bg_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@else { box-shadow: inset 0 1px transparentize(white, 0.95); }
|
||||||
|
|
||||||
|
background-image: linear-gradient(to bottom,
|
||||||
|
$base_color,
|
||||||
|
darken($base_color,10%));
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@if $variant == 'light' {
|
||||||
|
color: $selected_bg_color;
|
||||||
|
border-color: $selected_borders_color; // otherwise it gets inherited by .view(?!?)
|
||||||
|
}
|
||||||
|
|
||||||
|
@else { border-color: $backdrop_base_color; }
|
||||||
|
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
@if $variant == 'light' { color: $backdrop_base_color; }
|
||||||
|
|
||||||
|
@else { border-color: $backdrop_base_color; }
|
||||||
|
|
||||||
|
background-image: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// progress bar trough in treeviews
|
||||||
|
&.trough {
|
||||||
|
background-color: transparentize($fg_color,0.9);
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
&:selected {
|
||||||
|
&:focus, & {
|
||||||
|
background-color: if($variant == 'light',
|
||||||
|
transparentize($selected_fg_color, 0.7),
|
||||||
|
darken($selected_bg_color, 10%));
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
@if $variant == 'light' {
|
||||||
|
border-width: 1px 0;
|
||||||
|
border-style: solid;
|
||||||
|
border-color: $selected_bg_color;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Column Header
|
||||||
|
|
||||||
|
column-header,
|
||||||
|
header {
|
||||||
|
.button,
|
||||||
|
button {
|
||||||
|
$_column_header_color: mix($fg_color, $base_color, 50%);
|
||||||
|
|
||||||
|
@extend %column_header_button;
|
||||||
|
|
||||||
|
color: $_column_header_color;
|
||||||
|
background-color: $base_color;
|
||||||
|
font-weight: bold;
|
||||||
|
text-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
@extend %column_header_button;
|
||||||
|
|
||||||
|
color: mix($_column_header_color, $fg_color, 50%);
|
||||||
|
box-shadow: none;
|
||||||
|
transition: none; //I shouldn't need this
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
@extend %column_header_button;
|
||||||
|
|
||||||
|
color: $fg_color;
|
||||||
|
transition: none; //I shouldn't need this
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button:last-child { &:backdrop, & { border-right-style: none; }}
|
||||||
|
}
|
||||||
|
|
||||||
|
// for treeview-like derive widgets
|
||||||
|
.button.dnd,
|
||||||
|
button.dnd,
|
||||||
|
column-header.button.dnd,
|
||||||
|
header.button.dnd {
|
||||||
|
&:active, &:selected, &:hover, & {
|
||||||
|
padding: 4px 6px;
|
||||||
|
transition: none;
|
||||||
|
background-image: none;
|
||||||
|
background-color: $selected_bg_color;
|
||||||
|
color: $base_color;
|
||||||
|
border-radius: 0;
|
||||||
|
border-style: none;
|
||||||
|
box-shadow: inset 0 0 0 1px $base_color;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
%column_header_button {
|
||||||
|
padding: 4px 6px;
|
||||||
|
border-radius: 0;
|
||||||
|
background-image: none;
|
||||||
|
text-shadow: none;
|
||||||
|
border-style: none solid solid none;
|
||||||
|
border-color: $bg_color;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
border-color: $bg_color;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
border-color: $backdrop_bg_color;
|
||||||
|
border-style: none solid solid none;
|
||||||
|
color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
|
||||||
|
background-image: none;
|
||||||
|
background-color: $backdrop_base_color;
|
||||||
|
|
||||||
|
&:insensitive {
|
||||||
|
border-color: $backdrop_bg_color;
|
||||||
|
background-image: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
/**********************
|
||||||
|
* Window Decorations *
|
||||||
|
*********************/
|
||||||
|
|
||||||
|
.window-frame {
|
||||||
|
|
||||||
|
border-radius: 4px;
|
||||||
|
border-width: 0px;
|
||||||
|
|
||||||
|
box-shadow: 0 8px 9px 1px transparent,
|
||||||
|
0 8px 6px 1px transparentize(black, 0.5);
|
||||||
|
|
||||||
|
margin: 10px;
|
||||||
|
|
||||||
|
&:backdrop {
|
||||||
|
box-shadow: 0 3px 9px 1px transparent,
|
||||||
|
0 6px 6px 0 transparentize(black, 0.7);
|
||||||
|
transition: $backdrop_transition;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fullscreen &,
|
||||||
|
.tiled & { border-radius: 0; }
|
||||||
|
|
||||||
|
.popup & { box-shadow: none; }
|
||||||
|
|
||||||
|
// server-side decorations as used by mutter
|
||||||
|
.ssd & { box-shadow: 0 0 0 1px transparentize(black,0.5);}
|
||||||
|
|
||||||
|
.csd.popup & {
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: 0 1px 2px transparentize(black, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.solid-csd & {
|
||||||
|
border-radius: 0;
|
||||||
|
margin: 4px;
|
||||||
|
background-color: $backdrop_bg_color;
|
||||||
|
border: 0px solid $backdrop_borders_color;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue