Skip to content

Commit

Permalink
Menta, GTK3-3.14: adjust to GTK3-3.13 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Sep 12, 2014
1 parent 311e673 commit e54e0d6
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 30 deletions.
21 changes: 12 additions & 9 deletions desktop-themes/Menta/gtk-3.0/gtk-widgets-assets.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
99 changes: 78 additions & 21 deletions desktop-themes/Menta/gtk-3.0/gtk-widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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;
}
Expand All @@ -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;
}

*/

0 comments on commit e54e0d6

Please sign in to comment.