Version 0.2.0
continuous-integration/drone/push Build is passing

* Hide nanoleaf:IP devices in UI
* Color clicking behavior is more clear
* small icons for mega-groups
* common tags/roles for groups
* fix default names in UI state
* hexagon corner
* secondary lamp icon
* fix selection bugs in device form
* select all/none hotkey
* quick assign modal
This commit is contained in:
2023-10-21 14:02:49 +02:00
parent f00575fd7f
commit 5fee980f79
39 changed files with 873 additions and 47 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func (b *bridge) HardwareEvents() []lucifer3.Event {
shapeType, shapeTypeOK := shapeTypeMap[panel.ShapeType]
if !shapeTypeOK {
shapeType = "Unknown"
shapeType = fmt.Sprint("Unknown:", panel.ShapeType)
}
shapeIcon, shapeIconOK := shapeIconMap[panel.ShapeType]
@@ -65,7 +65,7 @@ func (b *bridge) HardwareEvents() []lucifer3.Event {
results = append(results, events.HardwareState{
ID: panel.FullID,
InternalName: fmt.Sprintf("%s %d (%s)", shapeType, i+1, strings.SplitN(panel.FullID, ":", 3)[2]),
InternalName: fmt.Sprintf("%s %03d", shapeType, i+1),
SupportFlags: device.SFlagPower | device.SFlagIntensity | device.SFlagColor,
ColorFlags: device.CFlagRGB,
Buttons: []string{"Touch"},
+2
View File
@@ -138,6 +138,7 @@ var shapeTypeMap = map[int]string{
8: "Triangle",
9: "Mini Triangle",
12: "Shapes Controller",
15: "Element Corner",
}
var shapeIconMap = map[int]string{
@@ -150,6 +151,7 @@ var shapeIconMap = map[int]string{
8: "shape_triangle",
9: "shape_triangle",
12: "shape_hexagon",
15: "shape_hexagon_corner",
}
var shapeWidthMap = map[int]int{