Skip to content

Commit

Permalink
Use our own brightness icon for the new backlight plugin (#1389)
Browse files Browse the repository at this point in the history
And not a gnome-specific icon.
  • Loading branch information
tsujan authored Apr 24, 2020
1 parent d809dbc commit 40bbe83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions plugin-backlight/backlight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ LXQtBacklight::LXQtBacklight(const ILXQtPanelPluginStartupInfo &startupInfo):
ILXQtPanelPlugin(startupInfo)
{
m_backlightButton = new QToolButton();
//m_backlightButton->setIcon(QIcon::fromTheme(QStringLiteral("video-display")));
m_backlightButton->setIcon(QIcon::fromTheme(QStringLiteral("display-brightness-symbolic")));
// use our own icon
m_backlightButton->setIcon(QIcon::fromTheme(QStringLiteral("brightnesssettings")));

connect(m_backlightButton, SIGNAL(clicked(bool)), this, SLOT(showSlider(bool)));

m_backlightSlider = nullptr;
}

Expand Down
2 changes: 1 addition & 1 deletion plugin-backlight/resources/backlight.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Type=Service
ServiceTypes=LXQtPanel/Plugin
Name=Backlight
Comment=Sets display backlight
Icon=display-brightness-symbolic
Icon=brightnesssettings

#TRANSLATIONS_DIR=../translations

0 comments on commit 40bbe83

Please sign in to comment.