Mercurial > minori
comparison src/gui/window.cc @ 103:621084cc542c
resources: add icons
also remove ye olde qdarkstyle, as it's not even used anymore
there's more configuring to OS X bundles now as well, along with
more version info on Windows
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Fri, 03 Nov 2023 22:52:41 -0400 |
| parents | b315f3759c56 |
| children | 6d8da6e64d61 |
comparison
equal
deleted
inserted
replaced
| 102:b315f3759c56 | 103:621084cc542c |
|---|---|
| 55 reinterpret_cast<AnimeListPage*>(stack->widget(static_cast<int>(Pages::ANIME_LIST)))->Refresh(); | 55 reinterpret_cast<AnimeListPage*>(stack->widget(static_cast<int>(Pages::ANIME_LIST)))->Refresh(); |
| 56 }); | 56 }); |
| 57 } | 57 } |
| 58 | 58 |
| 59 MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { | 59 MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) { |
| 60 setWindowIcon(QIcon(":/favicon.png")); | |
| 61 | |
| 60 main_widget = new QWidget(parent); | 62 main_widget = new QWidget(parent); |
| 61 | 63 |
| 62 sidebar = new SideBar(main_widget); | 64 sidebar = new SideBar(main_widget); |
| 63 sidebar->AddItem(tr("Now Playing"), SideBar::CreateIcon(":/icons/16x16/film.png")); | 65 sidebar->AddItem(tr("Now Playing"), SideBar::CreateIcon(":/icons/16x16/film.png")); |
| 64 sidebar->AddSeparator(); | 66 sidebar->AddSeparator(); |
