File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,9 @@ func (p *PopupMenu) updateFont(font *Font) {
162
162
popupItem .digitLabel .SetFont (font .fontNew )
163
163
popupItem .menuLabel .SetFont (font .fontNew )
164
164
popupItem .infoLabel .SetFont (font .fontNew )
165
- popupItem .kindIcon .SetFixedSize2 (font .lineHeight , font .lineHeight )
166
- popupItem .kindwidget .SetFixedWidth (font .lineHeight + editor .config .Editor .Linespace * 2 )
165
+ popupItem .kindIcon .SetFixedSize2 (editor .iconSize , editor .iconSize )
166
+ margin := editor .config .Editor .Linespace / 2 + 2
167
+ popupItem .kindwidget .SetFixedWidth (editor .iconSize + margin * 2 )
167
168
}
168
169
}
169
170
Original file line number Diff line number Diff line change @@ -2303,6 +2303,8 @@ func (w *Workspace) guiFont(args string) {
2303
2303
2304
2304
w .updateSize ()
2305
2305
2306
+ editor .iconSize = int (float64 (fontHeight ) * 11 / 9 )
2307
+
2306
2308
if w .popup != nil {
2307
2309
w .popup .updateFont (font )
2308
2310
}
You can’t perform that action at this time.
0 commit comments