How to create your own style? #10787
Unanswered
WavyEbuilder
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Sincere apologies if this has already been asked or is documented somewhere. I did give the discussions and issues a quick search, as well as read https://docs.slint.dev/latest/docs/slint/reference/std-widgets/style, but may of missed something.
Does this mean that styles must be built in at compile time but multiple can be built in and selected via SLINT_STYLE?
And following that, is there a way to add a new style? If I'd like to, is it strongly preferred, or required, to upstream it into slint? Is there an easy way to make apply to all applications (I'm not entirely sure if the "theme part" of slint is dynamically linked or statically linked; I know Rust doesn't have a stable ABI of its own beyond the platform's C ABI so not entirely sure how this all works out)?
And is there any guidance on actually writing a style, similar to the docs for e.g. QStyle?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions