From 5418ba6bc5c653b6a99572c6ece6abbf57836c43 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Thu, 17 Sep 2026 00:51:15 +0200 Subject: gui: coloured actions with headers, a filter over the plan, bulk trash or delete --- gui/internal/ui/rules.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'gui/internal/ui/rules.go') diff --git a/gui/internal/ui/rules.go b/gui/internal/ui/rules.go index 97f3dcd..3bae8df 100644 --- a/gui/internal/ui/rules.go +++ b/gui/internal/ui/rules.go @@ -227,21 +227,12 @@ func newRulesView(w *Window) *rulesView { return r } -// applyPrefs sets the editor's font and whether the text is coloured. +// applyPrefs sets whether the configuration is coloured. func (r *rulesView) applyPrefs(p model.Prefs) { r.colours.setEnabled(p.Colours) if r.rules != nil && p.Colours { r.colours.paint(r.rules.Text) } - css := gtk.NewCSSProvider() - if p.FontSize > 0 { - css.LoadFromData(fmt.Sprintf("textview { font-size: %dpt; }", p.FontSize)) - } else { - css.LoadFromData("") - } - for _, v := range []*gtk.TextView{r.view, r.nums, r.out} { - v.StyleContext().AddProvider(css, 800) - } } // formsOf is the forms of the text in the editor, for the Forms sub-tab. -- cgit v1.3