mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Set font weight in crash reporter
This commit is contained in:
parent
0ad18c8182
commit
8d2805f226
1 changed files with 3 additions and 0 deletions
|
@ -100,6 +100,7 @@ PreLaunchWindow::~PreLaunchWindow() {
|
||||||
PreLaunchLabel::PreLaunchLabel(QWidget *parent) : QLabel(parent) {
|
PreLaunchLabel::PreLaunchLabel(QWidget *parent) : QLabel(parent) {
|
||||||
QFont labelFont(font());
|
QFont labelFont(font());
|
||||||
labelFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
labelFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
||||||
|
labelFont.setWeight(QFont::DemiBold);
|
||||||
labelFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
labelFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(labelFont);
|
setFont(labelFont);
|
||||||
|
|
||||||
|
@ -163,6 +164,7 @@ PreLaunchButton::PreLaunchButton(QWidget *parent, bool confirm) : QPushButton(pa
|
||||||
|
|
||||||
QFont closeFont(font());
|
QFont closeFont(font());
|
||||||
closeFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
closeFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
||||||
|
closeFont.setWeight(QFont::DemiBold);
|
||||||
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(closeFont);
|
setFont(closeFont);
|
||||||
|
|
||||||
|
@ -182,6 +184,7 @@ PreLaunchCheckbox::PreLaunchCheckbox(QWidget *parent) : QCheckBox(parent) {
|
||||||
|
|
||||||
QFont closeFont(font());
|
QFont closeFont(font());
|
||||||
closeFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
closeFont.setFamily(style::internal::GetFontOverride(style::internal::FontSemibold));
|
||||||
|
closeFont.setWeight(QFont::DemiBold);
|
||||||
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(closeFont);
|
setFont(closeFont);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue