Skip to content

Commit

Permalink
Merge pull request #2630 from Be-ing/color_preferences_icons
Browse files Browse the repository at this point in the history
ColorPaletteEditor: use theme's list-add and list-remove icons
  • Loading branch information
Holzhaus authored Apr 5, 2020
2 parents 5fe4c85 + d2411ad commit 8257702
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/preferences/colorpaletteeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ ColorPaletteEditor::ColorPaletteEditor(QWidget* parent, bool showHotcueNumbers)
QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred));
pColorButtonLayout->addWidget(pExpander);

m_pRemoveColorButton = new QPushButton("-", this);
m_pRemoveColorButton = new QPushButton(QIcon::fromTheme("list-remove"), "", this);
if (m_pRemoveColorButton->icon().isNull()) {
m_pRemoveColorButton->setText("-");
}
m_pRemoveColorButton->setFixedWidth(32);
m_pRemoveColorButton->setToolTip(tr("Remove Color"));
m_pRemoveColorButton->setDisabled(true);
Expand All @@ -41,7 +44,10 @@ ColorPaletteEditor::ColorPaletteEditor(QWidget* parent, bool showHotcueNumbers)
this,
&ColorPaletteEditor::slotRemoveColor);

m_pAddColorButton = new QPushButton("+", this);
m_pAddColorButton = new QPushButton(QIcon::fromTheme("list-add"), "", this);
if (m_pAddColorButton->icon().isNull()) {
m_pAddColorButton->setText("+");
}
m_pAddColorButton->setFixedWidth(32);
m_pAddColorButton->setToolTip(tr("Add Color"));
pColorButtonLayout->addWidget(m_pAddColorButton);
Expand Down

0 comments on commit 8257702

Please sign in to comment.