From bb2732b62180322d2ff3b2824cc9a11e047f6aaa Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 12:57:42 -0600 Subject: color code cleanups --- treeAdd.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'treeAdd.go') diff --git a/treeAdd.go b/treeAdd.go index 766e373..40b03ba 100644 --- a/treeAdd.go +++ b/treeAdd.go @@ -42,17 +42,17 @@ func addWidget(n *tree.Node) { switch n.WidgetType { case widget.Root: log.Log(INFO, "setStartWH() rootNode w.id =", n.WidgetId, "w.name", n.String()) - tk.color = &colorRoot + // tk.color = &colorRoot setFake(n) return case widget.Flag: - tk.color = &colorFlag + // tk.color = &colorFlag setFake(n) return case widget.Window: tk.frame = false tk.labelN = tk.GetText() + " X" - tk.setColor(&colorWindow) + // tk.setColor(&colorWindow) me.newWindowTrigger <- tk redoWindows(0, 0) hideHelp() @@ -64,7 +64,7 @@ func addWidget(n *tree.Node) { n.State.Label = "moreSTDOUT" return case widget.Tab: - tk.color = &colorTab + // tk.color = &colorTab return case widget.Button: if tk.node.IsEnabled() { @@ -84,10 +84,12 @@ func addWidget(n *tree.Node) { case widget.Textbox: n.State.Label = "" tk.labelN = " " - tk.color = &colorDropdown + // tk.color = &colorDropdown + tk.setColorInput() return case widget.Combobox: - tk.color = &colorCombobox + // tk.color = &colorCombobox + tk.setColorInput() return case widget.Box: // tk.color = &colorBox -- cgit v1.2.3