Draggable left edge resize, part 1

This commit is contained in:
2026-11-06 23:32:26 +00:00
parent 9e6b24268f
commit 7e5cf13afe
3 changed files with 50 additions and 20 deletions
+5 -1
View File
@@ -85,7 +85,11 @@ type trayItem struct {
}
func trayItems(clientW, clientH int32) []trayItem {
x := clientW / 2
return trayItemsAt(axisX(clientW), clientH)
}
// trayItemsAt lays the right-hand items out rightward from x.
func trayItemsAt(x, clientH int32) []trayItem {
var out []trayItem
for _, kind := range trayOrder {
var w int32