mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Changed some multiplier from 1000 to 100
This commit is contained in:
parent
f39c0e9ee5
commit
cb6af11b5a
1 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ QLayout *AppearancePage::createThemeColorChanger()
|
|||
// SLIDER
|
||||
QSlider *slider = new QSlider(Qt::Horizontal);
|
||||
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
|
||||
QPushButton *button = new QPushButton;
|
||||
|
@ -87,7 +87,7 @@ QLayout *AppearancePage::createThemeColorChanger()
|
|||
|
||||
// SIGNALS
|
||||
QObject::connect(slider, &QSlider::valueChanged, this, [button, &themeHue](int value) mutable {
|
||||
double newValue = value / 1000.0;
|
||||
double newValue = value / 100.0;
|
||||
|
||||
themeHue.setValue(newValue);
|
||||
|
||||
|
|
Loading…
Reference in a new issue