[libadwaita/wip/exalm/split-hc] stylesheet: Support split buttons in HC
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/split-hc] stylesheet: Support split buttons in HC
- Date: Mon, 25 Oct 2021 13:22:53 +0000 (UTC)
commit 62f57c8ffd5ce9d5585ab43dc4aad52e47285b8f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Oct 25 18:19:46 2021 +0500
stylesheet: Support split buttons in HC
No idea how I forgot this.
src/stylesheet/widgets/_buttons.scss | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/stylesheet/widgets/_buttons.scss b/src/stylesheet/widgets/_buttons.scss
index 425adf72..d3ae7b13 100644
--- a/src/stylesheet/widgets/_buttons.scss
+++ b/src/stylesheet/widgets/_buttons.scss
@@ -509,17 +509,21 @@ splitbutton {
@at-root %flat_split_button,
&.flat {
> separator {
- background: gtkalpha(currentColor, .3);
+ background: gtkalpha(currentColor, $dimmer_opacity);
}
&:hover,
&:active,
&:checked {
- background: gtkalpha(currentColor, .05);
+ background: $view_hover_color;
> separator {
background: none;
}
+
+ @if $contrast == 'high' {
+ box-shadow: inset 0 0 0 1px $thin_border_color;
+ }
}
&:focus-within:focus-visible > separator {
@@ -568,7 +572,7 @@ splitbutton {
}
}
- $_separator_color: gtkalpha(currentColor, if($contrast == 'high', .6, .3));
+ $_separator_color: gtkalpha(currentColor, $dimmer_opacity);
> menubutton > button {
&:dir(ltr) { box-shadow: inset 1px 0 $_separator_color; }
&:dir(rtl) { box-shadow: inset -1px 0 $_separator_color; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]