From e5c755028d029de27deb58028ab7a4d9230d9e2a Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 22 Sep 2015 01:55:43 +0200 Subject: [PATCH] removed hard coded fonts --- gui/adddownloaddialog.cpp | 2 +- gui/setrangedialog.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/adddownloaddialog.cpp b/gui/adddownloaddialog.cpp index d30b8f5..0405bb9 100644 --- a/gui/adddownloaddialog.cpp +++ b/gui/adddownloaddialog.cpp @@ -43,7 +43,7 @@ AddDownloadDialog::AddDownloadDialog(QWidget *parent) : m_ui->setupUi(this); #ifdef Q_OS_WIN32 - setStyleSheet(QStringLiteral("* { font: 9pt \"Segoe UI\"; } #mainWidget { color: black; background-color: white; border: none; } #bottomWidget { background-color: #F0F0F0; border-top: 1px solid #DFDFDF; } QMessageBox QLabel, QInputDialog QLabel, #mainInstructionLabel { font-size: 12pt; color: #003399; }")); + setStyleSheet(QStringLiteral("#mainWidget { color: black; background-color: white; border: none; } #bottomWidget { background-color: #F0F0F0; border-top: 1px solid #DFDFDF; } QMessageBox QLabel, QInputDialog QLabel, #mainInstructionLabel { font-size: 12pt; color: #003399; }")); #else setStyleSheet(QStringLiteral("#mainInstructionLabel { font-weight: bold; }")); #endif diff --git a/gui/setrangedialog.cpp b/gui/setrangedialog.cpp index 7faf2e6..4665e4b 100644 --- a/gui/setrangedialog.cpp +++ b/gui/setrangedialog.cpp @@ -17,7 +17,7 @@ SetRangeDialog::SetRangeDialog(DownloadRange &range, QWidget *parent) : { m_ui->setupUi(this); #ifdef Q_OS_WIN32 - setStyleSheet(QStringLiteral("* { font: 9pt \"Segoe UI\"; } #mainWidget { color: black; background-color: white; border: none; } #bottomWidget { background-color: #F0F0F0; border-top: 1px solid #DFDFDF; } QMessageBox QLabel, QInputDialog QLabel { font-size: 12pt; color: #003399; }")); + setStyleSheet(QStringLiteral("#mainWidget { color: black; background-color: white; border: none; } #bottomWidget { background-color: #F0F0F0; border-top: 1px solid #DFDFDF; } QMessageBox QLabel, QInputDialog QLabel { font-size: 12pt; color: #003399; }")); #endif m_ui->fromSpinBox->setValue(range.startOffset()); m_ui->toSpinBox->setValue(range.endOffset());