set background for themes
This commit is contained in:
BIN
res/darkwing.png
Normal file
BIN
res/darkwing.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 174 KiB |
BIN
res/hushdark.png
Normal file
BIN
res/hushdark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
res/sdlogo.png
Normal file
BIN
res/sdlogo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
BIN
res/sdlogo2.png
Normal file
BIN
res/sdlogo2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user