Mercurial > minori
comparison src/gui/pages/anime_list.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 | c912128af0eb |
children | 6d8da6e64d61 |
comparison
equal
deleted
inserted
replaced
101:c537996cf67b | 102:b315f3759c56 |
---|---|
419 AnimeListPage::AnimeListPage(QWidget* parent) : QWidget(parent) { | 419 AnimeListPage::AnimeListPage(QWidget* parent) : QWidget(parent) { |
420 /* Tab bar */ | 420 /* Tab bar */ |
421 tab_bar = new QTabBar(this); | 421 tab_bar = new QTabBar(this); |
422 tab_bar->setExpanding(false); | 422 tab_bar->setExpanding(false); |
423 tab_bar->setDrawBase(false); | 423 tab_bar->setDrawBase(false); |
424 tab_bar->setAutoFillBackground(true); | |
425 | |
426 if (parent) { | |
427 QPalette pal(parent->palette()); | |
428 setPalette(pal); | |
429 } | |
424 | 430 |
425 /* Tree view... */ | 431 /* Tree view... */ |
426 QWidget* tree_widget = new QWidget(this); | 432 QWidget* tree_widget = new QWidget(this); |
427 tree_view = new QTreeView(tree_widget); | 433 tree_view = new QTreeView(tree_widget); |
428 tree_view->setItemDelegate(new AnimeListPageDelegate(tree_view)); | 434 tree_view->setItemDelegate(new AnimeListPageDelegate(tree_view)); |