From 2d4ea9f6b1642b7a8c9fc307c5bc05c16c116f76 Mon Sep 17 00:00:00 2001 From: Sam Hewitt Date: Fri, 19 Dec 2014 19:42:53 -0500 Subject: [PATCH] Mainly refined column headers. --- Paper/gtk-3.0/widgets/buttons.css | 1 + Paper/gtk-3.0/widgets/column-header.css | 129 +++++++++++++++++---- Paper/gtk-3.0/widgets/dynamic-notebook.css | 2 +- Paper/gtk-3.0/widgets/message-dialogs.css | 4 +- 4 files changed, 109 insertions(+), 27 deletions(-) diff --git a/Paper/gtk-3.0/widgets/buttons.css b/Paper/gtk-3.0/widgets/buttons.css index 2658655..a717e65 100644 --- a/Paper/gtk-3.0/widgets/buttons.css +++ b/Paper/gtk-3.0/widgets/buttons.css @@ -133,6 +133,7 @@ GtkCalendar.button:backdrop:hover, background-image: none; color: @backdrop_text; } + /* Backdrop Button */ .button:backdrop:hover, .button.default:backdrop:hover, diff --git a/Paper/gtk-3.0/widgets/column-header.css b/Paper/gtk-3.0/widgets/column-header.css index d8fdff5..63b3fb4 100644 --- a/Paper/gtk-3.0/widgets/column-header.css +++ b/Paper/gtk-3.0/widgets/column-header.css @@ -16,30 +16,111 @@ * with the Paper GTK theme. If not, see http://www.gnu.org/licenses/. */ -/***************** - * Column header * +/****************** + * Column Headers * *****************/ - -column-header .button { - background: none; - box-shadow: none; - border-radius: 0px; - border: solid @border; - border-width: 0 0 1px 1px; -} - -column-header:first-child .button, -column-header .button:first-child { - border-radius: 0px; - border: solid @border; - border-width: 0 0 1px 1px; -} - -column-header:last-child .button, -column-header .button:last-child { - border-radius: 0px; - border: solid @border; - border-width: 0 0 1px 1px; + +column-header .button, +.content-view column-header .button { + border-radius: 0; + border-width: 0px; } - \ No newline at end of file +column-header .button GtkImage, +column-header .button GtkLabel { + padding-left: 3px; + color: @text; +} + +column-header:nth-child(first) .button, +column-header:nth-child(first) .button:active, +column-header:nth-child(first) .button:backdrop, +column-header:nth-child(first) .button:backdrop:hover, +.content-view column-header:nth-child(first) .button { + border-width: 0 0 1px 0; +} + +/* Normal */ +column-header .button { + background-image: linear-gradient(to bottom, + @button_background, + shade(@button_background, 0.98) + ); + border-image: linear-gradient(to bottom, + @button_border, + shade(@button_border, 0.98) + ) 0 0 1 1; + border-width: 0 0 1px 1px; + padding: 4px 2px 4px 2px; + color: @text; +} + +/* Active */ +column-header .button:focus, +column-header .button:active { + background-image: linear-gradient(to bottom, + @button_background, + shade(@button_background, 0.98) + ); + border-image: linear-gradient(to bottom, + @button_border, + shade(@button_border, 0.98) + ) 0 0 1 1; + border-width: 0 0 1px 1px; + padding: 4px 2px 4px 2px; + color: @text; +} + +column-header .button:focus GtkImage, +column-header .button:focus GtkLabel, +column-header .button:active GtkImage, +column-header .button:active GtkLabel { + color: @text; +} + +/* Backdrop */ +column-header .button:backdrop { + background-image: none; + background-color: @backdrop_background; + border-image: none; + border-color: @backdrop_border; + border-width: 0 0 1px 1px; + padding: 4px 2px 4px 2px; + color: @backdrop_text; +} + +column-header .button:backdrop GtkImage, +column-header .button:backdrop GtkLabel { + color: @backdrop_text; +} + +/* Hover */ +column-header .button:hover { + background-image: linear-gradient(to bottom, + shade(@button_background, 1.2), + shade(shade(@button_background, 1.2), 0.98) + ); + padding: 4px 2px 4px 2px; + border-width: 0 0 1px 1px; + color: @text; +} + +column-header .button:hover GtkImage, +column-header .button:hover GtkLabel { + color: @text; +} + +/* Hover:Backdrop; */ +column-header .button:hover:backdrop { + background-image: linear-gradient(to bottom, + shade(@backdrop_button_background, 1.1), + shade(shade(@backdrop_button_background, 1.1), 0.98) + ); + border-width: 0 0 1px 1px; + color: @backdrop_text; +} + +column-header .button:hover:backdrop GtkImage, +column-header .button:hover:backdrop GtkLabel { + color: @backdrop_text; +} \ No newline at end of file diff --git a/Paper/gtk-3.0/widgets/dynamic-notebook.css b/Paper/gtk-3.0/widgets/dynamic-notebook.css index 87bbaf2..35cef32 100644 --- a/Paper/gtk-3.0/widgets/dynamic-notebook.css +++ b/Paper/gtk-3.0/widgets/dynamic-notebook.css @@ -49,7 +49,7 @@ .dynamic-notebook .notebook { - -GtkNotebook-tab-overlap: 1px; + /*-GtkNotebook-tab-overlap: 1px;*/ border-width: 0; } diff --git a/Paper/gtk-3.0/widgets/message-dialogs.css b/Paper/gtk-3.0/widgets/message-dialogs.css index d8ac16f..5295e1f 100644 --- a/Paper/gtk-3.0/widgets/message-dialogs.css +++ b/Paper/gtk-3.0/widgets/message-dialogs.css @@ -44,8 +44,8 @@ .message-dialog .titlebar { padding: 0px; - border-top-left-radius: 6px; - border-top-right-radius: 6px; + border-top-left-radius: 0px; + border-top-right-radius: 0px; border: none; background-color: @background; color: @text;