diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-16 14:54:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-16 15:02:24 +0300 |
commit | a469aa111546896ea73a32f247105eee507fd966 (patch) | |
tree | 7f67a891b63c569c7c30aaabfc4a5d094e0996b9 /src/gui/widgets/tabs | |
parent | e9f59c64a46ad38fb47aac6313c869eaa02ed0e3 (diff) | |
download | ManaVerse-a469aa111546896ea73a32f247105eee507fd966.tar.gz ManaVerse-a469aa111546896ea73a32f247105eee507fd966.tar.bz2 ManaVerse-a469aa111546896ea73a32f247105eee507fd966.tar.xz ManaVerse-a469aa111546896ea73a32f247105eee507fd966.zip |
Add support for labels inside userpalette.
Add being colors label to userpalette.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/setup_colors.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setup_colors.cpp b/src/gui/widgets/tabs/setup_colors.cpp index 6581959b6..2ae5db874 100644 --- a/src/gui/widgets/tabs/setup_colors.cpp +++ b/src/gui/widgets/tabs/setup_colors.cpp @@ -252,6 +252,25 @@ void Setup_Colors::valueChanged(const SelectionEvent &event A_UNUSED) const Color *col = &userPalette->getColor(type); const GradientTypeT grad = userPalette->getGradientType(type); const int delay = userPalette->getGradientDelay(type); + const Visible showControls = fromBool(grad != GradientType::LABEL, Visible); + mPreview->setVisible(showControls); + mPreviewBox->setVisible(showControls); + mTextPreview->setVisible(showControls); + mGradTypeLabel->setVisible(showControls); + mGradTypeSlider->setVisible(showControls); + mGradTypeText->setVisible(showControls); + mGradDelayLabel->setVisible(showControls); + mGradDelaySlider->setVisible(showControls); + mGradDelayText->setVisible(showControls); + mRedLabel->setVisible(showControls); + mRedSlider->setVisible(showControls); + mRedText->setVisible(showControls); + mGreenLabel->setVisible(showControls); + mGreenSlider->setVisible(showControls); + mGreenText->setVisible(showControls); + mBlueLabel->setVisible(showControls); + mBlueSlider->setVisible(showControls); + mBlueText->setVisible(showControls); mPreview->clearRows(); mPreviewBox->setContent(mTextPreview); |