Eliminate hardcoded colors from qml to make theming more flexible

This commit is contained in:
luisangelsm
2026-03-07 19:58:24 +01:00
parent d65ce375df
commit 7103d0de3c
13 changed files with 187 additions and 38 deletions

View File

@ -517,6 +517,19 @@ void GridComicsView::applyTheme(const Theme &theme)
// Current comic banner
ctxt->setContextProperty("currentComicBackgroundColor", giv.currentComicBackgroundColor);
// New item indicator, button colors, links, scrollbars, cover borders, shadows
ctxt->setContextProperty("newItemColor", giv.newItemColor);
ctxt->setContextProperty("buttonColor", giv.buttonColor);
ctxt->setContextProperty("buttonTextColor", giv.buttonTextColor);
ctxt->setContextProperty("themeLinkColor", giv.linkColor);
ctxt->setContextProperty("themeLinkColorStr", giv.linkColor.name());
ctxt->setContextProperty("scrollbarColor", giv.scrollbarColor);
ctxt->setContextProperty("scrollbarBorderColor", giv.scrollbarBorderColor);
ctxt->setContextProperty("infoScrollbarColor", giv.infoScrollbarColor);
ctxt->setContextProperty("comicCoverBorderColor", giv.comicCoverBorderColor);
ctxt->setContextProperty("currentComicCoverShadowColor", giv.currentComicCoverShadowColor);
ctxt->setContextProperty("buttonShadowColor", giv.buttonShadowColor);
// Update background config to apply theme cell colors
updateBackgroundConfig();