diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-06-17 17:48:46 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-06-17 17:48:46 +0200 |
commit | 1f86ed3d85fa8b845ee901f36529e19446248329 (patch) | |
tree | 1d085c27b65623d5cda24d4a62da01cc3f609710 /src | |
parent | d425f9b49ad4f0b93830ac81a89df81abcec6a6f (diff) | |
download | OFQT-1f86ed3d85fa8b845ee901f36529e19446248329.tar.gz OFQT-1f86ed3d85fa8b845ee901f36529e19446248329.zip |
Correct font for Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/mainwindow.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/qt/mainwindow.cpp b/src/qt/mainwindow.cpp index 9d1ea85..15e5526 100644 --- a/src/qt/mainwindow.cpp +++ b/src/qt/mainwindow.cpp @@ -13,10 +13,6 @@ #include "./ui_mainwindow.h" #include "workers.hpp" - - -#define FONT "tf2build" - MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) , ui(new Ui::MainWindow) @@ -28,9 +24,9 @@ MainWindow::MainWindow(QWidget *parent) qRegisterMetaType<Worker::Tasks_t>("Task_t"); qRegisterMetaType<Worker::Results_t>("Results_t"); - QFontDatabase::addApplicationFont (":/font/assets/" FONT ".ttf"); - QFont playFont(FONT, 20, QFont::Bold); - QFont progressFont(FONT, 10, QFont::Normal); + QFontDatabase::addApplicationFont (":/font/assets/tf2build.ttf"); + QFont playFont("TF2 Build", 20, QFont::Bold); + QFont progressFont("TF2 Build", 10, QFont::Normal); ui->mainButton->setFont(playFont); ui->progressBar->setFont(progressFont); |