| 72 | } |
| 73 | |
| 74 | void NoLibrariesWidget::applyTheme(const Theme &theme) |
| 75 | { |
| 76 | auto nlwTheme = theme.noLibrariesWidget; |
| 77 | |
| 78 | QPalette p(palette()); |
| 79 | p.setColor(QPalette::Window, nlwTheme.backgroundColor); |
| 80 | setPalette(p); |
| 81 | |
| 82 | QPalette textPalette = text->palette(); |
| 83 | textPalette.setColor(QPalette::WindowText, nlwTheme.textColor); |
| 84 | text->setPalette(textPalette); |
| 85 | |
| 86 | QPalette descPalette = textDescription->palette(); |
| 87 | descPalette.setColor(QPalette::WindowText, nlwTheme.descriptionTextColor); |
| 88 | textDescription->setPalette(descPalette); |
| 89 | |
| 90 | iconLabel->setPixmap(nlwTheme.noLibrariesIcon); |
| 91 | lineLabel->setPixmap(nlwTheme.noLibrariesLinePixmap); |
| 92 | } |