| 139 | } |
| 140 | |
| 141 | void YACReaderTitledToolBar::applyTheme(const Theme &theme) |
| 142 | { |
| 143 | auto sidebarTheme = theme.sidebar; |
| 144 | |
| 145 | nameLabel->setColor(sidebarTheme.titleTextColor); |
| 146 | nameLabel->setDropShadowColor(sidebarTheme.titleDropShadowColor); |
| 147 | nameLabel->update(); |
| 148 | |
| 149 | busyIndicator->setColor(sidebarTheme.busyIndicatorColor); |
| 150 | |
| 151 | QString qss = QString("QWidget {background-color:%1;}").arg(sidebarTheme.separatorColor.name()); |
| 152 | for (auto separator : separators) { |
| 153 | separator->setStyleSheet(qss); |
| 154 | } |
| 155 | } |
nothing calls this directly
no test coverage detected