diff options
| author | Jeff Carr <[email protected]> | 2025-02-07 01:55:27 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-07 01:55:27 -0600 |
| commit | fb3c16707d72d41cbb92c2392f36dee76fa36936 (patch) | |
| tree | f3a7455ea7edb6fa0074c5550c5b25c136e23b95 /structs.go | |
| parent | 5668e6f081453bdffb7d23f9259f01182d131ace (diff) | |
start closing down crappy color choices
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -135,6 +135,15 @@ type window struct { dense bool // true if the window is huge } +type colorT struct { + frame gocui.Attribute + fg gocui.Attribute + bg gocui.Attribute + selFg gocui.Attribute + selBg gocui.Attribute + name string +} + type guiWidget struct { v *gocui.View // this is nil if the widget is not displayed cuiName string // what gocui uses to reference the widget (usually "TK <widgetId>" @@ -153,7 +162,6 @@ type guiWidget struct { labelN string // the actual text to display in the console vals []string // dropdown menu items enable bool // ? - defaultColor *colorT // store the color to go back to gocuiSize rectType // should mirror the real display size. todo: verify these are accurate. they are not yet full rectType // full size of children (used by widget.Window, etc) force rectType // force widget within these boundries (using this to debug window dragging) @@ -166,8 +174,9 @@ type guiWidget struct { frame bool // ? selectedTab *tree.Node // for a window, this is currently selected tab color *colorT // what color to use + defaultColor *colorT // the default colors // TODO: make a function for this instead + isBG bool // means this is the background widget. There is only one of these // resize bool // the window is currently being resized - isBG bool // means this is the background widget. There is only one of these } // THIS IS GO COMPILER MAGIC |
