From 955c273565521d9559e5760ca252a77c53a7aaa9 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 9 Aug 2026 09:54:00 +0200 Subject: feat(ui): make the toolbar icon size configurable Follow-up to item 56. With the toolbar now following the desktop's button style, an "icon only" desktop makes the icon the whole control, and this style reports PM_ToolBarIconSize as 16px, which is a small target for a button with no text beside it. A [general] toolbar_icon_size key, 16 to 64, defaulting to 24 rather than to the style's own metric. Setting it to 16 restores the theme's value. Clamped and reported, unlike message_zoom, which documents a 0.5 to 3.0 range in the README and enforces none of it. Both ends here break the UI that would be used to fix them: too small is an invisible icon, too large is a toolbar taller than the window. The unenforced message_zoom range is recorded as item 58 rather than fixed here, since it is a separate defect that predates this change. Also documents in the README that saved-query button labels are the key names from the user's own [queries] section, which is why the "Flagged" button still read that way after the action was renamed: it is a user's query name, not a string this code owns. The sample config now shows `Important = tag:flagged` to teach the wording the UI uses. Co-Authored-By: Claude Opus 5 --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index b899b2c..1e34748 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,11 @@ identity. ; Unread. Falls back to the first saved query if no query by this name ; exists, and warns if you named one explicitly. ; startup_query = Unread +; Optional. Toolbar icon size in pixels, 16 to 64. Defaults to 24. The +; toolbar follows your desktop's toolbar button style, so if that is set to +; "icon only" this is the whole size of the control; 16 matches what most +; styles report, which is small for a button with no text beside it. +; toolbar_icon_size = 24 ; Optional. Open the completion popup as soon as an empty query bar takes ; focus, without pressing the shortcut. Defaults to false. ; completion_on_focus = false @@ -173,7 +178,7 @@ work = #cc4444 [queries] Inbox = tag:inbox Unread = tag:unread -Flagged = tag:flagged +Important = tag:flagged [keys] Ctrl+E = archive @@ -187,6 +192,10 @@ QSettings returns keys sorted, and preserving file order would mean hand-rolling an INI parser. Which query opens at startup is therefore a separate setting, `[general] startup_query`, rather than "the first one". +The button text is the key you write here, so these names are yours to +choose. `Important = tag:flagged` and `Flagged = tag:flagged` run the same +query and differ only in what the button says. + ## The query bar The bar at the top takes a notmuch query and shows the matching threads. -- cgit v1.2.3