Better naming in some of the theme properties used in qml

This commit is contained in:
luisangelsm
2026-03-07 22:21:18 +01:00
parent 7103d0de3c
commit 27b59ad8a9
11 changed files with 156 additions and 156 deletions

View File

@ -222,7 +222,7 @@ void GridComicsView::updateBackgroundConfig()
const auto &giv = theme.gridAndInfoView;
ctxt->setContextProperty("backgroundColor", useBackgroundImage ? giv.backgroundBlurOverlayColor : giv.backgroundColor);
ctxt->setContextProperty("cellColor", useBackgroundImage ? giv.cellColorWithBackground : giv.cellColor);
ctxt->setContextProperty("selectedColor", giv.selectedColor);
ctxt->setContextProperty("cellSelectedColor", giv.cellSelectedColor);
}
void GridComicsView::showInfo()
@ -494,17 +494,17 @@ void GridComicsView::applyTheme(const Theme &theme)
ctxt->setContextProperty("backgroundColor", giv.backgroundColor);
ctxt->setContextProperty("backgroundBlurOverlayColor", giv.backgroundBlurOverlayColor);
ctxt->setContextProperty("cellColor", giv.cellColor);
ctxt->setContextProperty("selectedColor", giv.selectedColor);
ctxt->setContextProperty("selectedBorderColor", giv.selectedBorderColor);
ctxt->setContextProperty("cellSelectedColor", giv.cellSelectedColor);
ctxt->setContextProperty("cellSelectedBorderColor", giv.cellSelectedBorderColor);
ctxt->setContextProperty("borderColor", giv.borderColor);
ctxt->setContextProperty("titleColor", giv.titleColor);
ctxt->setContextProperty("textColor", giv.textColor);
ctxt->setContextProperty("itemTitleColor", giv.itemTitleColor);
ctxt->setContextProperty("itemDetailsColor", giv.itemDetailsColor);
ctxt->setContextProperty("showDropShadow", QVariant(giv.showDropShadow));
// Info panel colors
ctxt->setContextProperty("infoBackgroundColor", giv.infoBackgroundColor);
ctxt->setContextProperty("infoMetadataTextColor", giv.infoMetadataTextColor);
ctxt->setContextProperty("infoTextColor", giv.infoTextColor);
ctxt->setContextProperty("infoTitleColor", giv.infoTitleColor);
// Rating and favorite colors
ctxt->setContextProperty("ratingUnselectedColor", giv.ratingUnselectedColor);