[themes] Color with pointers

This commit is contained in:
Laury
2022-02-11 18:41:00 +01:00
parent 84d88a3e8d
commit 63d1e0ee4e
175 changed files with 546 additions and 652 deletions

View File

@@ -23,8 +23,8 @@ void FunctionTitleCell::setBaseline(KDCoordinate baseline) {
void FunctionTitleCell::drawRect(KDContext * ctx, KDRect rect) const {
if (m_orientation == Orientation::VerticalIndicator){
KDColor separatorColor = m_even ? Palette::BackgroundApps : Palette::BackgroundHard;
KDColor backgroundColor = m_even ? Palette::BackgroundHard : Palette::BackgroundApps;
KDColor separatorColor = m_even ? *Palette::BackgroundApps : *Palette::BackgroundHard;
KDColor backgroundColor = m_even ? *Palette::BackgroundHard : *Palette::BackgroundApps;
// Draw the color indicator
ctx->fillRect(KDRect(0, 0, k_colorIndicatorThickness, bounds().height()), m_functionColor);
// Draw the horizontal separator