starlight_help: Display gradient for the idle status icon.

Fixes #35496.

We were displaying a solid color until we figured out how to accurately
display the gradient in the SVG itself.
This commit is contained in:
Shubham Padia
2025-08-19 11:28:44 +00:00
committed by Tim Abbott
parent 72ea340f80
commit 5938f685ad
3 changed files with 27 additions and 2 deletions

View File

@@ -979,6 +979,11 @@ svg_rules = RuleList(
"pattern": r"fill=(['\"])(.*?)\1",
"description": "System icons ignore fill values, so do not include the fill property.",
"include_only": {"web/shared/icons/", "web/images/icons/"},
# This file needs the fill property to define the fill as
# a linear gradient. We cannot define the gradient in CSS
# in a clean way and thus we have decided to define the
# gradient in the SVG itself.
"exclude": {"web/shared/icons/user-circle-idle.svg"},
},
{
"pattern": "fill:",