Pad/internal/ui/layout.go
Greg Pomerantz b8c6878f46 Introduce distinct Dp/Px types to prevent coordinate mixing at compile time
- Add ui.Dp and ui.Px as distinct named types
- Logic layer works exclusively in Dp (positions, sizes, regions)
- Renderer converts Dp→Px at Gio interop boundaries
- Capture gtx.Constraints once at start of Draw() for consistent positioning
- main.go converts app.ConfigEvent pixels to Dp before passing to logic layer
- Update documentation with new coordinate system architecture
2026-05-09 18:40:47 -04:00

17 lines
400 B
Go

package ui
const (
// Standard dimensions in Dp
statusBarLineHeight = Dp(24)
statusBarFilenameLine = Dp(24)
statusBarIconsLine = Dp(24)
bottomBarHeight = Dp(24)
iconSize = Dp(24)
iconGap = Dp(36)
padding = Dp(8)
buttonPadding = Dp(8)
)
// NOTE: EditorLayout is defined in internal/editor/state.go.
// This file contains layout constants only.