Fix explicit definition of nested styles, resolve parent style if the style for the variant is not present in the stylesheet.

This commit is contained in:
2026-05-31 19:34:51 +02:00
parent 11423d86e5
commit b506b78c32
3 changed files with 73 additions and 26 deletions

View File

@@ -1,12 +1,9 @@
[Button]
BackgroundColor = "#0f62fe"
CornerRadius = 16.0
TextColor = "#ffffff"
Padding = 16.0
# Creates an empty rule for Button.Normal.
# This will inherit style from Button, this is a temporary workaround.
[Button.Normal]
[Button.Hovered]
BackgroundColor = "#0353e9"