forked from AuroraMiddleware/gtk
Adwaita: fix switch sizing
moving -GtkSwitch-slider-width and -GtkSwitch-slider-height from the GtkSwitch selector to the * wildcard selector as other style props.
This commit is contained in:
parent
af3789bb87
commit
0a845fb563
@ -1945,13 +1945,12 @@ notebook {
|
||||
* Switch *
|
||||
**********/
|
||||
|
||||
GtkSwitch {
|
||||
-GtkSwitch-slider-width: 45px; // 55px is the right value to make it as tall
|
||||
// as buttons, not doing that for now
|
||||
-GtkSwitch-slider-height: 27px;
|
||||
}
|
||||
|
||||
switch {
|
||||
@at-root * {
|
||||
-GtkSwitch-slider-width: 45px;
|
||||
-GtkSwitch-slider-height: 27px;
|
||||
}
|
||||
|
||||
font-weight: bold;
|
||||
font-size: smaller;
|
||||
outline-offset: -4px;
|
||||
|
@ -2478,10 +2478,6 @@ notebook {
|
||||
/**********
|
||||
* Switch *
|
||||
**********/
|
||||
GtkSwitch {
|
||||
-GtkSwitch-slider-width: 45px;
|
||||
-GtkSwitch-slider-height: 27px; }
|
||||
|
||||
switch {
|
||||
font-weight: bold;
|
||||
font-size: smaller;
|
||||
@ -2492,6 +2488,9 @@ switch {
|
||||
color: #eeeeec;
|
||||
background-image: linear-gradient(to bottom, #2d3232);
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
|
||||
* {
|
||||
-GtkSwitch-slider-width: 45px;
|
||||
-GtkSwitch-slider-height: 27px; }
|
||||
switch:active {
|
||||
background-image: linear-gradient(to bottom, #215d9c 2px, #266cb5);
|
||||
color: white;
|
||||
|
@ -2484,10 +2484,6 @@ notebook {
|
||||
/**********
|
||||
* Switch *
|
||||
**********/
|
||||
GtkSwitch {
|
||||
-GtkSwitch-slider-width: 45px;
|
||||
-GtkSwitch-slider-height: 27px; }
|
||||
|
||||
switch {
|
||||
font-weight: bold;
|
||||
font-size: smaller;
|
||||
@ -2498,6 +2494,9 @@ switch {
|
||||
color: #2e3436;
|
||||
background-image: linear-gradient(to bottom, #cfcfcf);
|
||||
text-shadow: 0 1px rgba(0, 0, 0, 0.1); }
|
||||
* {
|
||||
-GtkSwitch-slider-width: 45px;
|
||||
-GtkSwitch-slider-height: 27px; }
|
||||
switch:active {
|
||||
background-image: linear-gradient(to bottom, #4a90d9 2px, #63a0de);
|
||||
color: white;
|
||||
|
Loading…
Reference in New Issue
Block a user