refactor: remove ColorProvider::setColor (#5112)

We now either:
1) Rely on the setting updating the color
2) Use ColorProvider::color to set the underlying color
This commit is contained in:
pajlada
2024-01-20 15:51:13 +01:00
committed by GitHub
parent 7951af6104
commit 84a61fdad2
5 changed files with 66 additions and 123 deletions
@@ -103,10 +103,6 @@ void UserHighlightModel::customRowSetData(
// Update the setting with the new value
getSettings()->selfMessageHighlightColor.setValue(
colorName);
// Update the color provider with the new color to be used for future
const_cast<ColorProvider &>(ColorProvider::instance())
.updateColor(ColorType::SelfMessageHighlight,
QColor(colorName));
}
}
}