aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/simplevisualization.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-07 01:20:03 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-11-07 01:20:03 +0800
commit048e57b723c946d96aca260e26ba60dd380fde90 (patch)
treef8fe6d361e33235d81248105a63fc568b7c956d8 /simple-visualization/simplevisualization.cpp
parentb2ef363f49db70219ac1eaebb7d69dcdade8d60b (diff)
downloadQMidiPlayer-048e57b723c946d96aca260e26ba60dd380fde90.tar.xz
Colorful keyboards.
Diffstat (limited to 'simple-visualization/simplevisualization.cpp')
-rw-r--r--simple-visualization/simplevisualization.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/simple-visualization/simplevisualization.cpp b/simple-visualization/simplevisualization.cpp
index d24db67..d45d101 100644
--- a/simple-visualization/simplevisualization.cpp
+++ b/simple-visualization/simplevisualization.cpp
@@ -7,6 +7,11 @@ void qmpSimpleVisualization::close(){p->close();}
void qmpSimpleVisualization::init()
{
api->registerFunctionality(this,"Keyboard","Keyboard",api->isDarkTheme()?":/img/visualization_i.svg":":/img/visualization.svg",0,true);
+ for(int i=0;i<16;++i)
+ {
+ api->registerOptionUint("","","Keyboard/acolor"+std::to_string(i),0,0xffffff,0xffff66cc);
+ api->registerOptionUint("","","Keyboard/bcolor"+std::to_string(i),0,0xffffff,0xff66ccff);
+ }
p=new qmpKeyboardWindow(api,(QWidget*)api->getMainWindow());
uihs=api->registerUIHook("main.stop",[this](const void*,void*){this->p->resetAll();},nullptr);
}