comparison src/gui/dialog/settings.cc @ 102:b315f3759c56

*: big patch 1. use a wrapper for mINI that enables case sensitivity (personal preference) 2. rename dark_theme.cc to theme.cc and change it to be a class 3. include the "dep" folder so we don't have stupidity in json.h or ini.h 4. I think the graph was also tweaked a lot in this, nothing is constexpr and size is found at runtime...
author Paper <mrpapersonic@gmail.com>
date Fri, 03 Nov 2023 21:32:52 -0400
parents 9b2b41f83a5e
children 2004b41d4a59
comparison
equal deleted inserted replaced
101:c537996cf67b 102:b315f3759c56
18 QFont font(page_title->font()); 18 QFont font(page_title->font());
19 font.setPixelSize(12); 19 font.setPixelSize(12);
20 font.setWeight(QFont::Bold); 20 font.setWeight(QFont::Bold);
21 page_title->setFont(font); 21 page_title->setFont(font);
22 22
23 QPalette pal = page_title->palette(); 23 {
24 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB)); 24 QPalette pal = page_title->palette();
25 pal.setColor(QPalette::WindowText, Qt::white); 25 pal.setColor(QPalette::Window, QColor(0xAB, 0xAB, 0xAB));
26 page_title->setPalette(pal); 26 pal.setColor(QPalette::WindowText, Qt::white);
27 page_title->setPalette(pal);
28 }
27 page_title->setAutoFillBackground(true); 29 page_title->setAutoFillBackground(true);
28 30
29 page_title->setFixedHeight(23); 31 page_title->setFixedHeight(23);
30 page_title->setAlignment(Qt::AlignVCenter | Qt::AlignLeft); 32 page_title->setAlignment(Qt::AlignVCenter | Qt::AlignLeft);
31 page_title->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed); 33 page_title->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);