Skip to content

Commit

Permalink
chore: adapt dde-dock icon() function
Browse files Browse the repository at this point in the history
    adapt dde-dock icon() function

Log: adapt dde-dock icon() function
  • Loading branch information
starhcq authored and deepin-bot[bot] committed Jan 26, 2024
1 parent cb3bd72 commit 63f2687
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions deepin-system-monitor-plugin/gui/monitor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,14 +445,6 @@ MonitorPlugin::~MonitorPlugin()
}
}

QIcon MonitorPlugin::icon(Dock::IconType iconType, Dock::ThemeType) const
{
QIcon fallbackIcon = QIcon(":/deepin-system-monitor.svg");
QString iconName = DGuiApplicationHelper::instance()->themeType() == DGuiApplicationHelper::LightType ? "status-system-monitor-dark" : "status-system-monitor";

return( (iconType == Dock::IconType_DCC_Settings) ? QIcon::fromTheme(iconName, fallbackIcon) : QIcon());
}

void MonitorPlugin::onClickQuickPanel()
{
qInfo() << __FUNCTION__ << __LINE__ << "[-MonitorPlugin-] ClickQuickPanel";
Expand Down
5 changes: 0 additions & 5 deletions deepin-system-monitor-plugin/gui/monitor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ class MonitorPlugin : public QObject, PLUGIN_INTERDACE
//! the flags for the plugin
//!
Dock::PluginFlags flags() const { return Dock::Type_Quick | Dock::Quick_Panel_Single | Dock::Attribute_Normal; }
//!
//! the icon for the plugin
//! themeType {0:UnknownType 1:LightType 2:DarkType}
//!
virtual QIcon icon(Dock::IconType, Dock::ThemeType) const ;
#endif

private slots:
Expand Down

0 comments on commit 63f2687

Please sign in to comment.