GTK4: Fix inset shadow of entry widgets

This commit is contained in:
Daniel Ruiz de Alegría 2021-03-03 13:30:37 +01:00
parent 04b923927c
commit 443bab6be6
No known key found for this signature in database
GPG Key ID: 59667A77E8BFCB6C

View File

@ -1,4 +1,4 @@
$_widget_inset_shadow: inset 0 3px 5px -4px $shadow_color, 0 1px rgba(255, 255, 255, .05); $_widget_inset_shadow: inset 0 3px 10px -4px $shadow_color, 0 1px rgba(255, 255, 255, .05);
/********** /**********
* Button * * Button *
@ -28,8 +28,10 @@ button {
**********/ **********/
%entry, %entry,
entry { entry {
box-shadow: $_widget_inset_shadow; &:not(:disabled) {
background: if($variant=='dark', $dark_fill, $base_color); box-shadow: $_widget_inset_shadow;
background: if($variant=='dark', $dark_fill, $bg_color);
}
&:backdrop { &:backdrop {
box-shadow: none; box-shadow: none;