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

Method applyTheme

YACReaderLibrary/no_libraries_widget.cpp:74–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void 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}

Callers

nothing calls this directly

Calls 2

setPixmapMethod · 0.80
setColorMethod · 0.45

Tested by

no test coverage detected