aboutsummaryrefslogtreecommitdiff
path: root/simple-visualization/simplevisualization.cpp
diff options
context:
space:
mode:
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);
}