Commit f20c614b authored by Scott Petrovic's avatar Scott Petrovic

Revert "removed rogue function that was overriding theme colors. creating an odd look to it"

This reverts commit beff8768c97f027f433c01cca2aa6a812c752aca.
parent 8d8ec80d
......@@ -786,6 +786,8 @@ void KisPaintopBox::slotToggleEraseMode(bool checked)
m_sliderChooser[1]->getWidget<KisDoubleSliderSpinBox>("size")->setValue(updateSize);
m_sliderChooser[2]->getWidget<KisDoubleSliderSpinBox>("size")->setValue(updateSize);
toggleHighlightedButton(m_eraseModeButton);
}
void KisPaintopBox::slotSetCompositeMode(int index)
......@@ -801,11 +803,13 @@ void KisPaintopBox::slotSetCompositeMode(int index)
void KisPaintopBox::slotHorizontalMirrorChanged(bool value)
{
m_resourceProvider->setMirrorHorizontal(value);
toggleHighlightedButton(hMirrorButton);
}
void KisPaintopBox::slotVerticalMirrorChanged(bool value)
{
m_resourceProvider->setMirrorVertical(value);
toggleHighlightedButton(vMirrorButton);
}
void KisPaintopBox::sliderChanged(int n)
......@@ -974,9 +978,20 @@ void KisPaintopBox::slotToggleAlphaLockMode(bool checked)
} else {
m_alphaLockButton->actions()[0]->setIcon(koIcon("transparency-unlocked"));
}
toggleHighlightedButton(m_alphaLockButton);
m_resourceProvider->setGlobalAlphaLock(checked);
}
void KisPaintopBox::toggleHighlightedButton(QToolButton* m_tool)
{
palette_highlight.setColor(QPalette::Button, palette.color(QPalette::Highlight));
if (m_tool->isChecked())
m_tool->setPalette(this->palette_highlight);
else
m_tool->setPalette(this->palette);
}
void KisPaintopBox::slotReloadPreset()
{
KisSignalsBlocker blocker(m_optionWidget);
......
......@@ -154,6 +154,8 @@ private slots:
void slotUnsetEraseMode();
void slotToggleAlphaLockMode(bool);
void toggleHighlightedButton(QToolButton* m_tool);
void slotReloadPreset();
void slotConfigurationItemChanged();
void slotSaveLockedOptionToPreset(KisPropertiesConfiguration* p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment