Mercurial > minori
diff src/gui/pages/anime_list.cc @ 105:6d8da6e64d61
theme: add dark stylesheet, make it actually usable
win32: make the titlebar black where available
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 05 Nov 2023 03:54:26 -0500 |
parents | b315f3759c56 |
children | c8c72278f6fd |
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc Sun Nov 05 02:35:27 2023 -0500 +++ b/src/gui/pages/anime_list.cc Sun Nov 05 03:54:26 2023 -0500 @@ -282,14 +282,13 @@ } menu->addSeparator(); - QAction* resetAction = menu->addAction(tr("Reset to defaults"), this, [this]() { + menu->addAction(tr("Reset to defaults"), this, [this]() { for (int i = 0, count = tree_view->header()->count(); i < count; ++i) { SetColumnDefaults(); } // SaveSettings(); }); menu->popup(QCursor::pos()); - (void)(resetAction); } void AnimeListPage::DisplayListMenu() { @@ -312,7 +311,7 @@ animes.insert(anime); } - QAction* action = menu->addAction(tr("Information"), [this, animes] { + menu->addAction(tr("Information"), [this, animes] { for (auto& anime : animes) { InformationDialog* dialog = new InformationDialog( *anime, [this, anime] { UpdateAnime(anime->GetId()); }, this); @@ -323,7 +322,7 @@ } }); menu->addSeparator(); - action = menu->addAction(tr("Delete from list..."), [this, animes] { + menu->addAction(tr("Delete from list..."), [this, animes] { for (auto& anime : animes) { RemoveAnime(anime->GetId()); } @@ -387,7 +386,6 @@ InitBasicStyle(option); - // int exth = style()->pixelMetric(QStyle::PM_TabBarBaseHeight, nullptr, this); QSize t(0, tree_view->frameWidth()); if (tab_bar->isVisibleTo(this)) { t = tab_bar->sizeHint(); @@ -421,12 +419,6 @@ tab_bar = new QTabBar(this); tab_bar->setExpanding(false); tab_bar->setDrawBase(false); - tab_bar->setAutoFillBackground(true); - - if (parent) { - QPalette pal(parent->palette()); - setPalette(pal); - } /* Tree view... */ QWidget* tree_widget = new QWidget(this);