Add support for `IsCritical` styling on the context menu
originally filed by @zadjii-msft
IsCritical is our "this action is destructive" property.
Items with that set should have red (or other warning color) text
comment from @niels9001
Do we have an example for this? E.g. uninstalling an app or deleting a file?comment from @zadjii-msft
@niels9001 I think this is a chicken & egg problem where "it wasn't supported yet" -> none of the extensions used it yet
But I'd guess the
- "kill process" in window walker
- "uninstall" in winget
- the "stop" command on services(?)
should probably all be IsCritical=true.
I can make a quick pass and set that in some places if you want
This issue is specific to the context menu, but should it also apply to primary/secondary commands? /cc @zadjii @niels9001
Figma'd it up.
Ah, what happened?
The devdocs read:
Oh, this. The way in which PowerToys is run unlike all other projects in existence 😆
Hey, the fact that there is a process makes it leaps and bounds better than other projects. 😄