Fix group tools disclosure icon
This commit is contained in:
@@ -396,6 +396,7 @@ type ui struct {
|
|||||||
copyIcon *widget.Icon
|
copyIcon *widget.Icon
|
||||||
expandMoreIcon *widget.Icon
|
expandMoreIcon *widget.Icon
|
||||||
expandLessIcon *widget.Icon
|
expandLessIcon *widget.Icon
|
||||||
|
chevronRightIcon *widget.Icon
|
||||||
chevronDownIcon *widget.Icon
|
chevronDownIcon *widget.Icon
|
||||||
settingsIcon *widget.Icon
|
settingsIcon *widget.Icon
|
||||||
menuIcon *widget.Icon
|
menuIcon *widget.Icon
|
||||||
@@ -615,6 +616,7 @@ func newUIWithState(mode string, sess appstate.CurrentSession, paths statePaths)
|
|||||||
u.copyIcon, _ = widget.NewIcon(icons.ContentContentCopy)
|
u.copyIcon, _ = widget.NewIcon(icons.ContentContentCopy)
|
||||||
u.expandMoreIcon, _ = widget.NewIcon(icons.NavigationExpandMore)
|
u.expandMoreIcon, _ = widget.NewIcon(icons.NavigationExpandMore)
|
||||||
u.expandLessIcon, _ = widget.NewIcon(icons.NavigationExpandLess)
|
u.expandLessIcon, _ = widget.NewIcon(icons.NavigationExpandLess)
|
||||||
|
u.chevronRightIcon, _ = widget.NewIcon(icons.NavigationChevronRight)
|
||||||
u.chevronDownIcon, _ = widget.NewIcon(icons.NavigationArrowDropDown)
|
u.chevronDownIcon, _ = widget.NewIcon(icons.NavigationArrowDropDown)
|
||||||
u.settingsIcon, _ = widget.NewIcon(icons.ActionSettings)
|
u.settingsIcon, _ = widget.NewIcon(icons.ActionSettings)
|
||||||
u.menuIcon, _ = widget.NewIcon(icons.NavigationMenu)
|
u.menuIcon, _ = widget.NewIcon(icons.NavigationMenu)
|
||||||
|
|||||||
+1
-1
@@ -909,7 +909,7 @@ func (u *ui) groupControlsDisclosure(gtx layout.Context) layout.Dimensions {
|
|||||||
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
layout.Rigid(func(gtx layout.Context) layout.Dimensions {
|
||||||
icon := u.expandLessIcon
|
icon := u.expandLessIcon
|
||||||
if u.groupControlsHidden {
|
if u.groupControlsHidden {
|
||||||
icon = u.expandMoreIcon
|
icon = u.chevronRightIcon
|
||||||
}
|
}
|
||||||
if icon == nil {
|
if icon == nil {
|
||||||
lbl := material.Label(u.theme, unit.Sp(16), ">")
|
lbl := material.Label(u.theme, unit.Sp(16), ">")
|
||||||
|
|||||||
Reference in New Issue
Block a user