aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/modules/qtmaildir/AccountsPage.qml
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-17 11:13:43 +0200
committerDanilo M. <danix@danix.xyz>2026-10-17 11:13:43 +0200
commit6d78f47d310f69242a88c4e279b49a659d378066 (patch)
tree575427a3cb3ee07968682a9ff81af28d77d75de3 /desktop/modules/qtmaildir/AccountsPage.qml
parentc6fc5bbef45bcfa4f8d5e50ca7401aa1f5b6bc7d (diff)
downloadquickshell-6d78f47d310f69242a88c4e279b49a659d378066.tar.gz
quickshell-6d78f47d310f69242a88c4e279b49a659d378066.zip
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 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/qtmaildir/AccountsPage.qml')
-rw-r--r--desktop/modules/qtmaildir/AccountsPage.qml2
1 files changed, 1 insertions, 1 deletions
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 }
}
}