summaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-15 22:50:50 -0600
committerJeff Carr <[email protected]>2024-02-15 22:50:50 -0600
commit2bc2096e841f3b262563126feb8a7a4c2b66f090 (patch)
treea940a0200555f1a75096cdc1895246ed46ffb159 /draw.go
parente6eb92845ace066aa36c8730d28c3e53fe6bdca8 (diff)
xterm fixes
also a i18n syntax idea show all tags in the main window
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go22
1 files changed, 3 insertions, 19 deletions
diff --git a/draw.go b/draw.go
index 6c8b61a..4790230 100644
--- a/draw.go
+++ b/draw.go
@@ -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()