mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fixed(tooltip):change tooltip text color is brightText
This commit is contained in:
parent
19630a11d5
commit
d76c0b7aab
@ -83,14 +83,6 @@ void DatetimePlugin::loadPlugin()
|
||||
m_refershTimer->setInterval(1000);
|
||||
m_refershTimer->start();
|
||||
|
||||
m_centralWidget = new DatetimeWidget;
|
||||
m_dateTipsLabel = new TipsWidget;
|
||||
m_refershTimer = new QTimer(this);
|
||||
m_dateTipsLabel->setObjectName("datetime");
|
||||
|
||||
m_refershTimer->setInterval(1000);
|
||||
m_refershTimer->start();
|
||||
|
||||
m_centralWidget = new DatetimeWidget;
|
||||
|
||||
connect(m_centralWidget, &DatetimeWidget::requestUpdateGeometry, [this] { m_proxyInter->itemUpdate(this, pluginName()); });
|
||||
|
@ -4,7 +4,7 @@ set(PLUGIN_NAME "trash")
|
||||
project(${PLUGIN_NAME})
|
||||
|
||||
# Sources files
|
||||
file(GLOB SRCS "*.h" "*.cpp")
|
||||
file(GLOB SRCS "*.h" "*.cpp" "../../widgets/*.h" "../../widgets/*.cpp")
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
@ -35,11 +35,9 @@ DWIDGET_USE_NAMESPACE
|
||||
TrashPlugin::TrashPlugin(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_trashWidget(nullptr)
|
||||
, m_tipsLabel(new QLabel)
|
||||
, m_tipsLabel(new TipsWidget)
|
||||
{
|
||||
m_tipsLabel->setObjectName("trash");
|
||||
m_tipsLabel->setStyleSheet("color:white;"
|
||||
"padding: 0 3px;");
|
||||
}
|
||||
|
||||
const QString TrashPlugin::pluginName() const
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
#include "pluginsiteminterface.h"
|
||||
#include "trashwidget.h"
|
||||
#include "../../widgets/tipswidget.h"
|
||||
|
||||
#include <QLabel>
|
||||
#include <QSettings>
|
||||
@ -62,7 +63,7 @@ public:
|
||||
|
||||
private:
|
||||
TrashWidget *m_trashWidget;
|
||||
QLabel *m_tipsLabel;
|
||||
QPointer<TipsWidget> m_tipsLabel;
|
||||
};
|
||||
|
||||
#endif // TRASHPLUGIN_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user