[libadwaita/wip/snwh/checks] got borders to work with highcontrast
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/snwh/checks] got borders to work with highcontrast
- Date: Fri, 3 Dec 2021 15:30:00 +0000 (UTC)
commit 08815b1d76d6261c1d69e8fc14b746883ac10f3c
Author: Sam Hewitt <sam snwh org>
Date: Fri Dec 3 11:59:17 2021 -0330
got borders to work with highcontrast
src/stylesheet/widgets/_checks.scss | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_checks.scss b/src/stylesheet/widgets/_checks.scss
index 6e1401ae..f9d7382d 100644
--- a/src/stylesheet/widgets/_checks.scss
+++ b/src/stylesheet/widgets/_checks.scss
@@ -17,27 +17,29 @@ checkbutton {
check,
radio {
- padding: 2px;
min-height: 16px;
min-width: 16px;
-gtk-icon-size: 16px;
+ border-width: 2px;
+ border-style: solid;
+
@if $contrast == "high" {
- box-shadow: inset 0 0 0 1px $border_color;
+ box-shadow: 0 0 0 2px $border_color;
}
&:not(:checked):not(:indeterminate),
&:not(:checked):not(:indeterminate) {
background: none;
- box-shadow: inset 0 0 0 2px $trough_color;
+ border-color: $trough_color;
-gtk-icon-source: none;
&:hover {
- box-shadow: inset 0 0 0 2px $trough_hover_color;
+ border-color: $trough_hover_color;
&:active {
background: $trough_active_color;
- box-shadow: inset 0 0 0 2px $trough_active_color
+ border-color: $trough_active_color
}
}
}
@@ -45,7 +47,7 @@ radio {
&:checked,
&:indeterminate {
background-color: $fill_color;
- box-shadow: inset 0 0 0 2px $fill_color;
+ border-color: $fill_color;
color: $fill_text_color;
@if $contrast == "high" {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]