comparison src/gui/pages/now_playing.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 d43d68408d3c
comparison
equal deleted inserted replaced
104:27455104ea37 105:6d8da6e64d61
106 NowPlayingPage::NowPlayingPage(QWidget* parent) : QFrame(parent) { 106 NowPlayingPage::NowPlayingPage(QWidget* parent) : QFrame(parent) {
107 QVBoxLayout* layout = new QVBoxLayout(this); 107 QVBoxLayout* layout = new QVBoxLayout(this);
108 108
109 setFrameShape(QFrame::Box); 109 setFrameShape(QFrame::Box);
110 setFrameShadow(QFrame::Sunken); 110 setFrameShadow(QFrame::Sunken);
111
112 QPalette pal = QPalette();
113 pal.setColor(QPalette::Window, pal.color(QPalette::Base));
114 setPalette(pal);
115 setAutoFillBackground(true); 111 setAutoFillBackground(true);
116 112
117 stack = new QStackedWidget(this); 113 stack = new QStackedWidget(this);
118 stack->addWidget(new NowPlayingPages::Default(stack)); 114 stack->addWidget(new NowPlayingPages::Default(stack));
119 stack->addWidget(new NowPlayingPages::Playing(stack)); 115 stack->addWidget(new NowPlayingPages::Playing(stack));