mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Add an in-out boolean color-scheme property to Palette (#4701)
This allows applications to force dark/light mode, as well as determine which mode is active.
This commit is contained in:
parent
ccc92e6143
commit
68083243b2
48 changed files with 234 additions and 139 deletions
|
@ -74,7 +74,10 @@ public:
|
|||
float scale_factor() const { return slint_windowrc_get_scale_factor(&inner); }
|
||||
void set_scale_factor(float value) const { slint_windowrc_set_scale_factor(&inner, value); }
|
||||
|
||||
bool dark_color_scheme() const { return slint_windowrc_dark_color_scheme(&inner); }
|
||||
cbindgen_private::ColorScheme color_scheme() const
|
||||
{
|
||||
return slint_windowrc_color_scheme(&inner);
|
||||
}
|
||||
|
||||
bool text_input_focused() const { return slint_windowrc_get_text_input_focused(&inner); }
|
||||
void set_text_input_focused(bool value) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue