From 14989cefd5405f6528266e3d57f39f36b13cf261 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Tue, 3 Mar 2015 19:59:29 -0500 Subject: [PATCH] Updated scripts & docs; updated some css --- AUTHORS | 15 +--- LICENSE | 1 - Paper/gtk-3.0/apps/epiphany.css | 5 +- .../widgets/destructive-action-buttons.css | 68 ++++++++++++++++++- .../widgets/suggested-action-buttons.css | 67 ++++++++++++++++++ Paper/gtk-3.0/widgets/views.css | 2 +- paper-gtk-theme.spec | 3 +- render-gnome-shell-assets.py | 2 + render-gtk3-assets-hidpi.py | 2 + render-gtk3-assets.py | 2 + render-metacity-assets.py | 3 +- render-unity-assets.py | 2 + 12 files changed, 151 insertions(+), 21 deletions(-) diff --git a/AUTHORS b/AUTHORS index 6ed2e59..34407f1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,14 +1,3 @@ -Paper is designed and developed by Sam Hewitt . +Paper is designed and developed by: -This theme is comprised of free artwork & software;you can -redistribute and/or modify it under the terms of the GNU General -Public License as published by the Free Software Foundation; -either version 3, or (at your option) any later version. - -This 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 these icons;if not, see . \ No newline at end of file +Sam Hewitt \ No newline at end of file diff --git a/LICENSE b/LICENSE index a363da5..fa75651 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,3 @@ - GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/Paper/gtk-3.0/apps/epiphany.css b/Paper/gtk-3.0/apps/epiphany.css index c0492b7..3478f4b 100644 --- a/Paper/gtk-3.0/apps/epiphany.css +++ b/Paper/gtk-3.0/apps/epiphany.css @@ -82,8 +82,9 @@ EphyWindow .dynamic-notebook tab.right:active { * Incognito Mode * ******************/ -.incognito-mode { - background-image:none; +EphyWindow .titlebar .incognito-mode, +EphyWindow .header-bar .incognito-mode { + background:none; background-color: shade(@epiphany, 0.8); } diff --git a/Paper/gtk-3.0/widgets/destructive-action-buttons.css b/Paper/gtk-3.0/widgets/destructive-action-buttons.css index 418cf28..7065ea0 100644 --- a/Paper/gtk-3.0/widgets/destructive-action-buttons.css +++ b/Paper/gtk-3.0/widgets/destructive-action-buttons.css @@ -20,7 +20,7 @@ * Destructive action buttons * ******************************/ @define-color destructive_action_button #DC322F; -@define-color destructive_action_button_border shade(@destructive_action_button, 0.8); +@define-color destructive_action_button_border shade(@destructive_action_button, 0.7); @define-color destructive_action_button_foreground @base; /****************************** @@ -31,6 +31,10 @@ .button.destructive-action { border: 1px solid @destructive_action_button_border; background-color: @destructive_action_button; + background-image: linear-gradient(to bottom, + @destructive_action_button, + shade(@destructive_action_button, 0.98) + ); color: @destructive_action_button_foreground; } @@ -38,6 +42,10 @@ .button.destructive-action:hover { border: 1px solid shade(@destructive_action_button_border, 1.1); background-color: shade(@destructive_action_button, 1.1); + background-image: linear-gradient(to bottom, + shade(@destructive_action_button, 1.1), + shade(shade(@destructive_action_button, 1.1), 0.98) + ); color: @destructive_action_button_foreground; } @@ -45,6 +53,10 @@ .button.destructive-action:active { border: 1px solid @destructive_action_button_border; background-color: @destructive_action_button; + background-image: linear-gradient(to bottom, + @destructive_action_button, + shade(@destructive_action_button, 0.98) + ); color: @destructive_action_button_foreground; } @@ -67,4 +79,58 @@ border: 1px solid mix(@insensitive_border, @backdrop_border, 0.5); background-color: mix(@insensitive_background, @backdrop_background, 0.5); color: mix(@insensitive_text, @backdrop_text, 0.5); +} + +/* Images */ +.destructive-action.button GtkImage { + color: @destructive_action_button_foreground; +} + +.destructive-action.button:active GtkImage, +.destructive-action.button:focus GtkImage, +.destructive-action.button:hover GtkImage { + color: @selected_foreground; +} + +.destructive-action.button:backdrop GtkImage, +.destructive-action.button:backdrop:hover GtkImage, +.destructive-action.button:active:backdrop GtkImage { + color: @backdrop_text; + -gtk-image-effect: dim; +} + +.destructive-action.button:insensitive GtkImage { + color: @insensitive_text; + -gtk-image-effect: dim; +} + +.destructive-action.button:insensitive:backdrop GtkImage { + color: mix(@backdrop_text, @insensitive_text, 0.5); + -gtk-image-effect: dim; +} + +/* Labels */ +.destructive-action.button GtkLabel { + color: @destructive_action_button_foreground; +} + +.destructive-action.button:active GtkLabel, +.destructive-action.button:focus GtkLabel, +.destructive-action.button:hover GtkLabel { + color: @selected_foreground; +} + +.destructive-action.button:backdrop GtkLabel, +.destructive-action.button:backdrop:hover GtkLabel, +.destructive-action.button:focus:backdrop GtkLabel, +.destructive-action.button:active:backdrop GtkLabel { + color: @backdrop_text; +} + +.destructive-action.button:insensitive GtkLabel { + color: @insensitive_text; +} + +.destructive-action.button:insensitive:backdrop GtkLabel { + color: mix(@backdrop_text, @insensitive_text, 0.5); } \ No newline at end of file diff --git a/Paper/gtk-3.0/widgets/suggested-action-buttons.css b/Paper/gtk-3.0/widgets/suggested-action-buttons.css index c50143f..8ad729f 100644 --- a/Paper/gtk-3.0/widgets/suggested-action-buttons.css +++ b/Paper/gtk-3.0/widgets/suggested-action-buttons.css @@ -29,6 +29,10 @@ .button.suggested-action { border: 1px solid @suggested_action_button; background-color: @suggested_action_button; + background-image: linear-gradient(to bottom, + @suggested_action_button, + shade(@suggested_action_button, 0.98) + ); color: @suggested_action_button_foreground; } @@ -36,6 +40,10 @@ .button.suggested-action:hover { border: 1px solid shade(@suggested_action_button, 1.2); background-color: shade(@suggested_action_button, 1.2); + background-image: linear-gradient(to bottom, + shade(@suggested_action_button, 1.1), + shade(shade(@suggested_action_button, 1.1), 0.98) + ); color: @suggested_action_button_foreground; } @@ -43,6 +51,10 @@ .button.suggested-action:active { border: 1px solid shade(@suggested_action_button, 1.1); background-color: shade(@suggested_action_button, 1.1); + background-image: linear-gradient(to bottom, + @suggested_action_button, + shade(@suggested_action_button, 0.98) + ); color: @suggested_action_button_foreground; } @@ -107,4 +119,59 @@ border: 1px solid mix(@insensitive_border, @backdrop_border, 0.5); background-color: mix(@insensitive_background, @backdrop_background, 0.5); color: mix(@insensitive_text, @backdrop_text, 0.5); +} + + +/* Images */ +.suggested-action.button GtkImage { + color: @suggested_action_button_foreground; +} + +.suggested-action.button:active GtkImage, +.suggested-action.button:focus GtkImage, +.suggested-action.button:hover GtkImage { + color: @selected_foreground; +} + +.suggested-action.button:backdrop GtkImage, +.suggested-action.button:backdrop:hover GtkImage, +.suggested-action.button:active:backdrop GtkImage { + color: @backdrop_text; + -gtk-image-effect: dim; +} + +.suggested-action.button:insensitive GtkImage { + color: @insensitive_text; + -gtk-image-effect: dim; +} + +.suggested-action.button:insensitive:backdrop GtkImage { + color: mix(@backdrop_text, @insensitive_text, 0.5); + -gtk-image-effect: dim; +} + +/* Labels */ +.suggested-action.button GtkLabel { + color: @suggested_action_button_foreground; +} + +.suggested-action.button:active GtkLabel, +.suggested-action.button:focus GtkLabel, +.suggested-action.button:hover GtkLabel { + color: @selected_foreground; +} + +.suggested-action.button:backdrop GtkLabel, +.suggested-action.button:backdrop:hover GtkLabel, +.suggested-action.button:focus:backdrop GtkLabel, +.suggested-action.button:active:backdrop GtkLabel { + color: @backdrop_text; +} + +.suggested-action.button:insensitive GtkLabel { + color: @insensitive_text; +} + +.suggested-action.button:insensitive:backdrop GtkLabel { + color: mix(@backdrop_text, @insensitive_text, 0.5); } \ No newline at end of file diff --git a/Paper/gtk-3.0/widgets/views.css b/Paper/gtk-3.0/widgets/views.css index 444e2be..5d9b0d2 100644 --- a/Paper/gtk-3.0/widgets/views.css +++ b/Paper/gtk-3.0/widgets/views.css @@ -29,7 +29,7 @@ .frame:backdrop { border-color: @backdrop_border; - background-color: none; + background: none; color: @backdrop_text; } diff --git a/paper-gtk-theme.spec b/paper-gtk-theme.spec index 4e0f49a..b2eb563 100644 --- a/paper-gtk-theme.spec +++ b/paper-gtk-theme.spec @@ -42,5 +42,4 @@ cp -a Paper-Dark/ $RPM_BUILD_ROOT%{_datadir}/themes/ %files %doc AUTHORS LICENSE -%{_datadir}/themes/Paper/ -%{_datadir}/themes/Paper-Dark/ \ No newline at end of file +%{_datadir}/themes/Paper/ \ No newline at end of file diff --git a/render-gnome-shell-assets.py b/render-gnome-shell-assets.py index 4634968..20fd002 100755 --- a/render-gnome-shell-assets.py +++ b/render-gnome-shell-assets.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Thanks to the GNOME theme nerds for the original source of this script + import os import sys import xml.sax diff --git a/render-gtk3-assets-hidpi.py b/render-gtk3-assets-hidpi.py index e019e45..cb360e8 100755 --- a/render-gtk3-assets-hidpi.py +++ b/render-gtk3-assets-hidpi.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Thanks to the GNOME theme nerds for the original source of this script + import os import sys import xml.sax diff --git a/render-gtk3-assets.py b/render-gtk3-assets.py index ef30c40..a5f0274 100755 --- a/render-gtk3-assets.py +++ b/render-gtk3-assets.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Thanks to the GNOME theme nerds for the original source of this script + import os import sys import xml.sax diff --git a/render-metacity-assets.py b/render-metacity-assets.py index fba0230..cf5ba4e 100755 --- a/render-metacity-assets.py +++ b/render-metacity-assets.py @@ -1,11 +1,12 @@ #!/usr/bin/python3 +# Thanks to the GNOME theme nerds for the original source of this script + import os import sys import xml.sax import subprocess - INKSCAPE = '/usr/bin/inkscape' OPTIPNG = '/usr/bin/optipng' SRC = os.path.join('.', 'src/metacity') diff --git a/render-unity-assets.py b/render-unity-assets.py index d787875..7635ed8 100755 --- a/render-unity-assets.py +++ b/render-unity-assets.py @@ -1,5 +1,7 @@ #!/usr/bin/python3 +# Thanks to the GNOME theme nerds for the original source of this script + import os import sys import xml.sax