From 12c9f5429b6cf3d77c7fc46b765e3e5ab8d4b10c Mon Sep 17 00:00:00 2001 From: akiyosi Date: Wed, 10 Mar 2021 23:53:20 +0900 Subject: [PATCH] Minor fixes --- editor/popupmenu.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/editor/popupmenu.go b/editor/popupmenu.go index ed0b1bd..eab642e 100644 --- a/editor/popupmenu.go +++ b/editor/popupmenu.go @@ -314,24 +314,24 @@ func (p *PopupMenu) showItems(args []interface{}) { p.scrollCol.Hide() } - if gridid == 1 { - for _, item := range p.items { - if item.selected { - item.digitLabel.SetStyleSheet(fmt.Sprintf("background-color: %s; color: rgba(0,0,0,0);", editor.colors.selectedBg.StringTransparent())) - } else { - item.digitLabel.SetStyleSheet("color: rgba(0,0,0,0);") - } - } - } else { - for _, item := range p.items { - fg := editor.colors.inactiveFg - if item.selected { - item.digitLabel.SetStyleSheet(fmt.Sprintf("background-color: %s; color: rgba(%d,%d,%d,%f);", editor.colors.selectedBg.StringTransparent(), fg.R, fg.G, fg.B, 1.0)) - } else { - item.digitLabel.SetStyleSheet(fmt.Sprintf("color: rgba(%d,%d,%d,%f);", fg.R, fg.G, fg.B, 1.0)) - } - } - } + // if gridid == 1 { + // for _, item := range p.items { + // if item.selected { + // item.digitLabel.SetStyleSheet(fmt.Sprintf("background-color: %s; color: rgba(0,0,0,0);", editor.colors.selectedBg.StringTransparent())) + // } else { + // item.digitLabel.SetStyleSheet("color: rgba(0,0,0,0);") + // } + // } + // } else { + // for _, item := range p.items { + // fg := editor.colors.inactiveFg + // if item.selected { + // item.digitLabel.SetStyleSheet(fmt.Sprintf("background-color: %s; color: rgba(%d,%d,%d,%f);", editor.colors.selectedBg.StringTransparent(), fg.R, fg.G, fg.B, 1.0)) + // } else { + // item.digitLabel.SetStyleSheet(fmt.Sprintf("color: rgba(%d,%d,%d,%f);", fg.R, fg.G, fg.B, 1.0)) + // } + // } + // } // p.hide() p.show()