mirror of
https://github.com/akiyosi/goneovim.git
synced 2025-08-13 22:29:23 +02:00
Minor fixes
This commit is contained in:
parent
e96d3183a6
commit
12c9f5429b
1 changed files with 18 additions and 18 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue