feat: mark-spam, rule priority persistence, run-rules-on-selected, icons fix, scheduled send + reader polish
- Mark as spam: moves mail to Spam/Junk folder of account - Rule priority: persistPriorityOrder persists 1..N via RuleDao::update - Run rules on selected: uses MailListView::selectedMailIds() + onRunRulesOnSelected - Icons: switch code to qrc short aliases (close/send/bold/etc) + new detach.svg -> resolves all 'Cannot open file' SVG warnings at startup - Categories: CompactMailDelegate paints category chips from CategoryDao - Scheduled send: MailService::scheduleSend with QTimer; wire both composer paths - Reader: show real 'Para:' recipient; delete attachment removes stored file
This commit is contained in:
@@ -292,7 +292,7 @@ void ComposeView::setupUI() {
|
||||
ccLayout->addWidget(m_ccField, 1);
|
||||
|
||||
m_hideCcButton = new QPushButton("");
|
||||
m_hideCcButton->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Linear/Essentional, UI/Close Square.svg")));
|
||||
m_hideCcButton->setIcon(QIcon(QStringLiteral(":/icons/close.svg")));
|
||||
m_hideCcButton->setFixedSize(20, 20);
|
||||
m_hideCcButton->setToolTip(tr("Hide Cc"));
|
||||
m_hideCcButton->setStyleSheet(
|
||||
@@ -319,7 +319,7 @@ void ComposeView::setupUI() {
|
||||
|
||||
m_hideBccButton = new QPushButton("");
|
||||
m_hideBccButton->setFixedSize(20, 20);
|
||||
m_hideBccButton->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Linear/Essentional, UI/Close Square.svg")));
|
||||
m_hideBccButton->setIcon(QIcon(QStringLiteral(":/icons/close.svg")));
|
||||
m_hideBccButton->setToolTip(tr("Hide Bcc"));
|
||||
m_hideBccButton->setStyleSheet(
|
||||
"QPushButton { background: transparent; border: none; color: blue; font-weight: bold; }"
|
||||
@@ -348,7 +348,7 @@ void ComposeView::setupUI() {
|
||||
|
||||
// Detach button placed to the right of the subject line
|
||||
m_detachButton = new QPushButton("");//("↥ Detach");
|
||||
m_detachButton->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Linear/Arrows Action/Square Top Down.svg")));
|
||||
m_detachButton->setIcon(QIcon(QStringLiteral(":/icons/detach.svg")));
|
||||
m_detachButton->setToolTip(tr("Open compose window in a separate window"));
|
||||
m_detachButton->setStyleSheet(
|
||||
"QPushButton { background: transparent; border: 1px solid #d1d1d6; border-radius: 4px; padding: 6px 12px; color: #555; font-size: 12px; }"
|
||||
@@ -421,7 +421,7 @@ void ComposeView::setupUI() {
|
||||
// Attachments and Templates buttons (right-aligned)
|
||||
QHBoxLayout *buttonRow = new QHBoxLayout();
|
||||
m_attachButton = new QToolButton();
|
||||
m_attachButton->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Outline/Messages, Conversation/Paperclip.svg")));
|
||||
m_attachButton->setIcon(QIcon(QStringLiteral(":/icons/attachment.svg")));
|
||||
m_attachButton->setToolTip(tr("Add attachment"));
|
||||
m_attachButton->setIconSize(QSize(20,20));
|
||||
m_attachButton->setStyleSheet("QToolButton { border: none; padding: 5px; } QToolButton:hover { background: #e0e0e0; border-radius: 3px; }");
|
||||
@@ -429,7 +429,7 @@ void ComposeView::setupUI() {
|
||||
buttonRow->addWidget(m_attachButton);
|
||||
|
||||
m_templateButton = new QToolButton();
|
||||
m_templateButton->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Outline/Files/File Text.svg"))); // Assuming you have a template icon
|
||||
m_templateButton->setIcon(QIcon(QStringLiteral(":/icons/file-text.svg"))); // Assuming you have a template icon
|
||||
m_templateButton->setToolTip(tr("Email templates"));
|
||||
m_templateButton->setIconSize(QSize(20,20));
|
||||
m_templateButton->setStyleSheet("QToolButton { border: none; padding: 5px; } QToolButton:hover { background: #e0e0e0; border-radius: 3px; }");
|
||||
@@ -459,7 +459,7 @@ void ComposeView::setupUI() {
|
||||
|
||||
m_sendSplit = new QToolButton();
|
||||
m_sendSplit->setText(tr("Send"));
|
||||
m_sendSplit->setIcon(QIcon(QStringLiteral(":/icons/resources/icons/SVG/Bold Duotone/Messages, Conversation/Plain.svg")));
|
||||
m_sendSplit->setIcon(QIcon(QStringLiteral(":/icons/send.svg")));
|
||||
m_templateButton->setIconSize(QSize(20,20));
|
||||
//m_sendSplit->setToolButtonStyle(Qt::ToolButtonTextOnly);
|
||||
m_sendSplit->setPopupMode(QToolButton::MenuButtonPopup);
|
||||
|
||||
Reference in New Issue
Block a user