this->statusBar()->setStyleSheet("QStatusBar::item {border: None;}");
#endif
+#if defined(Q_OS_MACOS)
+ this->patchStylesheetMac();
+#endif
+
this->statusBar()->setFixedHeight(30);
m_statusLabelStatus = new QLabel("Idle", this);
m_windowManager->changeSkin(skinName);
ColorScheme::updateFromWidget(this);
this->updateWidgetIcons();
+
+#if defined(Q_OS_MACOS)
+ this->patchStylesheetMac();
+#endif
}
void MainWindow::updateWidgetIcons() {
return true;
}
+void MainWindow::patchStylesheetMac() {
+ auto patch = Utils::fileOpenQRC(":assets/macStylesheet.patch");
+ auto patch_text = Utils::barrayToString(patch);
+
+ QString styleSheet = qApp->styleSheet() + patch_text;
+ qApp->setStyleSheet(styleSheet);
+}
+
void MainWindow::toggleSearchbar(bool visible) {
config()->set(Config::showSearchbar, visible);
void updateRecentlyOpenedMenu();
void updateWidgetIcons();
bool verifyPassword();
+ void patchStylesheetMac();
QIcon hardwareDevicePairedIcon();
QIcon hardwareDeviceUnpairedIcon();
<file>assets/about.txt</file>
<file>assets/ack.txt</file>
<file>assets/feather.desktop</file>
+ <file>assets/macStylesheet.patch</file>
<file>assets/nodes.json</file>
<file>assets/gpg_keys/featherwallet.asc</file>
<file>assets/images/appicons/32x32.png</file>
--- /dev/null
+/* From electrum/gui/qt/stylesheet_patcher.py */
+StatusBarButton {
+ background-color: transparent;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ margin: 0px;
+ padding: 2px;
+}
+
+StatusBarButton:checked {
+ background-color: transparent;
+ border: 1px solid #1464A0;
+}
+
+StatusBarButton:checked:disabled {
+ border: 1px solid #14506E;
+}
+
+StatusBarButton:pressed {
+ margin: 1px;
+ background-color: transparent;
+ border: 1px solid #1464A0;
+}
+
+StatusBarButton:disabled {
+ border: none;
+}
+
+StatusBarButton:hover {
+ border: 1px solid #148CD2;
+}
\ No newline at end of file