diff options
| author | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-15 22:50:50 -0600 |
| commit | 2bc2096e841f3b262563126feb8a7a4c2b66f090 (patch) | |
| tree | a940a0200555f1a75096cdc1895246ed46ffb159 /draw.go | |
| parent | e6eb92845ace066aa36c8730d28c3e53fe6bdca8 (diff) | |
xterm fixes
also a i18n syntax idea
show all tags in the main window
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -4,30 +4,14 @@ import ( "strconv" "strings" + "go.wit.com/gui" "go.wit.com/lib/gadgets" "go.wit.com/log" "go.wit.com/widget" ) -// creates the actual widgets. -// it's assumed you are always passing in a box -func (rs *RepoStatus) draw() { - if !rs.Ready() { - return - } - - // display the status of the git repository - rs.drawGitStatus() - - // display the git branches and options - rs.makeBranchesBox() - - // show standard git commit and merge controls - rs.drawGitCommands() -} - -func (rs *RepoStatus) drawGitStatus() { - rs.gitStatusGroup = rs.window.Box().NewGroup("What GIT Knows It Has") +func (rs *RepoStatus) drawGitStatus(box *gui.Node) { + rs.gitStatusGroup = box.NewGroup("What GIT Knows It Has") newgrid := rs.gitStatusGroup.NewGrid("gridnuts", 2, 2) newgrid.Margin() newgrid.Pad() |
