mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: quickpanel icon not follow theme
update quickItem when theme changed Log:
This commit is contained in:
parent
556ea5acf8
commit
f4a40f36b8
@ -13,6 +13,7 @@
|
|||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
|
#include <DApplication>
|
||||||
|
|
||||||
static constexpr int ICONHEIGHT = 24;
|
static constexpr int ICONHEIGHT = 24;
|
||||||
static constexpr int ICONWIDTH = 24;
|
static constexpr int ICONWIDTH = 24;
|
||||||
@ -26,6 +27,14 @@ StandardQuickItem::StandardQuickItem(PluginsItemInterface *const pluginInter, co
|
|||||||
, m_needPaint(true)
|
, m_needPaint(true)
|
||||||
{
|
{
|
||||||
initUi();
|
initUi();
|
||||||
|
auto app = static_cast<DApplication* >(qApp);
|
||||||
|
if (!app) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
connect(app, &DApplication::iconThemeChanged, this, [this] {
|
||||||
|
m_needPaint = true;
|
||||||
|
doUpdate();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
StandardQuickItem::~StandardQuickItem()
|
StandardQuickItem::~StandardQuickItem()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user