mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-06 05:35:59 +08:00
修正DtkPlugin中的亮暗色更改判断逻辑错误
This commit is contained in:
parent
5b946bb91a
commit
8ac76b668e
@ -13,8 +13,10 @@ void SpkDtkPluginImpl::Initialize()
|
|||||||
&SpkDtkPluginImpl::AccentColorChanged);
|
&SpkDtkPluginImpl::AccentColorChanged);
|
||||||
connect(DGuiApplicationHelper::instance(),
|
connect(DGuiApplicationHelper::instance(),
|
||||||
&DGuiApplicationHelper::themeTypeChanged,
|
&DGuiApplicationHelper::themeTypeChanged,
|
||||||
this,
|
[&](Dtk::Gui::DGuiApplicationHelper::ColorType t)
|
||||||
&SpkDtkPluginImpl::DarkLightThemeChanged);
|
{
|
||||||
|
this->DarkLightThemeChanged(t == Dtk::Gui::DGuiApplicationHelper::DarkType);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpkDtkPluginImpl::addWindow(QWidget *w, QObject *parent)
|
void SpkDtkPluginImpl::addWindow(QWidget *w, QObject *parent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user