Browse Source

set background for themes

pull/130/head
DenioD 4 years ago
parent
commit
5a563f169d
  1. BIN
      res/darkwing.png
  2. BIN
      res/hushdark.png
  3. BIN
      res/sdlogo.png
  4. BIN
      res/sdlogo2.png
  5. 7
      src/mainwindow.cpp

BIN
res/darkwing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

BIN
res/hushdark.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

BIN
res/sdlogo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

BIN
res/sdlogo2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

7
src/mainwindow.cpp

@ -906,9 +906,11 @@ void MainWindow::setupTransactionsTab() {
// Set up context menu on transactions tab
auto theme = Settings::getInstance()->get_theme_name();
if (theme == "dark"){
if (theme == "dark" || theme == "midnight") {
ui->listChat->setStyleSheet("background-image: url(res/sdlogo.png) ;background-attachment: fixed ;background-position: center center ;background-repeat: no-repeat;background-size: cover");
}else{ui->listChat->setStyleSheet("background-image: url(res/sdlogo2.png) ;background-attachment: fixed ;background-position: center center ;background-repeat: no-repeat;background-size: cover");}
}
if (theme == "default") {ui->listChat->setStyleSheet("background-image: url(res/sdlogo2.png) ;background-attachment: fixed ;background-position: center center ;background-repeat: no-repeat;background-size: cover");}
ui->listChat->setResizeMode(QListView::Adjust);
ui->listChat->setWordWrap(true);
ui->listChat->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
@ -997,6 +999,7 @@ void MainWindow::setupTransactionsTab() {
menu.exec(ui->transactionsTable->viewport()->mapToGlobal(pos));
});
}
void MainWindow::setupchatTab() {

Loading…
Cancel
Save