diff src/gui/dialog/settings.cpp @ 46:d0adc4aedfc8

*: update... this commit: 1. consolidates dark theme stuff to dark_theme.cpp 2. creates a new widgets folder to store all of our custom widgets 3. creates the list settings page in the information dialog, although much of it is nonfunctional: it doesn't save, and the status doesn't even get filled in... we'll fix this later!
author Paper <mrpapersonic@gmail.com>
date Sat, 23 Sep 2023 01:02:15 -0400
parents 2743011a6042
children 4c6dd5999b39
line wrap: on
line diff
--- a/src/gui/dialog/settings.cpp	Fri Sep 22 15:21:55 2023 -0400
+++ b/src/gui/dialog/settings.cpp	Sat Sep 23 01:02:15 2023 -0400
@@ -1,6 +1,6 @@
 #include "gui/dialog/settings.h"
-#include "gui/sidebar.h"
-#include "gui/ui_utils.h"
+#include "gui/widgets/sidebar.h"
+#include "gui/widgets/text.h"
 #include <QComboBox>
 #include <QDialogButtonBox>
 #include <QGroupBox>
@@ -23,14 +23,16 @@
 	font.setWeight(QFont::Bold);
 	page_title->setFont(font);
 
-	QPalette pal;
-	pal.setColor(QPalette::WindowText, QColor(0xAB, 0xAB, 0xAB));
-	pal.setColor(QPalette::Window, Qt::white);
+	QPalette pal = page_title->palette();
+	pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB));
+	pal.setColor(QPalette::WindowText, Qt::white);
 	page_title->setPalette(pal);
+	page_title->setAutoFillBackground(true);
 
 	page_title->setFixedHeight(23);
 	page_title->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
 	page_title->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
+
 	tab_widget = new QTabWidget(this);
 	tab_widget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);