Commit 2b25cdad authored by Artem Grinev's avatar Artem Grinev
Browse files

GTK3,4: Make checkbox colors a pixel-perfect copy of QStyle

parent c5e78a78
Pipeline #184524 passed with stage
in 1 minute and 29 seconds
......@@ -36,7 +36,7 @@ radio {
background-color: gtk("@theme_base_color");
border: 1px solid gtkalpha(
gtk("@theme_button_foreground_normal"),
0.333
0.33
);
-gtk-icon-shadow: none;
......@@ -46,14 +46,11 @@ radio {
border: 1px solid gtk("@theme_button_decoration_hover");
}
&:disabled {
background-color: gtkalpha(
gtk("@theme_base_color"),
0.03
);
background-color: gtk("@insensitive_base_color");
border-color: gtkalpha(
gtk("@theme_button_foreground_normal"),
0.222
gtk("@insensitive_base_fg_color"),
0.33
);
}
......@@ -70,30 +67,25 @@ radio {
border-color: gtk("@theme_button_decoration_hover");
background-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.333
0.33
);
&:backdrop {
background-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.03
gtk("@theme_unfocused_selected_bg_color"),
0.33
);
border-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.3
);
border-color: gtk("@theme_unfocused_selected_bg_color");
}
&:disabled {
background-color: gtkalpha(
gtk("@theme_button_foreground_normal"),
0.03
);
border-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.3
gtk("@insensitive_bg_color"),
0.33
);
border-color: gtk("@insensitive_bg_color");
color: gtk("@insensitive_fg_color");
-gtk-icon-effect: none;
}
......
......@@ -36,7 +36,7 @@ radio {
background-color: gtk("@theme_base_color");
border: 1px solid gtkalpha(
gtk("@theme_button_foreground_normal"),
0.333
0.33
);
-gtk-icon-shadow: none;
......@@ -46,14 +46,11 @@ radio {
border: 1px solid gtk("@theme_button_decoration_hover");
}
&:disabled {
background-color: gtkalpha(
gtk("@theme_base_color"),
0.03
);
background-color: gtk("@insensitive_base_color");
border-color: gtkalpha(
gtk("@theme_button_foreground_normal"),
0.222
gtk("@insensitive_base_fg_color"),
0.33
);
}
......@@ -70,34 +67,30 @@ radio {
border-color: gtk("@theme_button_decoration_hover");
background-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.333
0.33
);
&:backdrop {
background-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.03
gtk("@theme_unfocused_selected_bg_color"),
0.33
);
border-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.3
);
border-color: gtk("@theme_unfocused_selected_bg_color");
}
&:disabled {
background-color: gtkalpha(
gtk("@theme_button_foreground_normal"),
0.03
);
border-color: gtkalpha(
gtk("@theme_button_decoration_hover"),
0.3
gtk("@insensitive_bg_color"),
0.33
);
border-color: gtk("@insensitive_bg_color");
color: gtk("@insensitive_fg_color");
}
}
&:indeterminate {
-gtk-icon-source: -gtk-recolor(url("../assets/dash-symbolic.svg"));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment