Additions & refinements.

This commit is contained in:
Sam Hewitt
2014-12-19 10:57:16 -05:00
parent 1dea4daeb2
commit 71377c46d0
7 changed files with 109 additions and 60 deletions

View File

@@ -83,6 +83,7 @@
@import url("widgets/images.css"); @import url("widgets/images.css");
@import url("widgets/infobars.css"); @import url("widgets/infobars.css");
@import url("widgets/inline-toolbars.css"); @import url("widgets/inline-toolbars.css");
@import url("widgets/labels.css");
@import url("widgets/levelbars.css"); @import url("widgets/levelbars.css");
@import url("widgets/links.css"); @import url("widgets/links.css");
@import url("widgets/linked-buttons.css"); @import url("widgets/linked-buttons.css");

View File

@@ -20,30 +20,26 @@
* Images * * Images *
**********/ **********/
GtkImage, *:active GtkImage,
* GtkImage { *:focus GtkImage,
background: none; *:hover GtkImage {
color: @toolbar_text; color: @selected_foreground;
} }
GtkImage:backdrop, *:backdrop GtkImage,
* GtkImage:backdrop { *:backdrop:hover GtkImage,
background: none; *:active:backdrop GtkImage {
color: @backdrop_toolbar_text; color: @backdrop_text;
-gtk-image-effect: dim; -gtk-image-effect: dim;
} }
GtkImage:insensitive, *:insensitive GtkImage {
* GtkImage:insensitive { color: @insensitive_text;
background: none;
color: @insensitive_toolbar_text;
-gtk-image-effect: dim; -gtk-image-effect: dim;
} }
GtkImage:insensitive:backdrop, *:insensitive:backdrop GtkImage {
* GtkImage:insensitive:backdrop { color: mix(@backdrop_text, @insensitive_text, 0.5);
background: none;
color: mix(@backdrop_toolbar_text , @insensitive_toolbar_text , 0.5);
-gtk-image-effect: dim; -gtk-image-effect: dim;
} }

View File

@@ -0,0 +1,54 @@
/* Copyright 2014 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/.
*/
/**********
* Labels *
**********/
.label,
GtkLabel {
color: @text;
}
.label:active,
.label:focus,
.label:hover,
*:active GtkLabel,
*:focus GtkLabel,
*:hover GtkLabel {
color: @selected_foreground;
}
.label:backdrop,
.label:backdrop:hover,
.label:active:backdrop,
*:backdrop GtkLabel,
*:backdrop:hover GtkLabel,
*:active:backdrop GtkLabel {
color: @backdrop_text;
}
.label:insensitive,
*:insensitive GtkLabel {
color: @insensitive_text;
}
.label:insensitive:backdrop,
*:insensitive:backdrop GtkLabel {
color: mix(@backdrop_text, @insensitive_text, 0.5);
}

View File

@@ -20,67 +20,47 @@
* Menu Button * * Menu Button *
***************/ ***************/
.menu.button { .menu-button {
background-image: none; background-image: none;
background-color: @base; background-color: @base;
border: 1px solid @selection; border: 1px solid @selection;
} }
.menu.button.separator { .menu-button.separator {
border-style: none; border-style: none;
color: shade(@foreground, 3.2); color: shade(@foreground, 3.2);
-GtkMenuItem-horizontal-padding: 0; -GtkMenuItem-horizontal-padding: 0;
-GtkWidget-separator-height: 1; -GtkWidget-separator-height: 1;
} }
.menu.button:hover { .menu-button:hover {
background-image: none; background-image: none;
background-color: @base; background-color: @base;
color: @foreground; color: @foreground;
border-style: none; border-style: none;
} }
.menu.button:insensitive { .menu-button:insensitive {
background-color: @base; background-color: @base;
color: lighter(@internal_element); color: lighter(@internal_element);
border-style: none; border-style: none;
} }
.menu.button:hover, .menu-button:hover,
.menu.button:active, .menu-button:active,
.menu.button:active:insensitive, .menu-button:active:insensitive,
.menu.button:insensitive, .menu-button:insensitive,
.menu.button { .menu-button {
border-width: 0; border-width: 0;
background-color: shade(@foreground, 1.05); background-color: shade(@foreground, 1.05);
background-image: none; background-image: none;
} }
GtkMenuButton.button:active, GtkMenuButton.button:active,
GtkMenuButton.button.raised:active { GtkMenuButton.button.raised:active {
color: @foreground; color: @foreground;
} }
.button.menuitem.menubar:active {
background-image: none;
background-color: @background;
border: 1px solid @background;
border-radius: 0 0;
border-image: none;
border-bottom-width: 0px;
}
.button.menuitem.menubar *:active,
GtkMenuButton.button *:active,
.toolbar GtkMenuButton.button *:active {
color: @foreground;
}
GtkMenuButton .menu {
}
/* Images */ /* Images */
.menu-button .menu .menuitem GtkImage { .menu-button .menu .menuitem GtkImage {

View File

@@ -26,6 +26,7 @@
} }
/*Context Menu*/ /*Context Menu*/
.context-menu { .context-menu {
font: initial; font: initial;
box-shadow: 0 2px 3px 2px @menu_shadow; box-shadow: 0 2px 3px 2px @menu_shadow;
@@ -44,8 +45,7 @@
color: @base; color: @base;
} }
/* Menu Items */ /* Menu Item */
.menuitem, .menuitem,
.menu .menuitem { .menu .menuitem {
padding-top: 4px; padding-top: 4px;
@@ -59,17 +59,6 @@
-gtk-icon-style: symbolic; -gtk-icon-style: symbolic;
} }
/* Menu Text */
.menuitem GtkLabel {
padding-left: 2px;
padding-right: 2px;
}
.menu .menuitem GtkLabel {
padding-left: 6px;
padding-right: 2px;
}
/* Active */ /* Active */
.menuitem:active, .menuitem:active,
.menu .menuitem:active { .menu .menuitem:active {
@@ -113,6 +102,7 @@
.menu .menuitem.arrow:dir(rtl) { .menu .menuitem.arrow:dir(rtl) {
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
} }
/* Separator color */ /* Separator color */
.menuitem.separator { .menuitem.separator {
padding-left: 2px; padding-left: 2px;
@@ -150,8 +140,18 @@
} }
/* Menu Text */
.menuitem GtkLabel {
padding-left: 2px;
padding-right: 2px;
}
/* Images */ .menu .menuitem GtkLabel {
padding-left: 6px;
padding-right: 2px;
}
/* Images * Labels */
.menuitem GtkImage { .menuitem GtkImage {
color: @text; color: @text;
} }

View File

@@ -1,3 +1,21 @@
/* Copyright 2014 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/.
*/
/*********** /***********
* Spinner * * Spinner *
***********/ ***********/

View File

@@ -17,7 +17,7 @@
*/ */
/************* /*************
* statusbar * * Statusbar *
*************/ *************/
GtkStatusbar { GtkStatusbar {
padding: 0; padding: 0;