MCPcopy Create free account
hub / github.com/YACReader/yacreader / applyTheme

Method applyTheme

custom_widgets/yacreader_titled_toolbar.cpp:141–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141void 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}

Callers

nothing calls this directly

Calls 5

setDropShadowColorMethod · 0.80
QStringClass · 0.50
setColorMethod · 0.45
updateMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected