|
|
@ -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); |
|
|
|