diff options
author | bd <bdunaisky@umass.edu> | 2025-04-21 20:01:34 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-21 20:01:34 +0000 |
commit | 282e2644ef0470133184fdf9900cf2565ec5332b (patch) | |
tree | 43238110a03ce678f1a68b0b4175ae023527b070 /gui/main.cc | |
parent | 4a19129e8499bc187ef6e296e050cc8a20bcc2d3 (diff) | |
parent | d933a0405b7a7dff3cf05839ac99d120cafa4d75 (diff) |
Merge pull request #56 from bdunahu/dev-sid
Dev sid
Diffstat (limited to 'gui/main.cc')
-rw-r--r-- | gui/main.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gui/main.cc b/gui/main.cc index eb0129e..9877a3c 100644 --- a/gui/main.cc +++ b/gui/main.cc @@ -15,10 +15,12 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see <https://www.gnu.org/licenses/>. -#include "pipe_spec.h" #include "gui.h" #include "logger.h" +#include "pipe_spec.h" #include <QApplication> +#include <QFile> +#include <QFontDatabase> #include <getopt.h> #include <iostream> @@ -84,6 +86,16 @@ int main(int argc, char **argv) global_log->log(INFO, "Starting QT..."); QApplication a(argc, argv); + + int fId = QFontDatabase::addApplicationFont( + ":/resources/BigBlueTermPlusNerdFontMono-Regular.ttf"); + QFile ssf(":/resources/styles.qss"); + QString f = QFontDatabase::applicationFontFamilies(fId).at(0); + + ssf.open(QFile::ReadOnly); + QString ss = QLatin1String(ssf.readAll()); + a.setStyleSheet(ss); + GUI w; w.show(); return a.exec(); |