mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Fix the AboutSlint in fluent style with dark style desktop
The widget should not reach into the NativeStyleMetrics directly, it should get the information from the StyleMetrics which return the right value (which is not dark style, for the fluent style)
This commit is contained in:
parent
caad768564
commit
f6a3e741cf
2 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,7 @@ export AboutSlint := Rectangle {
|
|||
horizontal-alignment: center;
|
||||
}
|
||||
Image {
|
||||
source: NativeStyleMetrics.dark-style ? @image-url("slint-logo-dark.svg") : @image-url("slint-logo-light.svg");
|
||||
source: StyleMetrics.dark-style ? @image-url("slint-logo-dark.svg") : @image-url("slint-logo-light.svg");
|
||||
preferred-width: 256px;
|
||||
}
|
||||
Text {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue