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
Customizing tasks background: Differentiate tasks state (not opened, flashing, minimized, hover) #3
Comments
From the visual states listed in the XAML file which is linked in the mod description, you can find the following visual state group for
Which has the following states:
That's a quick reply, I didn't have time to test it yet. Try it and let me know whether it addresses you questions. |
I've tried Background@ActiveNormal=#5000F000 and a lot of them, but it doesn't work (whereas Background=#5000F000 works). |
Yes, you must specify the visual state group,
Without specifying the visual state group in the target, adding a visual state in the styles has no effect. |
Thanks for the info. Unfortunately, with this method, style is applied as soon as I save it in Windhawk, it does not consider states (like if I didn't put @RequestingAttention in the line). |
Post you target and the list of styles. |
Try this:
|
Thank you, it works with your solution. Some example: Target: taskbar:TaskListLabeledButtonPanel@CommonStates > Border#BackgroundElement RequestingAttention is for flashing windows like anticipated. It works very well. I've tried to search for "hover" for SystemTray icons, but I didn't manage to succeed, despite spending hours on UWPSpy and SystemTrayResources.xbf. If you find something, I'm interested, but I guess it's another issue so I'll open it in the future if necessary. |
For the ControlCenterButton and Clock/NotificationCenterButton Target: Styles Unfortunately the visual state groups for everything else in the SystemTray are unnamed making them impossible to style based on visual state, unless support is added for unnamed visual state groups. |
@Imold interesting, I didn't know that there are unnamed visual state groups. Can you try forking the mod and removing the following two lines: (removed) Edit: I see that it requires more changes. Please try this version: Let me know whether it works, if it is, I'll make the change in the mod for the next version. |
@m417z It works. :) |
Happy New Year! @Imold A slightly delayed update: the 1.2.3 update contains support for unnamed visual state groups. Also, if you guys have anything interesting to show, post it and perhaps I'll add it to the themes section in the guide. |
I will put a screenshot if someone had questions, but thanks to WH, we can do some things that were only possible with Litestep shell back in the old time... In this screenshot, I have what looks like a bug/limitation: "UWPSpy" tasks don't have a background despite having a generic "Background" for backup in case I would enter in no "CommonStates". Why UWPSpy only ? Can't tell, these are the only tasks for which I noticed this behavior. Here is the code concerning this item: For systray, I have nothing particular, just the "hover" which works well (but needs generic background to avoid a visual glitch). Here are my complete settings in case some would be interested. Or in JSON format that can be imported in the mod's advanced tab: (added by @m417z) |
There's a known limitation: UWPSpy and the mod conflict with each other, and when one of them is activated, the other stops receiving notifications about elements. Perhaps that's what causes the issue. Try restarting explorer, and let me know if you see it in a session in which UWPSpy wasn't used. Regarding the settings, thanks, it's cool but I think it's too specific for a theme entry. Still, somebody who stumbles upon it here may find it useful. |
OK, thanks for information, like I said, I only saw it with UWPSpy so I'm OK with the explanation. |
Thanks for the nice guide, taskbar is always improving.
I know we can change background of tasks thanks to
Target: taskbar:TaskListLabeledButtonPanel > Border#BackgroundElement
(style: Background=#5000F000)
Is there a way to have different background for
?
The text was updated successfully, but these errors were encountered: