From e54e0d634e765adb94e3927541d69b37a939a43f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 12 Sep 2014 22:44:19 +0200 Subject: Menta, GTK3-3.14: adjust to GTK3-3.13 changes https://git.gnome.org/browse/gtk+/commit/?id=4e077d4638b4ecfaf67afbab5082b9d47499af4f https://bugzilla.redhat.com/show_bug.cgi?id=1136994 - GtkCheckButton - GtkRadioButton --- .../Menta/gtk-3.0/gtk-widgets-assets.css | 21 +++-- desktop-themes/Menta/gtk-3.0/gtk-widgets.css | 99 +++++++++++++++++----- 2 files changed, 90 insertions(+), 30 deletions(-) (limited to 'desktop-themes') diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets-assets.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets-assets.css index 76c2a67b..089e6397 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-widgets-assets.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets-assets.css @@ -65,24 +65,26 @@ GtkModelButton.button.check:insensitive, background-color: transparent; } +GtkModelButton.button.check:checked, GtkModelButton.button.check:active, GtkModelButton.button.check:active:hover, +.check:checked, .check:active, .view.cell.check:active { - background-image: url("assets/check-active.png"); + -gtk-icon-source: -gtk-scaled(url("assets/check-active.png")); } GtkModelButton.button.check:active:insensitive, .check:active:insensitive { - background-image: url("assets/check-active-ins.png"); + -gtk-icon-source: -gtk-scaled(url("assets/check-active-ins.png")); } .check:inconsistent { - background-image: url("assets/check-mixed-active.png"); + -gtk-icon-source: -gtk-scaled(url("assets/check-mixed-active.png")); } .check:inconsistent:insensitive { - background-image: url("assets/check-mixed-active-ins.png"); + -gtk-icon-source: -gtk-scaled(url("assets/check-mixed-active-ins.png")); } GtkModelButton.button.radio, @@ -96,28 +98,29 @@ GtkModelButton.button.radio:hover, GtkModelButton.button.radio:insensitive, .radio:insensitive { - background-image: url("assets/radio-normal-ins.png"); + -gtk-icon-source: -gtk-scaled(url("assets/radio-normal-ins.png")); } .radio row:insensitive { background-color: transparent; } +.radio:checked, .radio:active, .view.cell.radio:active { - background-image: url("assets/radio-active.png"); + -gtk-icon-source: -gtk-scaled(url("assets/radio-active.png")); } .radio:active:insensitive { - background-image: url("assets/radio-active-ins.png"); + -gtk-icon-source: -gtk-scaled(url("assets/radio-active-ins.png")); } .radio:inconsistent { - background-image: url("assets/radio-mixed-active.png"); + -gtk-icon-source: -gtk-scaled(url("assets/radio-mixed-active.png")); } .radio:inconsistent:insensitive { - background-image: url("assets/radio-mixed-active-ins.png"); + -gtk-icon-source: -gtk-scaled(url("assets/radio-mixed-active-ins.png")); } .sidebar .view.radio:active, diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css index b10cc8dd..fc621dcd 100644 --- a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css +++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css @@ -2220,24 +2220,75 @@ GtkMenuButton .menu { text-shadow: none; } -/**************** - * Radiobuttons * - ****************/ - -.check, -.radio, -.check:insensitive, -.radio:insensitive { - background-color: transparent; - border-style: none; -} - -GtkCheckButton:hover, -GtkCheckButton:active:hover, -GtkCheckButton:selected, -GtkCheckButton:selected:focus { - background-color: transparent; -} +/***************************************************************************************************** + * Check and Radio items * + * Related to recent gtk3 development, to reveal checkboxes as part of the dialogue * + * of some of the applications whose notification icons appear in the system tray * + * the reference section of the HighContrast theme is used. * + * https://git.gnome.org/browse/gnome-themes-standard/tree/themes/HighContrast/gtk-3.0/gtk.css#n1398 * + *****************************************************************************************************/ + +GtkCheckButton.text-button, GtkRadioButton.text-button { + padding: 1px; + outline-offset: 0; } + +.check { + color: rgba(0, 0, 0, 0.1); + background-image: none; + -gtk-icon-source: -gtk-scaled(url("assets/check-normal.png")); } + .check:hover { + color: #7f7f7f; } + .check:checked, .check:active { + -gtk-icon-source: -gtk-scaled(url("assets/check-active.png")); + color: #000; } + .check:checked:hover, .check:active:hover { + color: #7f7f7f; } + .check:checked:insensitive, .check:active:insensitive { + -gtk-icon-source: -gtk-scaled(url("assets/check-active-ins.png")); + color: #7f7f7f; } + .check:checked:insensitive:backdrop, .check:active:insensitive:backdrop { + color: #7f7f7f; } + .check:checked:backdrop, .check:active:backdrop { + color: #000; } + .check:insensitive { + color: rgba(127, 127, 127, 0.1); } + .check:insensitive:backdrop { + color: transparent; } + .check:inconsistent { + -gtk-icon-source: -gtk-scaled(url("assets/check-mixed-active-ins.png")); } + .check:backdrop { + color: rgba(0, 0, 0, 0.1); } + .check:backdrop:selected { + color: rgba(255, 255, 255, 0.1); } + +.radio { + color: rgba(0, 0, 0, 0.1); + background-image: none; + -gtk-icon-source: -gtk-scaled(url("assets/radio-normal.png")); } + .radio:hover { + color: #7f7f7f; } + .radio:checked, .radio:active { + -gtk-icon-source: -gtk-scaled(url("assets/radio-active.png")); + color: #000; } + .radio:checked:hover, .radio:active:hover { + color: #7f7f7f; } + .radio:checked:insensitive, .radio:active:insensitive { + -gtk-icon-source: -gtk-scaled(url("assets/radio-active-ins.png")); + color: #7f7f7f; } + .radio:checked:insensitive:backdrop, .radio:active:insensitive:backdrop { + color: #7f7f7f; } + .radio:checked:backdrop, .radio:active:backdrop { + color: #000; } + .radio:insensitive { + color: rgba(127, 127, 127, 0.1); } + .radio:insensitive:backdrop { + color: transparent; } + .radio:inconsistent { + -gtk-icon-source: -gtk-scaled(url("assets/radio-mixed-active.png")); } + .radio:backdrop { + color: rgba(0, 0, 0, 0.1); } + .radio:backdrop:selected { + color: rgba(255, 255, 255, 0.1); } /************ * Toolbars * @@ -3674,13 +3725,19 @@ GtkModelButton.button:selected { icon-shadow: none; } +/**************************************************************************************** + * Give and take related to recent gtk3 development, * + * to achieve full size of the icon menu of some of the applications whose notification * + * icons appear in the system tray, the "shadow" is disabled. * + ****************************************************************************************/ +/* .window-frame { border-radius: 6px 6px 0 0; - /* lamefun trick to get rounded borders regardless of CSD use */ + * lamefun trick to get rounded borders regardless of CSD use border-width: 0px; box-shadow: 0 0 0 1px @wm_border, 0 2px 8px 3px @wm_shadow; - /* this is used for the resize cursor area */ + * this is used for the resize cursor area * margin: 10px; } @@ -3692,4 +3749,4 @@ GtkModelButton.button:selected { .window-frame:backdrop { box-shadow: 0 0 0 1px shade(@wm_border,1.1), 0 2px 5px 1px @wm_shadow; } - +*/ -- cgit v1.2.1