mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Fix styles for progress dialogs, shutdown window and text selection (#3212)
* Override text selection background color for all text widgets Otherwie it might become unusable with some system themes * Fix progress dialogs styling * Fix shutdown window styling
This commit is contained in:
parent
df372ec5f9
commit
d475f17bc2
@ -1499,6 +1499,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
|
||||
if (nProgress == 0)
|
||||
{
|
||||
progressDialog = new QProgressDialog(title, "", 0, 100);
|
||||
progressDialog->setStyleSheet(GUIUtil::loadStyleSheet());
|
||||
progressDialog->setWindowModality(Qt::ApplicationModal);
|
||||
progressDialog->setMinimumDuration(0);
|
||||
progressDialog->setCancelButton(0);
|
||||
|
@ -107,6 +107,10 @@ font-size:12px;
|
||||
background-color:#f2f2f2;
|
||||
}
|
||||
|
||||
QWidget { /* override text selection background color for all text widgets */
|
||||
selection-background-color: #999;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
|
||||
QPushButton { /* Global Button Style */
|
||||
@ -380,10 +384,20 @@ color:#333;
|
||||
|
||||
/* DIALOG BOXES */
|
||||
|
||||
.QProgressDialog {
|
||||
background-color: #F8F6F6;
|
||||
}
|
||||
|
||||
QDialog QWidget { /* Remove Annoying Focus Rectangle */
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* SHUTDOWN WINDOW */
|
||||
|
||||
QWidget#ShutdownWindow {
|
||||
background-color: #F8F6F6;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
/* FILE MENU */
|
||||
|
||||
|
@ -107,6 +107,10 @@ font-size:12px;
|
||||
background-color:#f2f2f2;
|
||||
}
|
||||
|
||||
QWidget { /* override text selection background color for all text widgets */
|
||||
selection-background-color: #999;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
|
||||
QPushButton { /* Global Button Style */
|
||||
@ -380,10 +384,20 @@ color:#333;
|
||||
|
||||
/* DIALOG BOXES */
|
||||
|
||||
.QProgressDialog {
|
||||
background-color: #F8F6F6;
|
||||
}
|
||||
|
||||
QDialog QWidget { /* Remove Annoying Focus Rectangle */
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
/* SHUTDOWN WINDOW */
|
||||
|
||||
QWidget#ShutdownWindow {
|
||||
background-color: #F8F6F6;
|
||||
}
|
||||
|
||||
/*******************************************************/
|
||||
/* FILE MENU */
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include "bitcoingui.h"
|
||||
#include "clientmodel.h"
|
||||
#include "guiconstants.h"
|
||||
#include "guiutil.h"
|
||||
#include "intro.h"
|
||||
#include "paymentrequestplus.h"
|
||||
#include "guiutil.h"
|
||||
@ -199,6 +200,11 @@ void HelpMessageDialog::on_okButton_accepted()
|
||||
ShutdownWindow::ShutdownWindow(QWidget *parent, Qt::WindowFlags f):
|
||||
QWidget(parent, f)
|
||||
{
|
||||
setObjectName("ShutdownWindow");
|
||||
|
||||
/* Open CSS when configured */
|
||||
this->setStyleSheet(GUIUtil::loadStyleSheet());
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout();
|
||||
layout->addWidget(new QLabel(
|
||||
tr("%1 is shutting down...").arg(tr(PACKAGE_NAME)) + "<br /><br />" +
|
||||
|
@ -366,6 +366,7 @@ void WalletView::showProgress(const QString &title, int nProgress)
|
||||
if (nProgress == 0)
|
||||
{
|
||||
progressDialog = new QProgressDialog(title, "", 0, 100);
|
||||
progressDialog->setStyleSheet(GUIUtil::loadStyleSheet());
|
||||
progressDialog->setWindowModality(Qt::ApplicationModal);
|
||||
progressDialog->setMinimumDuration(0);
|
||||
progressDialog->setCancelButton(0);
|
||||
|
Loading…
Reference in New Issue
Block a user