fix: movieinfo style
Change-Id: I496887df1b88d4b24649ac8c2e69695bc228daf7
Sian Cao
6 years ago
43 | 43 | setFixedWidth(320); |
44 | 44 | setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint); |
45 | 45 | |
46 | DThemeManager::instance()->registerWidget(this); | |
47 | ||
48 | 46 | auto layout = new QVBoxLayout(this); |
49 | 47 | layout->setSpacing(0); |
50 | 48 | layout->setContentsMargins(0, 0, 0, 10); |
55 | 53 | layout->addWidget(closeBt, 0, Qt::AlignTop | Qt::AlignRight); |
56 | 54 | layout->addSpacing(26); |
57 | 55 | connect(closeBt, &DWindowCloseButton::clicked, this, &DAbstractDialog::hide); |
58 | closeBt->setStyleSheet(DThemeManager::instance()->getQssForWidget("DWindowCloseButton", "light")); | |
59 | 56 | |
60 | 57 | const auto& mi = pif.mi; |
61 | 58 | |
130 | 127 | #undef ADD_ROW |
131 | 128 | |
132 | 129 | ml->addSpacing(16); |
130 | ||
131 | #if DTK_VERSION > DTK_VERSION_CHECK(2, 0, 6, 0) | |
132 | DThemeManager::instance()->setTheme(this, "light"); | |
133 | DThemeManager::instance()->setTheme(closeBt, "light"); | |
134 | #else | |
135 | DThemeManager::instance()->registerWidget(this); | |
136 | closeBt->setStyleSheet(DThemeManager::instance()->getQssForWidget("DWindowCloseButton", "light")); | |
137 | #endif | |
133 | 138 | } |
134 | 139 | } |