Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
Comment thread
Be-ing marked this conversation as resolved.
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