From 6d78f47d310f69242a88c4e279b49a659d378066 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 17 Oct 2026 11:13:43 +0200 Subject: qtmaildir settings: a colour picker for colour fields An account's chip colour and each tag colour were #rrggbb typed by hand. A swatch beside each now shows the colour and opens Qt's own ColorDialog, which writes the choice back as #rrggbb; typing still works. The add-tag row has one too, filling its field. Setting.qml gains a colour flag rather than a second component, since a colour key is an ordinary text key with a swatch. Co-Authored-By: Claude Opus 5.5 --- desktop/modules/qtmaildir/AccountsPage.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/modules/qtmaildir/AccountsPage.qml') diff --git a/desktop/modules/qtmaildir/AccountsPage.qml b/desktop/modules/qtmaildir/AccountsPage.qml index 2f82154..8a40333 100644 --- a/desktop/modules/qtmaildir/AccountsPage.qml +++ b/desktop/modules/qtmaildir/AccountsPage.qml @@ -81,7 +81,7 @@ Column { hint: "Run without a shell: an absolute path and plain arguments, e.g. /usr/bin/msmtp -a work -t." } Setting { section: card.sec; key: "label"; label: "Chip label"; placeholder: card.modelData } Setting { section: card.sec; key: "color"; label: "Chip colour"; placeholder: "generated" - hint: "#rrggbb" } + hint: "#rrggbb, or pick one with the swatch"; colour: true } Setting { section: card.sec; key: "channel"; label: "mbsync channel"; placeholder: card.modelData } } } -- cgit v1.2.3