wip: refactoring tui

This commit is contained in:
adamdottv
2025-06-13 09:19:51 -05:00
parent d7d5fc39fb
commit 38667682a7
5 changed files with 244 additions and 77 deletions

View File

@@ -11,7 +11,6 @@ var Current *LayoutInfo
func init() {
Current = &LayoutInfo{
Size: LayoutSizeNormal,
Viewport: Dimensions{Width: 80, Height: 25},
Container: Dimensions{Width: 80, Height: 25},
}
@@ -19,19 +18,12 @@ func init() {
type LayoutSize string
const (
LayoutSizeSmall LayoutSize = "small"
LayoutSizeNormal LayoutSize = "normal"
LayoutSizeLarge LayoutSize = "large"
)
type Dimensions struct {
Width int
Height int
}
type LayoutInfo struct {
Size LayoutSize
Viewport Dimensions
Container Dimensions
}