mirror of
https://github.com/Luzifer/streamdeck.git
synced 2024-12-20 09:41:19 +00:00
Fix blank page not doing anything
refs #2 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d5d2169d53
commit
83122bff42
1 changed files with 21 additions and 1 deletions
|
@ -1,6 +1,26 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
func applySystemPages(conf *config) {
|
func applySystemPages(conf *config) {
|
||||||
blankPage := page{}
|
blankPage := page{Keys: make(map[int]keyDefinition)}
|
||||||
|
|
||||||
|
for i := 0; i < sd.NumKeys(); i++ {
|
||||||
|
blankPage.Keys[i] = keyDefinition{
|
||||||
|
Display: dynamicElement{
|
||||||
|
Type: "color",
|
||||||
|
Attributes: map[string]interface{}{
|
||||||
|
"rgba": []interface{}{0x0, 0x0, 0x0, 0xff},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Actions: []dynamicElement{
|
||||||
|
{
|
||||||
|
Type: "page",
|
||||||
|
Attributes: map[string]interface{}{
|
||||||
|
"relative": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
conf.Pages["@@blank"] = blankPage
|
conf.Pages["@@blank"] = blankPage
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue