Skip to content

Commit

Permalink
Fixed checkbox and radio rendering issues, entry insensitive theming …
Browse files Browse the repository at this point in the history
…and combobox tweaks
  • Loading branch information
xyl0n committed Oct 19, 2014
1 parent f6c78a5 commit 156b9d0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
27 changes: 15 additions & 12 deletions gtk-3.0/gtk-widgets-assets.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,76 +2,79 @@
* check and radio *
*******************/
/* draw regular check and radio items using our assets */
.check,
.check:focus,
.check row:selected,
.check row:selected:focus {
background-image: url("assets/checkbox-unchecked.svg");
-gtk-icon-source: url("assets/checkbox-unchecked.svg");
}

.check:insensitive,
.check row:selected:insensitive,
.check row:selected:focus:insensitive {
background-image: url("assets/checkbox-unchecked-insensitive.svg");
-gtk-icon-source: url("assets/checkbox-unchecked-insensitive.svg");
}

.check:active,
.check:checked,
.check row:selected:active,
.check row:selected:focus:active {
background-image: url("assets/checkbox-checked.svg");
-gtk-icon-source: url("assets/checkbox-checked.svg");
}

.check:active:insensitive,
.check row:selected:active:insensitive,
.check row:selected:focus:active:insensitive {
background-image: url("assets/checkbox-checked-insensitive.svg");
-gtk-icon-source: url("assets/checkbox-checked-insensitive.svg");
}

.check:inconsistent,
.check row:selected:inconsistent,
.check row:selected:focus:inconsistent {
background-image: url("assets/checkbox-mixed.svg");
-gtk-icon-source: url("assets/checkbox-mixed.svg");
}

.check:inconsistent:insensitive,
.check row:selected:inconsistent:insensitive,
.check row:selected:focus:inconsistent:insensitive {
background-image: url("assets/checkbox-mixed-insensitive.svg");
-gtk-icon-source: url("assets/checkbox-mixed-insensitive.svg");
}

.radio,
.radio row:selected,
.radio row:selected:focus {
background-image: url("assets/radio-unselected.svg");
-gtk-icon-source: url("assets/radio-unselected.svg");
}

.radio:insensitive,
.radio row:selected:insensitive,
.radio row:selected:focus:insensitive {
background-image: url("assets/radio-unselected-insensitive.svg");
-gtk-icon-source: url("assets/radio-unselected-insensitive.svg");
}

.radio:active,
.radio:checked,
.radio row:selected:active,
.radio row:selected:focus:active {
background-image: url("assets/radio-selected.svg");
-gtk-icon-source: url("assets/radio-selected.svg");
}

.radio:active:insensitive,
.radio row:selected:active:insensitive,
.radio row:selected:focus:active:insensitive {
background-image: url("assets/radio-selected-insensitive.svg");
-gtk-icon-source: url("assets/radio-selected-insensitive.svg");
}

.radio:inconsistent,
.radio row:selected:inconsistent,
.radio row:selected:focus:inconsistent {
background-image: url("assets/radio-mixed.svg");
-gtk-icon-source: url("assets/radio-mixed.svg");
}

.radio:inconsistent:insensitive,
.radio row:selected:inconsistent:insensitive,
.radio row:selected:focus:inconsistent:insensitive {
background-image: url("assets/radio-mixed-insensitive.svg");
-gtk-icon-source: url("assets/radio-mixed-insensitive.svg");
}

.menuitem.check:active {
Expand Down
2 changes: 1 addition & 1 deletion gtk-3.0/gtk.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
@import url("apps/unity.css");
@import url("apps/xfce.css");
@import url("apps/budgie.css");
@import url("apps/nemo.css");
@import url("apps/nemo.css");
1 change: 1 addition & 0 deletions gtk-3.0/widgets/combobox.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ GtkComboBox .button {

GtkComboBox .button:hover,
GtkComboBox .button:active,
GtkComboBox .button:checked,
GtkComboBox .button:active:hover {
background-color: shade(@theme_bg_color, 0.9);
color: @theme_selected_fg_color;
Expand Down
6 changes: 2 additions & 4 deletions gtk-3.0/widgets/entry.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@
background-color: shade(@menu_bg_color, 0.75);
}

.entry:insensitive,
.primary-toolbar .entry:insensitive {
.entry:insensitive {
background-color: shade(@theme_bg_color, 0.95);
background-image: none;
color: mix(@theme_text_color, @theme_base_color, 0.5);
}

.entry:insensitive,
.primary-toolbar .entry:insensitive {
background-color: shade(@menu_bg_color, 0.95);
background-image: none;
Expand All @@ -77,4 +75,4 @@
background-image: none;
color: @theme_base_color;
border-color: @theme_selected_fg_color;
}
}
3 changes: 0 additions & 3 deletions gtk-3.0/widgets/separator.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
.sidebar.view.separator,
.view.separator,
.separator {
border-width: 1px;
border-style: solid;
border-color: shade(@theme_bg_color, 0.9);
color: shade(@theme_bg_color, 0.9);
}

Expand Down

0 comments on commit 156b9d0

Please sign in to comment.