Closed volodg closed 1 year ago
Thanks for reporting a bug.
Could you elaborate what is not working exactly? What is the error. Thanks
No errors, style just does change to "material", and default one is displayed
This works for me. If i change our gallery example to use the "material" style using lines similar to that, it does change to the material style. Is it a regression from 1.0.0?
This app was looking like that with version 1.0.0 (I have no screen shot for MacOS now but it was the same)
And with 1.0.1:
The magic is, downgrading version does not help ((
Source code: https://github.com/biotech-ng/exchange/blob/main/slint/src/main.rs
Thanks for the screenshots. Both are showing the material theme. One is showing the light theme, and the other is showing the dark theme.
Something happened that made it detect a different dark mode.
You can force the light mode by using "material-light":
let config = slint_build::CompilerConfiguration::new().with_style("material-light".into());
But is your desktop in dark mode or not?
Maybe somehow the style detection was either fixed, or broken. (Possibly because dependency upgrades)
I have a dark style in MacOS, right, so seems it was not broken but fixed in 1.0.1, now with the style: "material-light" it works as expected, thanks for your advise. Closing an issue
Given code does not work anynore:
let config = slint_build::CompilerConfiguration::new().with_style("material".into()); slint_build::compile_with_config("ui/app.slint", config).unwrap();
OS: MacOS