sass rewrite first commit

This commit is contained in:
Sam Hewitt 2016-04-14 21:54:38 -04:00
parent bdca59f262
commit e2c10d03d2
242 changed files with 27315 additions and 19927 deletions

4
.gitignore vendored
View File

@ -6,4 +6,6 @@ configure
install-sh
Makefile
Makefile.in
missing
missing
.sass-cache
.sass-cache/

2
Gemfile Normal file
View File

@ -0,0 +1,2 @@
source 'https://rubygems.org'
gem "sass", "~> 3.4.0"

26
Paper/gtk-3.0/README.md Normal file
View File

@ -0,0 +1,26 @@
Summary
-------
* Do not edit the CSS directly, edit the source SCSS files and process them with SASS (run
`./parse-sass.sh` when you have the required software installed, as described below)
* To be able to use the latest/adequate version of sass, install ruby, gem, sass & bundle.
## How to tweak the theme
Paper is a large and complex theme, to keep it maintainable it's written and processed in SASS.
_colors.scss - global color definitions. We keep the number of defined colors to a necessary minimum,
most colors are derived form a handful of basics. It covers both the light variant and
the dark variant.
_colors-public.scss - SCSS colors exported through gtk to allow for 3rd party apps color mixing.
_drawing.scss - drawing helper mixings/functions to allow easier definition of widget drawing under
specific context. This is why Paper isn't 15000 LOC.
_common.scss - actual definitions of style for each widget. This is where you are likely to add/remove
your changes.
apps/_*.scss - actual definitions of style for each widget. This is where you are likely to add/remove
your changes.

15
Paper/gtk-3.0/_apps.scss Normal file
View File

@ -0,0 +1,15 @@
/***********************
* App-Specific Styles *
***********************/
@import 'apps/archive-manager';
@import 'apps/birdie';
@import 'apps/gnome';
@import 'apps/pantheon';
@import 'apps/midori';
@import 'apps/pantheon';
@import 'apps/unity';
@import 'apps/vocal';

View File

@ -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};

View File

@ -0,0 +1,75 @@
// When color definition differs for dark and light variant
// it gets @if ed depending on $variant
$base_color: if($variant == 'light', #ffffff, #636E73);
$bg_color: if($variant == 'light', #f7f7f7, #4F585C);
$fg_color: if($variant == 'light', #666666, #A1A8AB);
$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.2));
$selection_mode_headerbar_bg_color: #347D9F;
$selected_fg_color: #ffffff;
$selected_bg_color: if($variant == 'light', #9fb0b9, darken(#9fb0b9,20%));
$selected_borders_color: if($variant== 'light', darken($selected_bg_color, 20%), darken($selected_bg_color, 30%));
$borders_color: if($variant == 'light', darken($bg_color,20%), darken($bg_color,12%));
$borders_edge: if($variant == 'light', transparentize(white, 0.8), transparentize(white, 0.9));
$link_color: #347D9F;
$link_visited_color:transparentize($link_color,0.5);
$top_highlight: $borders_edge;
$bottom_highlight: if($variant == 'light', transparentize(white, 0.2), 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: $bg_color;
$popover_hover_color: lighten($bg_color, 5%);
$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%));
$warning_color: #fec006;
$error_color: #f34235;
$info_color: #2095f2;
$success_color: if($variant == 'light', #dbdee0, darken(#dbdee0,10%));
$destructive_color: if($variant == 'light', #DC322F, darken(#DC322F,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.9);
$drop_target_color: #4e9a06;
// Insensitive state colors
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
$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: transparentize($headerbar_fg_color, 0.5);
$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_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%));

View File

@ -0,0 +1,92 @@
/**********
* 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;
// -gtk-outline-radius: 2px;
-gtk-secondary-caret-color: $selected_bg_color
}
@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/file-chooser';
@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/print-dialog';
@import 'widgets/progress-bars';
@import 'widgets/scales';
@import 'widgets/scrollbars';
@import 'widgets/sidebar';
@import 'widgets/source-list';
@import 'widgets/spinbuttons';
@import 'widgets/spinner';
@import 'widgets/switches';
@import 'widgets/toolbars';
@import 'widgets/tooltips';
@import 'widgets/touch-copy-paste';
@import 'widgets/treeviews';
@import 'widgets/windows';

597
Paper/gtk-3.0/_drawing.scss Normal file
View File

@ -0,0 +1,597 @@
// 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;
-gtk-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;
-gtk-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;
-gtk-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;
-gtk-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;
-gtk-icon-shadow: 0 1px $_shadow;
}
@else {
text-shadow: 0 1px $_shadow;
-gtk-icon-shadow: 0 -1px $_shadow;
}
}
@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); }
label, & { 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;
-gtk-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); }
label, & { 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); }
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: linear-gradient(to bottom, $_bg);
text-shadow: none;
-gtk-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); }
label, & { 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;
-gtk-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));
label { 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;
-gtk-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;
-gtk-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;
-gtk-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;
-gtk-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;
-gtk-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;
-gtk-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;
}

View File

@ -1,65 +0,0 @@
/* 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/.
*/
/********
* Apps *
********/
@import url("apps/appcenter.css");
@import url("apps/archive-manager.css");
@import url("apps/baobab.css");
@import url("apps/bijiben.css");
@import url("apps/birdie.css");
@import url("apps/budgie.css");
@import url("apps/calculator.css");
@import url("apps/calendar.css");
@import url("apps/cheese.css");
@import url("apps/epiphany.css");
@import url("apps/fallback.css");
@import url("apps/geary.css");
@import url("apps/gedit.css");
@import url("apps/gnome-calendar.css");
@import url("apps/gnome-clocks.css");
@import url("apps/gnome-contacts.css");
@import url("apps/gnome-disks.css");
@import url("apps/gnome-documents.css");
@import url("apps/gnome-music.css");
@import url("apps/gnome-photos.css");
@import url("apps/gnome-software.css");
@import url("apps/gnome-system-monitor.css");
@import url("apps/gnome-terminal.css");
@import url("apps/gnome-tweak-tool.css");
@import url("apps/gnome-weather.css");
@import url("apps/gnome.css");
@import url("apps/logs.css");
@import url("apps/midori.css");
@import url("apps/nautilus.css");
@import url("apps/noise.css");
@import url("apps/pantheon-files.css");
@import url("apps/pantheon-terminal.css");
@import url("apps/pantheon.css");
@import url("apps/rhythmbox.css");
@import url("apps/scratch-text-editor.css");
@import url("apps/settings.css");
@import url("apps/shotwell.css");
@import url("apps/snap.css");
@import url("apps/synaptic.css");
@import url("apps/unity.css");
@import url("apps/vocal.css");
@import url("apps/xfce.css");
@import url("apps/yelp.css");

View File

@ -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%);
}
}
}

View File

@ -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;
}
}

View File

@ -0,0 +1,461 @@
/***************
* 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;
}
/***********
* 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%);
}
}
}
/**************
* 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 *
***************