fix(bar): capsule_foreground was not always respected

This commit is contained in:
Lemmy
2026-05-10 22:21:52 -04:00
parent 85162bba4e
commit 017ec486d8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ ColorSpec Widget::widgetForegroundOr(const ColorSpec& fallback) const noexcept {
return *m_widgetForeground;
}
const auto& spec = m_barCapsuleSpec;
if (spec.enabled && spec.foreground.has_value() && shouldShowBarCapsule()) {
if (spec.enabled && spec.foreground.has_value()) {
return *spec.foreground;
}
return fallback;
+2 -2
View File
@@ -73,8 +73,8 @@ public:
// Whether the bar should paint the decorative capsule for this frame (spec enabled + visible ink).
[[nodiscard]] virtual bool shouldShowBarCapsule() const;
// Resolved icon + primary label color: `[widget.*] color` when set, else `capsule_foreground` when the capsule is
// visible, else `fallback` (e.g. colorSpecFromRole(OnSurface)).
// Resolved icon + primary label color: `[widget.*] color` when set, else `capsule_foreground` when capsule styling is
// enabled, else `fallback` (e.g. colorSpecFromRole(OnSurface)).
[[nodiscard]] ColorSpec widgetForegroundOr(const ColorSpec& fallback) const noexcept;
protected: