func newCompletionLabel(theme gxui.Theme, color gxui.Color) *completionLabel { l := &completionLabel{} l.Init(l, theme, theme.DefaultMonospaceFont(), color) l.SetMargin(math.Spacing{ T: 3, R: 3, }) l.SetHorizontalAlignment(gxui.AlignCenter) l.padding = completionPadding return l }
func (a *fsAdapter) Size(theme gxui.Theme) math.Size { return math.Size{ W: 20 * theme.DefaultMonospaceFont().GlyphMaxSize().W, H: theme.DefaultMonospaceFont().GlyphMaxSize().H, } }