GTK4: Customize button widgets

This commit is contained in:
Daniel Ruiz de Alegría 2021-03-02 18:42:19 +01:00 committed by Daniel Ruiz de Alegría
parent 7022c4a49f
commit 4093dd9b7b
No known key found for this signature in database
GPG Key ID: 59667A77E8BFCB6C

View File

@ -1 +1,25 @@
$_widget_inset_shadow: inset 0 3px 5px -4px $shadow_color, 0 1px rgba(255, 255, 255, .05);
/**********
* Button *
**********/
button {
@at-root %button_active,
&:active,
&:checked {
background: $dark_fill;
box-shadow: $_widget_inset_shadow;
&:backdrop { box-shadow: none; }
}
&.flat:not(.link) {
&:hover {
@extend %button_active;
transition: none;
}
&:backdrop { @include button(undecorated); }
}
}