--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Highlight {
+ color:#3daee9;
+ }
+ .ColorScheme-Text {
+ color:#eff0f1;
+ }
+ </style>
+ <rect style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-Highlight" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M7 2v2h2V2zm0 3v9h2V5z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Text {
+ color:#eff0f1;
+ }
+ </style>
+ <rect fill="#9b59b6" height="16" rx="2" width="16"/>
+ <path d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z" style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text"/>
+ <path d="M8 2a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2 2 2 0 0 1 2 2 2 2 0 0 1-2 2H7v3h2V9.867A4 4 0 0 0 12 6a4 4 0 0 0-4-4zM7 12v2h2v-2z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-PositiveText {
+ color:#27ae60;
+ }
+ .ColorScheme-Text {
+ color:#eff0f1;
+ }
+ </style>
+ <rect style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-PositiveText" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M12.586 3.586L6.5 9.672 3.414 6.586 2 8l4.5 4.5L14 5z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Text {
+ color:#eff0f1;
+ }
+ </style>
+ <rect fill="#7f8c8d" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M3.414 2L2 3.414 6.586 8 2 12.586 3.414 14 8 9.414 12.586 14 14 12.586 9.414 8 14 3.414 12.586 2 8 6.586z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Highlight {
+ color:#3daee9;
+ }
+ .ColorScheme-Text {
+ color:#232629;
+ }
+ </style>
+ <rect style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-Highlight" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M7 2v2h2V2zm0 3v9h2V5z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Text {
+ color:#232629;
+ }
+ </style>
+ <rect fill="#9b59b6" height="16" rx="2" width="16"/>
+ <path d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z" style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text"/>
+ <path d="M8 2a4 4 0 0 0-4 4h2a2 2 0 0 1 2-2 2 2 0 0 1 2 2 2 2 0 0 1-2 2H7v3h2V9.867A4 4 0 0 0 12 6a4 4 0 0 0-4-4zM7 12v2h2v-2z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-PositiveText {
+ color:#27ae60;
+ }
+ .ColorScheme-Text {
+ color:#232629;
+ }
+ </style>
+ <rect style="fill:currentColor;fill-opacity:1;stroke:none" class="ColorScheme-PositiveText" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M12.586 3.586L6.5 9.672 3.414 6.586 2 8l4.5 4.5L14 5z" fill="#fff"/>
+</svg>
--- /dev/null
+<svg height="16" width="16" xmlns="http://www.w3.org/2000/svg">
+ <style
+ type="text/css"
+ id="current-color-scheme">
+ .ColorScheme-Text {
+ color:#232629;
+ }
+ </style>
+ <rect fill="#7f8c8d" height="16" rx="2" width="16"/>
+ <path style="fill:currentColor;fill-opacity:0.6;stroke:none" class="ColorScheme-Text" d="M2 0C.892 0 0 .892 0 2v12c0 1.108.892 2 2 2h12c1.108 0 2-.892 2-2V2c0-1.108-.892-2-2-2zm0 1h12c.554 0 1 .446 1 1v12c0 .554-.446 1-1 1H2c-.554 0-1-.446-1-1V2c0-.554.446-1 1-1z"/>
+ <path d="M3.414 2L2 3.414 6.586 8 2 12.586 3.414 14 8 9.414 12.586 14 14 12.586 9.414 8 14 3.414 12.586 2 8 6.586z" fill="#fff"/>
+</svg>
coreInfoResynchronized();
// Warning icon
- ui.coreUnsupportedIcon->setPixmap(icon::get("dialog-warning").pixmap(16));
+ ui.coreUnsupportedIcon->setPixmap(icon::get({"emblem-unavailable", "dialog-warning"}).pixmap(16));
updateUptime();
startTimer(1000);
connect(Client::instance(), &Client::connected, this, &CoreHighlightSettingsPage::clientConnected);
// Warning icon
- ui.coreUnsupportedIcon->setPixmap(icon::get("dialog-warning").pixmap(16));
+ ui.coreUnsupportedIcon->setPixmap(icon::get({"emblem-unavailable", "dialog-warning"}).pixmap(16));
// Set up client/monolithic remote highlights information
// Local highlights are considered legacy
ui.highlightTable->horizontalHeader()->setSectionResizeMode(HighlightSettingsPage::ChanColumn, QHeaderView::ResizeToContents);
// Information icon
- ui.localHighlightsIcon->setPixmap(icon::get("dialog-information").pixmap(16));
+ ui.localHighlightsIcon->setPixmap(icon::get({"emblem-information", "dialog-information"}).pixmap(16));
connect(ui.add, &QAbstractButton::clicked, this, [this]() { addNewRow(); });
connect(ui.remove, &QAbstractButton::clicked, this, &HighlightSettingsPage::removeSelectedRows);
disconnectedIcon = icon::get("network-disconnect");
// Status icons
- infoIcon = icon::get("dialog-information");
- warningIcon = icon::get("dialog-warning");
+ successIcon = icon::get({"emblem-success", "dialog-information"});
+ unavailableIcon = icon::get({"emblem-unavailable", "dialog-warning"});
+ questionIcon = icon::get({"emblem-question", "dialog-question", "dialog-information"});
foreach (int mib, QTextCodec::availableMibs()) {
QByteArray codec = QTextCodec::codecForMib(mib)->name();
// There's no capability negotiation or network doesn't exist. Don't assume
// anything.
ui.saslStatusLabel->setText(QString("<i>%1</i>").arg(tr("Could not check if supported by network")));
- ui.saslStatusIcon->setPixmap(infoIcon.pixmap(16));
+ ui.saslStatusIcon->setPixmap(questionIcon.pixmap(16));
break;
case CapSupportStatus::Disconnected:
// Disconnected from network, no way to check.
ui.saslStatusLabel->setText(QString("<i>%1</i>").arg(tr("Cannot check if supported when disconnected")));
- ui.saslStatusIcon->setPixmap(infoIcon.pixmap(16));
+ ui.saslStatusIcon->setPixmap(questionIcon.pixmap(16));
break;
case CapSupportStatus::MaybeUnsupported:
// The network doesn't advertise support for SASL PLAIN. Here be dragons.
ui.saslStatusLabel->setText(QString("<i>%1</i>").arg(tr("Not currently supported by network")));
- ui.saslStatusIcon->setPixmap(warningIcon.pixmap(16));
+ ui.saslStatusIcon->setPixmap(unavailableIcon.pixmap(16));
break;
case CapSupportStatus::MaybeSupported:
// The network advertises support for SASL PLAIN. Encourage using it!
// Unfortunately we don't know for sure if it's desired or functional.
ui.saslStatusLabel->setText(QString("<i>%1</i>").arg(tr("Supported by network")));
- ui.saslStatusIcon->setPixmap(infoIcon.pixmap(16));
+ ui.saslStatusIcon->setPixmap(successIcon.pixmap(16));
break;
}
}
QIcon connectedIcon, connectingIcon, disconnectedIcon;
// Status icons
- QIcon infoIcon, warningIcon;
+ QIcon successIcon, unavailableIcon, questionIcon;
CapSupportStatus _saslStatusSelected; /// Status of SASL support for currently-selected network