From e50cb1e2c676e8d031004bb10213279ce81c7981 Mon Sep 17 00:00:00 2001 From: fekt Date: Sun, 14 Apr 2024 23:44:36 -0400 Subject: [PATCH] Default price feed to off and hide bg image in chat for now --- src/mainwindow.cpp | 6 +++--- src/settings.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6c7fc89..0fd66df 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1382,9 +1382,9 @@ void MainWindow::setupTransactionsTab() { contextMenuChat->setObjectName("contextMenuChat"); QString style = "QMenu{background-color: rgb(0, 0, 255);}"; auto theme = Settings::getInstance()->get_theme_name(); - if (theme == "Dark" || theme == "Midnight") { - ui->listChat->setStyleSheet("QListView{background-image: url(:/icons/res/SDLogo.png) ;background-position: center center ;background-repeat: no-repeat;} QMenu::item:selected { border-color: darkblue; background: rgba(100, 100, 100, 150);}");} - if (theme == "Default") {ui->listChat->setStyleSheet("QListView{background-image: url(:/icons/res/sdlogo2.png) ;background-attachment: fixed ;background-position: center center ;background-repeat: no-repeat;} QMenu::item:selected { border-color: darkblue; background: rgba(100, 100, 100, 150);}");} + //if (theme == "Dark" || theme == "Midnight") { + //ui->listChat->setStyleSheet("QListView{background-image: url(:/icons/res/SDLogo.png) ;background-position: center center ;background-repeat: no-repeat;} QMenu::item:selected { border-color: darkblue; background: rgba(100, 100, 100, 150);}");} + //if (theme == "Default") {ui->listChat->setStyleSheet("QListView{background-image: url(:/icons/res/sdlogo2.png) ;background-attachment: fixed ;background-position: center center ;background-repeat: no-repeat;} QMenu::item:selected { border-color: darkblue; background: rgba(100, 100, 100, 150);}");} ui->listChat->setResizeMode(QListView::Adjust); ui->listChat->setWordWrap(true); ui->listChat->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel); diff --git a/src/settings.cpp b/src/settings.cpp index d2bdb68..65164c8 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -242,7 +242,8 @@ void Settings::setCheckForUpdates(bool allow) { } bool Settings::getAllowFetchPrices() { - return QSettings().value("options/allowfetchprices", true).toBool(); + // now defaults to OFF, used to be ON + return QSettings().value("options/allowfetchprices", false).toBool(); } void Settings::setAllowFetchPrices(bool allow) {