1
0
Fork 0
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:
Knut Ahlers 2020-10-30 20:00:18 +01:00
parent d5d2169d53
commit 83122bff42
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -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
} }