mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-23 15:34:52 -04:00
refactor(tracker/gioui): make iconCache part of Theme
This commit is contained in:
parent
b291959a97
commit
4fa0e04788
@ -96,7 +96,7 @@ func (m *MenuStyle) Layout(gtx C, items ...MenuItem) D {
|
||||
if i == m.Menu.hover-1 && item.Doer.Enabled() {
|
||||
macro = op.Record(gtx.Ops)
|
||||
}
|
||||
icon := widgetForIcon(item.IconBytes)
|
||||
icon := m.Theme.Icon(item.IconBytes)
|
||||
iconColor := m.LabelStyle.Color
|
||||
iconInset := layout.Inset{Left: unit.Dp(12), Right: unit.Dp(6)}
|
||||
textLabel := Label(m.Theme, &m.Theme.Menu.Text, item.Text)
|
||||
|
Reference in New Issue
Block a user