Skip to content

Commit

Permalink
add workaround for unreadable webkit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
horst3180 committed Jul 15, 2015
1 parent 6ca4696 commit 5ba146d
Show file tree
Hide file tree
Showing 14 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/gtk-3.0/3.14/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ $_dot_color: $selected_bg_color;
@include button(active);
transition-duration: 50ms;
}

//Webkitgtk workaround start
&:active { color: $fg_color; }
&:active:hover, &:checked { color: $selected_fg_color; }
//Webkitgtk workaround end

&.flat:insensitive {
@include button(undecorated);
}
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #D3DAE3; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained-darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained-solid-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #D3DAE3; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained-solid-darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained-solid.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.14/gtk-contained.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkFlowBox .grid-child {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
6 changes: 6 additions & 0 deletions common/gtk-3.0/3.16/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,12 @@ $_dot_color: $selected_bg_color;
@include button(active);
transition-duration: 50ms;
}

//Webkitgtk workaround start
&:active { color: $fg_color; }
&:active:hover, &:checked { color: $selected_fg_color; }
//Webkitgtk workaround end

&.flat:insensitive {
@include button(undecorated);
}
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #D3DAE3; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained-darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained-solid-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #D3DAE3; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained-solid-darker.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained-solid.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down
4 changes: 4 additions & 0 deletions common/gtk-3.0/3.16/gtk-contained.css
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ GtkTextView {
border-color: #5294E2;
background-color: #5294E2;
transition-duration: 50ms; }
.button:active {
color: #5c616c; }
.button:active:hover, .button:checked {
color: #ffffff; }
.button.flat:insensitive {
border-color: transparent;
background-color: transparent;
Expand Down

0 comments on commit 5ba146d

Please sign in to comment.