From 5c2de6eccd2d4b32ce81082b82917e8768394ed1 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 18 Apr 2025 20:08:21 -0400 Subject: Initial retro-theme change --- gui/main.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'gui/main.cc') diff --git a/gui/main.cc b/gui/main.cc index 5e45465..09bc4e9 100644 --- a/gui/main.cc +++ b/gui/main.cc @@ -1,7 +1,9 @@ -#include "pipe_spec.h" #include "gui.h" #include "logger.h" +#include "pipe_spec.h" #include +#include +#include #include #include @@ -67,6 +69,17 @@ 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); + a.setFont(QFont(f)); + + ssf.open(QFile::ReadOnly); + QString ss = QLatin1String(ssf.readAll()); + a.setStyleSheet(ss); + GUI w; w.show(); return a.exec(); -- cgit v1.2.3 From c63ca29466eabd685935e99cfcac107455a40f93 Mon Sep 17 00:00:00 2001 From: bd Date: Sat, 19 Apr 2025 12:47:25 -0400 Subject: Slightly more reasonable cache size generation --- gui/main.cc | 1 - gui/worker.cc | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'gui/main.cc') diff --git a/gui/main.cc b/gui/main.cc index 09bc4e9..e865ba2 100644 --- a/gui/main.cc +++ b/gui/main.cc @@ -74,7 +74,6 @@ int main(int argc, char **argv) ":/resources/BigBlueTermPlusNerdFontMono-Regular.ttf"); QFile ssf(":/resources/styles.qss"); QString f = QFontDatabase::applicationFontFamilies(fId).at(0); - a.setFont(QFont(f)); ssf.open(QFile::ReadOnly); QString ss = QLatin1String(ssf.readAll()); diff --git a/gui/worker.cc b/gui/worker.cc index 88248e8..742e3f3 100644 --- a/gui/worker.cc +++ b/gui/worker.cc @@ -23,8 +23,8 @@ void Worker::configure( this->ct_mutex.lock(); if (ways.size() != 0) { - // will ensure the largest cache is only half of DRAM - this->size_inc = (MEM_LINE_SPEC / ways.size()) / 2; + // TODO optimal proper sizes + this->size_inc = ((MEM_LINE_SPEC * 0.75) / ways.size()); } d = new Dram(DRAM_DELAY); s = static_cast(d); -- cgit v1.2.3