diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-03 15:41:33 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-04 12:53:30 +0200 |
| commit | 9bd2eb0e832ae68ffc15dae6033c5c4543bb8130 (patch) | |
| tree | 8b6eaa8f0c3fad5c1161a80a74b81482694261a4 /src/mainwindow.h | |
| parent | 0dacb5c4c61818088efb5bf513f15d2b715491e3 (diff) | |
| download | qtmaildir-9bd2eb0e832ae68ffc15dae6033c5c4543bb8130.tar.gz qtmaildir-9bd2eb0e832ae68ffc15dae6033c5c4543bb8130.zip | |
feat: let an account set its chip colour and label
Two optional keys in an [account.<key>] stanza. color fills the chip,
label sets its text.
Both belong to the account rather than to [tagcolors] because an account
tag is a different taxonomy: which mailbox a thread arrived in, not what
state it is in.
label is display only. "account-provider-work" is a lot of
row for one bit of information, but the notmuch tag is never renamed, so
existing queries and external tagging are unaffected. Unset falls back to
the account key, and an empty label is ignored rather than rendering a
blank chip.
Diffstat (limited to 'src/mainwindow.h')
| -rw-r--r-- | src/mainwindow.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 30a128a..4445894 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -28,6 +28,7 @@ #include "config.h" #include "keymap.h" +#include "tagcolors.h" #include "types.h" class QAction; @@ -103,6 +104,7 @@ private: Config m_config; KeyMap m_keyMap; + TagColors m_tagColors; QThread m_workerThread; NotmuchWorker *m_worker = nullptr; |
