Native style: respond to the StyleChange event

So that color scheme is updated when switching to the dark style, for example

Fixes #687
This commit is contained in:
Olivier Goffart 2021-11-26 11:13:59 +01:00 committed by Olivier Goffart
parent a5ea6dd087
commit e4bd6bbfb8
8 changed files with 180 additions and 104 deletions

View file

@ -732,7 +732,12 @@ cbindgen_private::Flickable::~Flickable()
cbindgen_private::NativeStyleMetrics::NativeStyleMetrics()
{
sixtyfps_init_native_style_metrics(this);
sixtyfps_native_style_metrics_init(this);
}
cbindgen_private::NativeStyleMetrics::~NativeStyleMetrics()
{
sixtyfps_native_style_metrics_deinit(this);
}
#endif // !defined(DOXYGEN)