Changed some multiplier from 1000 to 100
This commit is contained in:
committed by
fourtf
parent
f39c0e9ee5
commit
cb6af11b5a
@@ -77,7 +77,7 @@ QLayout *AppearancePage::createThemeColorChanger()
|
|||||||
// SLIDER
|
// SLIDER
|
||||||
QSlider *slider = new QSlider(Qt::Horizontal);
|
QSlider *slider = new QSlider(Qt::Horizontal);
|
||||||
layout->addWidget(slider);
|
layout->addWidget(slider);
|
||||||
slider->setValue(std::min(std::max(themeHue.getValue(), 0.0), 1.0) * 1000);
|
slider->setValue(std::min(std::max(themeHue.getValue(), 0.0), 1.0) * 100);
|
||||||
|
|
||||||
// BUTTON
|
// BUTTON
|
||||||
QPushButton *button = new QPushButton;
|
QPushButton *button = new QPushButton;
|
||||||
@@ -87,7 +87,7 @@ QLayout *AppearancePage::createThemeColorChanger()
|
|||||||
|
|
||||||
// SIGNALS
|
// SIGNALS
|
||||||
QObject::connect(slider, &QSlider::valueChanged, this, [button, &themeHue](int value) mutable {
|
QObject::connect(slider, &QSlider::valueChanged, this, [button, &themeHue](int value) mutable {
|
||||||
double newValue = value / 1000.0;
|
double newValue = value / 100.0;
|
||||||
|
|
||||||
themeHue.setValue(newValue);
|
themeHue.setValue(newValue);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user