1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

LibGUI: Rename AbstractSlider::on_value_changed => on_change

This matches other similar hook names.
This commit is contained in:
Andreas Kling 2020-12-30 15:11:46 +01:00
parent 3b445bc66a
commit cb67264f61
11 changed files with 21 additions and 21 deletions

View file

@ -103,7 +103,7 @@ public:
m_slider->set_max(20);
m_slider->set_value(0);
m_slider->set_knob_size_mode(GUI::Slider::KnobSizeMode::Proportional);
m_slider->on_value_changed = [&](int value) {
m_slider->on_change = [&](int value) {
int volume = clamp((20 - value) * 5, 0, 100);
float volume_log = ((volume / 100.0f) * (volume / 100.0f)) * 100.0f;
m_audio_client->set_main_mix_volume(volume_log);