mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-09 12:52:22 +08:00
26 lines
650 B
C++
26 lines
650 B
C++
#include <DGuiApplicationHelper>
|
|
#include <DPlatformWindowHandle>
|
|
#include <DPlatformTheme>
|
|
#include "spkdtkplugin_impl.h"
|
|
|
|
using Dtk::Widget::DPlatformWindowHandle;
|
|
|
|
void SpkDtkPluginImpl::Initialize()
|
|
{
|
|
connect(DGuiApplicationHelper::instance()->systemTheme(),
|
|
&DPlatformTheme::activeColorChanged,
|
|
this,
|
|
&SpkDtkPluginImpl::AccentColorChanged);
|
|
}
|
|
|
|
void SpkDtkPluginImpl::addWindow(QWidget *w, QObject *parent)
|
|
{
|
|
DPlatformWindowHandle *h = new DPlatformWindowHandle(w, parent);
|
|
Q_UNUSED(h);
|
|
}
|
|
|
|
QColor SpkDtkPluginImpl::GetAccentColor()
|
|
{
|
|
return DGuiApplicationHelper::instance()->systemTheme()->activeColor();
|
|
}
|