Added dialog CSS

This commit is contained in:
Sam Hewitt 2014-12-18 14:50:30 -05:00
parent c33a448f5a
commit 3cfc0c05e4
10 changed files with 540 additions and 71 deletions

View File

@ -57,12 +57,220 @@ ClocksWindow .header-bar GtkSwitch.slider:backdrop {
* Frame *
**********/
ClocksWindow .frame {
background-color: @background;
ClocksWindow > .frame {
background-color: mix(@foreground, @background, 0.95);
box-shadow: inset 0 5px 2px -6px black;
}
ClocksWindow > .frame:backdrop {
background-color: mix(@unfocused_foreground, @unfocused_background, 0.95);
box-shadow: none;
}
ClocksWindow .frame:backdrop {
background-color: @backdrop_background;
ClocksWindow .clocks-tiles-view {
background-color: transparent;
}
ClocksWindow .clocks-digital-renderer {
background-color: transparent;
}
ClocksWindow .clocks-digital-renderer.stripe {
font-size: 32px;
}
/* world */
ClocksWindow .clocks-digital-renderer.light.stripe {
background-color: rgba(255, 255, 255, 0.4);
color: black;
}
ClocksWindow .clocks-digital-renderer.light.stripe:prelight {
background-color: rgba(255, 255, 255, 0.6);
}
ClocksWindow .clocks-digital-renderer.dark.stripe {
background-color: rgba(0, 0, 0, 0.4);
color: white;
}
ClocksWindow .clocks-digital-renderer.dark.stripe:prelight {
background-color: rgba(0, 0, 0, 0.2);
}
/* alarms */
ClocksWindow .clocks-digital-renderer.active {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(shade(@selected_background,1.2)), to(@selected_background));
color: white;
}
ClocksWindow .clocks-digital-renderer.active:prelight {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(shade(@selected_background, 1.4)), to(@selected_background));
text-shadow: 0 2px 2px rgba(0,0,0,0.5)
}
ClocksWindow .clocks-digital-renderer.snoozing {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(@warning_color), to(shade(@warning_color,0.9)));
color: white;
}
ClocksWindow .clocks-digital-renderer.snoozing:prelight {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(shade(@warning_color,1.1)), to(shade(@warning_color,0.99)));
text-shadow: 0 2px 2px rgba(0,0,0,0.5)
}
ClocksWindow .clocks-digital-renderer.inactive {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(shade(@insensitive_background,0.9)), to(shade(@insensitive_background,0.85)));
color: shade(@insensitive_foreground,0.9);
}
ClocksWindow .clocks-digital-renderer.inactive:prelight {
background-color: transparent;
background-image: -gtk-gradient(radial,
center center, 0,
center bottom, 1.0,
from(shade(@insensitive_background,0.99)), to(shade(@insensitive_background,0.9)));
color: @insensitive_foreground;
}
ClocksWindow .clocks-ampm-toggle-button {
font-size: 18px;
}
ClocksWindow .clocks-digital-renderer.active.stripe,
ClocksWindow .clocks-digital-renderer.snoozing.stripe,
ClocksWindow .clocks-digital-renderer.inactive.stripe {
background-color: transparent;
background-image: none;
}
ClocksWindow .clocks-standalone-label,
ClocksWindow .clocks-ringing-label {
font-size: 64px;
}
ClocksWindow .clocks-secondary-standalone-label {
font-size: 18px;
}
ClocksWindow .clocks-button {
font-size: 14px;
}
ClocksWindow .clocks-alarm-setup-time {
font-size: 32px;
}
ClocksWindow .clocks-spinbutton {
font-size: 48px;
}
ClocksWindow .clocks-stopwatch-label,
ClocksWindow .clocks-timer-label {
font-size: 48px;
}
ClocksWindow .clocks-analog-frame.trough {
color: mix(@foreground, @background, 0.85);
}
ClocksWindow .clocks-analog-frame.progress {
color: mix(@foreground, @background, 0.5);
}
ClocksWindow .clocks-analog-frame.progress-fast {
color: @foreground;
}
ClocksWindow .clocks-laps-panel {
border: 0;
}
ClocksWindow .clocks-laps-panel > .frame:dir(ltr) {
border-image: linear-gradient(to bottom,
mix(@borders,@background,0.5))
0 0 0 1 / 20px 0px 20px 1px stretch;
}
ClocksWindow .clocks-laps-panel > .frame:dir(rtl) {
border-image: linear-gradient(to bottom,
mix(@borders,@background,0.5))
0 1 0 0 / 20px 1px 20px 0px stretch;
}
ClocksWindow .clocks-laps-panel .list,
ClocksWindow .clocks-laps-panel .list-row {
background-color: transparent;
}
ClocksWindow .clocks-laps-panel .list-row {
padding-left: 20px;
padding-right: 20px;
font-size: 14px;
border-image: linear-gradient(to bottom,
mix(@borders,@background,0.5))
0 0 1 0 / 0 20px 1px 20px stretch;
}
ClocksWindow .clocks-laps-panel .first-lap-row {
border-image: none;
border-color: transparent;
}
ClocksWindow .clocks-laps-panel .lap-time {
font-weight: bold;
padding-right: 20px;
}
/* disguise insensitive spinbuttons as normal labels */
ClocksWindow .spinbutton .clocks-timer-label,
ClocksWindow .spinbutton .clocks-timer-label .button {
border-color: transparent;
background-image: none;
box-shadow: none;
}
}
ClocksWindow .spinbutton .clocks-timer-label,
ClocksWindow .spinbutton .clocks-timer-label GtkLabel {
color: @foreground;
}
ClocksWindow .spinbutton .clocks-timer-label .button {
color: transparent;
}
@keyframes clocks-blink {
0% { color: @foreground; }
100% { color: @insensitive_foreground; }
}
ClocksWindow .clocks-paused ClocksWindow .clocks-timer-label,
ClocksWindow .clocks-paused ClocksWindow .clocks-timer-label GtkLabel {
animation-name: clocks-blink;
animation-iteration-count: infinite;
animation-timing-function: cubic-bezier(1.0,0,0,1.0);
animation-duration: 1s;
}

View File

@ -88,6 +88,7 @@
@import url("widgets/linked-buttons.css");
@import url("widgets/list-rows.css");
@import url("widgets/menu-button.css");
@import url("widgets/message-dialogs.css");
@import url("widgets/menubars.css");
@import url("widgets/menus.css");
@import url("widgets/miscellaneous.css");

View File

@ -93,8 +93,8 @@ GtkCalendar.button:backdrop:hover,
.button.default:active,
.button.text-button:active,
.button.image-button:active {
border-color: shade(@selection, 1.1);
background-color: shade(@selection, 1.1);
border-color: @selection;
background-color: @selection;
color: @selected_foreground;
/*box-shadow: 0 1px 2px 0px alpha(#000,0.2);*/

View File

@ -26,28 +26,45 @@
/******************************
* Destructive action buttons *
******************************/
.destructive-action.button {
border: 1px solid @destructive_action_button_border;
.destructive-action.button,
.button.destructive-action {
border: 1px solid @destructive_action_button_border;
background-color: @destructive_action_button;
color: @destructive_action_button_foreground;
}
.destructive-action.button:hover {
border: 1px solid shade(@destructive_action_button_border, 1.1);
.destructive-action.button:hover,
.button.destructive-action:hover {
border: 1px solid shade(@destructive_action_button_border, 1.1);
background-color: shade(@destructive_action_button, 1.1);
color: @destructive_action_button_foreground;
}
.destructive-action.button:active,
.destructive-action.button:hover:active {
border: 1px solid @destructive_action_button_border;
.button.destructive-action:active {
border: 1px solid @destructive_action_button_border;
background-color: @destructive_action_button;
color: @destructive_action_button_foreground;
}
.destructive-action.button:backdrop {
border: 1px solid @backdrop_border;
.destructive-action.button:backdrop,
.button.destructive-action:backdrop {
border: 1px solid @backdrop_border;
background-color: @backdrop_background;
color: @backdrop_text;
}
.destructive-action.button:insensitive,
.button.destructive-action:insensitive {
border: 1px solid @insensitive_border;
background-color: @insensitive_background;
color: @insensitive_text;
}
.destructive-action.button:backdrop:insensitive,
.button.destructive-action:backdrop:insensitive {
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);
}

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/.
*/
/*********
* Lists *
*********/

View File

@ -0,0 +1,219 @@
/* 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/.
*/
/**********
* Dialogs *
***********/
.message-dialog {
border: none;
outline: none;
box-shadow: none;
background: @background;
-GtkDialog-button-spacing: 0;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.message-dialog.csd.background {
background: none;
box-shadow: none;
}
.message-dialog:backdrop {
background-color: @backdrop_background;
}
.message-dialog .titlebar {
padding: 0px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border: none;
background-color: @background;
color: @text;
}
.message-dialog .titlebar:backdrop {
background-color: @backdrop_background;
}
.message-dialog .titlebar .title {
padding: 0px;
color: @text;
}
.message-dialog .titlebar .title:backdrop {
color: @backdrop_header_text;
}
/* Buttons */
.message-dialog .dialog-action-area .button {
/*padding: 8px;*/
}
.message-dialog.csd .dialog-action-area .button {
padding: 12px;
border-radius: 0;
border: 1px solid @button_border;
background-color: @button_background;
color: @text;
}
.message-dialog.csd .dialog-action-area .button:hover {
border-color: shade(@selection, 1.2);
background-color: shade(@selection, 1.2);
color: @selected_foreground;}
.message-dialog.csd .dialog-action-area .button:active {
border-color: @selection;
background-color: @selection;
color: @selected_foreground;
}
.message-dialog.csd .dialog-action-area .button:insensitive {
border: 1px solid @insensitive_border;
background-color: @insensitive_background;
color: @insensitive_text;
}
.message-dialog.csd .dialog-action-area .button:backdrop {
border: 1px solid @backdrop_border;
background-color: @backdrop_background;
color: @backdrop_text;
}
.message-dialog.csd .dialog-action-area .button:backdrop:insensitive {
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);
}
.message-dialog.csd .dialog-action-area .button:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .button.titlebutton:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .button.titlebutton:insensitive > .label,
.message-dialog.csd .dialog-action-area .button:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .button.titlebutton:backdrop:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .button.titlebutton:backdrop:insensitive > .label {
color: inherit;
}
/* Suggested Action Button */
.message-dialog.csd .dialog-action-area .button.suggested-action {
border: 1px solid @suggested_action_button;
background-color: @suggested_action_button;
color: @suggested_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.suggested-action:hover {
border: 1px solid shade(@suggested_action_button, 1.2);
background-color: shade(@suggested_action_button, 1.2);
color: @suggested_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.suggested-action:active {
border: 1px solid shade(@suggested_action_button, 1.1);
background-color: shade(@suggested_action_button, 1.1);
color: @suggested_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.suggested-action:backdrop {
border: 1px solid @backdrop_border;
background-color: @backdrop_background;
color: @backdrop_text;
}
.message-dialog.csd .dialog-action-area .button.suggested-action:insensitive {
border: 1px solid @insensitive_border;
background-color: @insensitive_background;
color: @insensitive_text;
}
.message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive {
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);
}
.message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .suggested-action.button.titlebutton:backdrop:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .suggested-action.button.titlebutton:backdrop:insensitive > .label,
.message-dialog.csd .dialog-action-area .button.suggested-action:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .suggested-action.button.titlebutton:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .suggested-action.button.titlebutton:insensitive > .label {
color: inherit;
}
/* Destructive Action Button */
.message-dialog.csd .dialog-action-area .button.destructive-action {
border: 1px solid @destructive_action_button_border;
background-color: @destructive_action_button;
color: @destructive_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.destructive-action:hover {
border: 1px solid shade(@destructive_action_button_border, 1.1);
background-color: shade(@destructive_action_button, 1.1);
color: @destructive_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.destructive-action:active {
border: 1px solid @destructive_action_button_border;
background-color: @destructive_action_button;
color: @destructive_action_button_foreground;
}
.message-dialog.csd .dialog-action-area .button.destructive-action:backdrop {
border: 1px solid @backdrop_border;
background-color: @backdrop_background;
color: @backdrop_text;
}
.message-dialog.csd .dialog-action-area .button.destructive-action:insensitive {
border: 1px solid @insensitive_border;
background-color: @insensitive_background;
color: @insensitive_text;
}
.message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive {
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);
}
.message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .destructive-action.button.titlebutton:backdrop:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .destructive-action.button.titlebutton:backdrop:insensitive > .label,
.message-dialog.csd .dialog-action-area .button.destructive-action:insensitive > .label, .message-dialog.csd .dialog-action-area .header-bar .destructive-action.button.titlebutton:insensitive > .label,
.message-dialog.csd .dialog-action-area .titlebar .destructive-action.button.titlebutton:insensitive > .label {
color: inherit;
}
.message-dialog.csd .dialog-action-area .button, .message-dialog.csd .dialog-action-area .button:hover, .message-dialog.csd .dialog-action-area .button:active, .message-dialog.csd .dialog-action-area .button:insensitive, .message-dialog.csd .dialog-action-area .button:backdrop, .message-dialog.csd .dialog-action-area .button:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.suggested-action, .message-dialog.csd .dialog-action-area .button.suggested-action:hover, .message-dialog.csd .dialog-action-area .button.suggested-action:active, .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop, .message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.suggested-action:insensitive, .message-dialog.csd .dialog-action-area .button.destructive-action, .message-dialog.csd .dialog-action-area .button.destructive-action:hover, .message-dialog.csd .dialog-action-area .button.destructive-action:active, .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop, .message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive, .message-dialog.csd .dialog-action-area .button.destructive-action:insensitive {
border-left-style: solid;
border-right-style: none;
border-bottom-style: none;
}
.message-dialog.csd .dialog-action-area .button:last-child {
border-bottom-right-radius: 7px;
}
.message-dialog.csd .dialog-action-area .button:first-child {
border-left-style: none;
border-bottom-left-radius: 7px;
}

View File

@ -16,6 +16,11 @@
* with the Paper GTK theme. If not, see http://www.gnu.org/licenses/.
*/
@define-color osd_background alpha(#000, 0,7);
@define-color osd_background_backdrop shade(@osd_background, 0,9);
@define-color osd_foreground #fff;
@define-color osd_button_border @osd_foreground;
/*******
* OSD *
*******/
@ -41,10 +46,9 @@ GtkOverlay.osd {
.osd.button:active,
.osd .button,
.osd .button:active {
border-width: 1px;
border-style: solid;
border-image: none;
border: 1px solid @osd_button_border;
border-radius: 5px;
color: @osd_foreground;
}
.osd .button {
@ -59,11 +63,6 @@ GtkOverlay.osd {
.osd .button {
padding: 4px;
background-image: linear-gradient(to bottom,
@osd_button_background_a,
@osd_button_background_b 68%,
@osd_button_background_c
);
color: @osd_button_foreground;
@ -167,11 +166,6 @@ GtkOverlay.osd {
.osd.button:hover,
.osd .button:hover {
background-image: linear-gradient(to bottom,
@osd_button_background_hover_a,
@osd_button_background_hover_b 68%,
@osd_button_background_hover_c
);
}
.osd.button:active,
@ -179,11 +173,6 @@ GtkOverlay.osd {
.osd .button:active,
.osd .button:active:hover,
.osd GtkMenuButton.button:active {
background-image: linear-gradient(to bottom,
@osd_button_background_active_a,
@osd_button_background_active_b 20%,
@osd_button_background_active_c
);
}
.osd GtkMenuButton.button:active {
@ -198,17 +187,10 @@ GtkOverlay.osd {
.osd.toolbar {
color: @osd_foreground;
text-shadow: 0 1px @osd_text_shadow;
padding: 10px;
border-style: none;
border-radius: 7px;
background-image: linear-gradient(to bottom,
@osd_toolbar_background_a,
@osd_toolbar_background_b 63%,
@osd_toolbar_background_c
);
background: none;
background-color: @osd_background;
-GtkToolbar-button-relief: normal;
}
@ -264,19 +246,11 @@ GtkOverlay.osd {
.osd .scale.trough {
border-color: @osd_button_border;
background-image: linear-gradient(to bottom,
shade(@osd_button_border, 0.70),
shade(@osd_button_border, 0.90)
);
background: none;
}
.osd .scale.trough.highlight {
border-color: mix(@osd_button_border, @selection_color, 0.70);
background-image: linear-gradient(to bottom,
mix(shade(@osd_button_border, 0.55), @selection_color, 0.70),
mix(shade(@osd_button_border, 0.90), @selection_color, 0.70)
);
}
.osd .scale.trough:insensitive,

View File

@ -89,4 +89,30 @@
.spinbutton.entry:backdrop {
color: @backdrop_text;
background-color: @backdrop_background;
}
}
/* Labels */
.spinbutton GtkLabel {
color: @text;
}
.spinbutton:active GtkLabel,
.spinbutton:focus GtkLabel,
.spinbutton:hover GtkLabel {
color: @selected_foreground;
}
.spinbutton:backdrop GtkLabel,
.spinbutton:backdrop:hover GtkLabel,
.spinbutton:active:backdrop GtkLabel {
color: @backdrop_text;
}
.spinbutton:insensitive GtkLabel {
color: @insensitive_text;
}
.spinbutton:insensitive:backdrop GtkLabel {
color: mix(@backdrop_text, @insensitive_text, 0.5);
}

View File

@ -16,7 +16,7 @@
* with the Paper GTK theme. If not, see http://www.gnu.org/licenses/.
*/
@define-color suggested_action_button shade(@header, 0.6);
@define-color suggested_action_button shade(@selection, 0.5);
@define-color suggested_action_button_foreground #fff;
@define-color backdrop_suggested_action_foreground alpha(#fff, 0.5);
@define-color insensitive_suggested_action_foreground alpha(#fff, 0.7);
@ -24,40 +24,45 @@
/****************************
* Suggested action buttons *
****************************/
.suggested-action.button {
background-color: alpha(#000, 0.2);
.suggested-action.button,
.button.suggested-action {
border: 1px solid @suggested_action_button;
background-color: @suggested_action_button;
color: @suggested_action_button_foreground;
}
.suggested-action.button:hover {
.suggested-action.button:hover,
.button.suggested-action:hover {
border: 1px solid shade(@suggested_action_button, 1.2);
background-color: shade(@suggested_action_button, 1.2);
color: @suggested_action_button_foreground;
}
.suggested-action.button:active,
.suggested-action.button:hover:active {
.button.suggested-action:active {
border: 1px solid shade(@suggested_action_button, 1.1);
background-color: shade(@suggested_action_button, 1.1);
color: @suggested_action_button_foreground;
}
.suggested-action.button GtkLabel:backdrop,
.suggested-action.button:backdrop {
background: none;
color: @backdrop_suggested_action_foreground;
.suggested-action.button:backdrop,
.button.suggested-action:backdrop {
border: 1px solid @backdrop_border;
background-color: @backdrop_background;
color: @backdrop_text;
}
.suggested-action.button GtkLabel:insensitive,
.suggested-action.button:insensitive,
.suggested-action.button:active *:insensitive {
background: none;
color: @insensitive_suggested_action_foreground;
.button.suggested-action:insensitive {
border: 1px solid @insensitive_border;
background-color: @insensitive_background;
color: @insensitive_text;
}
.suggested-action.button GtkLabel:backdrop:insensitive {
color: @insensitive_foreground;
}
.suggested-action.button:insensitive:backdrop {
background-color: alpha(@insensitive_background,0.7);
.suggested-action.button:backdrop:insensitive,
.button.suggested-action:backdrop:insensitive {
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);
}

View File

@ -21,6 +21,7 @@
******************/
.titlebar {
padding: 0px;
padding-left: 6px;
padding-right: 6px;
border-width: 0px;