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

Method setColor

YACReaderLibrary/empty_label_widget.cpp:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void EmptyLabelWidget::setColor(YACReader::LabelColors color)
11{
12 currentColor = color;
13 auto it = theme.emptyContainer.emptyLabelIcons.find(static_cast<int>(color));
14 if (it != theme.emptyContainer.emptyLabelIcons.end()) {
15 setPixmap(it.value());
16 }
17}
18
19void EmptyLabelWidget::applyTheme(const Theme &theme)
20{

Callers 12

OptionsDialogMethod · 0.45
updateColorMethod · 0.45
applyThemeMethod · 0.45
updateBackgroundColorMethod · 0.45
updateConfigMethod · 0.45
BookmarksDialogMethod · 0.45
createCoverBoxMethod · 0.45
applyThemeMethod · 0.45
updateTextColorsMethod · 0.45
applyThemeMethod · 0.45
loadLabelInfoMethod · 0.45
applyThemeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected