Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Off" icon (line from upper left to lower right) #95

Open
flensrocker opened this issue Oct 9, 2023 · 1 comment
Open

"Off" icon (line from upper left to lower right) #95

flensrocker opened this issue Oct 9, 2023 · 1 comment

Comments

@flensrocker
Copy link

flensrocker commented Oct 9, 2023

I would like to overlay other icons, which don't have an "off" state, with this "off" icon, so I can visualize any icon as "not on".

My usecase: the priority_high icon

Alternative: an "no_priority" icon which is a strikethrough exclamation point.

@flensrocker
Copy link
Author

I helped myself and created an SVG, which I can use as an Angular Material Icon, to strikethrough other icons.
If anyone is interested, here's the SVG (you have to define a CSS variable with the current background color, to support different themes):

<svg width="24" height="24">
  <g>
    <rect fill="var(--my-background-color)" x="2" y="-1.5" width="23" height="2" transform="translate(3.5, 2) rotate(45)" />
    <rect x="2" y="0" width="23" height="1.75" transform="translate(3.5, 2) rotate(45)" />
  </g>
</svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant