diff options
author | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-09-10 02:35:15 +0000 |
---|---|---|
committer | Orcan Ogetbil <oget.fedora@gmail.com> | 2011-09-10 02:35:15 +0000 |
commit | 85ede352104d0dd1ec39996741faa4aea0b072b5 (patch) | |
tree | 10afb485bd7369e916e28569e0964360fb7344be /muse2/muse | |
parent | 2d847714ede4042f8a02bb0ed79bf2dc1f069709 (diff) |
colorful sliders for the plugins
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/plugin.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/muse2/muse/plugin.cpp b/muse2/muse/plugin.cpp index 75d1ae45..f0dfdaf0 100644 --- a/muse2/muse/plugin.cpp +++ b/muse2/muse/plugin.cpp @@ -3596,8 +3596,12 @@ PluginGui::PluginGui(PluginIBase* p) params[i].label->setPrecision(2); params[i].label->setId(i); + // Let sliders all have different but unique colors + uint hast = qHash(plugin->paramName(i)); + QColor color((uint) (hast * hast) % 16777216); + MusEWidget::Slider* s = new MusEWidget::Slider(0, "param", Qt::Horizontal, - MusEWidget::Slider::None); //, style); + MusEWidget::Slider::None, color); s->setCursorHoming(true); s->setId(i); |