mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
Use a builtin function to access the dark-style
instead of a property on NativeStyleMetrics
This commit is contained in:
parent
b87705aa56
commit
0ba468c236
17 changed files with 86 additions and 184 deletions
|
@ -30,7 +30,6 @@ struct ItemVTable;
|
|||
#include "slint_point.h"
|
||||
#include "slint_backend_internal.h"
|
||||
#include "slint_qt_internal.h"
|
||||
#include "slint_selector_internal.h"
|
||||
|
||||
/// \rst
|
||||
/// The :code:`slint` namespace is the primary entry point into the Slint C++ API.
|
||||
|
@ -118,6 +117,8 @@ 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_style() const { return slint_windowrc_dark_style(&inner); }
|
||||
|
||||
template<typename Component, typename ItemArray>
|
||||
void unregister_component(Component *c, ItemArray items) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue