-
Notifications
You must be signed in to change notification settings - Fork 15
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
Visual States Question #99
Comments
Use UWPSpy to find another target you can use when needed, and also to find whatever visual states that target supports. Not every target supports common states, and some have their own unique visual states. |
@bbmaster123 Thanks for your reply. I already am using Written in green are the visual states that can be achieved using either Written in red are the visual states that can ONLY be achieved using one of the visual states or another. They are mutually exclusive. There is no equivalent to |
To be more precise, you can only use one visual state per object and property. For example, This can provide more room for creative solutions. The problem with defining the same object and property for different visual states is that they'll override each other. For example, if you define a red border for |
@m417z Thanks for the idea! I was able to adjust Background using Background color is "enabled" by Opacity is increased and decreased on different states of visualStates2.mp4It's still not perfect, not sure how I feel about the current opacity values. Multi-Window programs do not have a distinct active vs. inactive visual state for hovered & pressed, which makes it difficult to have consistency with the other programs without removing the distinction between active vs. inactive in all programs, regardless if it is multi-window or not. (You can see how I would appreciate some feedback on how it looks so far. |
Looks like I never replied. I think it looks great! If you're considering to submit it, go ahead, it'll also be an opportunity for a mod update after adding your theme. |
I would submit it, but how would it work since it requires multiple mods and configurations? If you only use "Windows 11 Taskbar Styler" and not "Taskbar height and icon size", it looks like this: For people selecting the theme through the integrated list in the mod, there is no way to communicate that another mod is needed for the correct look. |
I also have a version for the vertical taskbar, but that's another can of worms. |
Looks pretty good to me. In any case, you can specify additional requirements or recommendations in the theme's readme page, for example: Not all users will notice it or will go read it, but some will. I can also append something like "ThemeName (see readme for recommended configuration)" to the name that's displayed in the mod's combobox if you prefer. Regarding vertical taskbar, yeah, I assume it's a different set of styles. It can be included as a variant to be imported manually in the readme, like it's done here: |
Something strange is happening, a border is being applied when a non running program is hovered over. I think its the border applied by default, but I cannot figure out how to change it besides getting rid of it entirely or changing its I originally made the guess that it is applied by the I tried to experiment with UWPSpy but I couldn't figure out a way to modify this border. I wanted to have the border appear when non running programs are hovered, since changing the background color would not be possible given visual state limitations. The border looks mediocre right now though, and I wanted to figure out how to change its color or something. Styles.mp4 |
I also changed the start button size to be 24px, not sure if it looks better compared to the previous 32px. |
That's
You can't with the styler rules, but the taskbar might have its own logic. |
Can you use visual states if they are unnamed? If it is possible I cannot figure out how. Tray icon element in UWPSpy for reference.
Yeah, it appears to be. I cannot find a way to style it without overriding borders set by visual state styles, so I guess I'll leave it be. |
I didn't know there can be more than one. It's supported, but only the first one will be picked up. For example:
I hope that the iteration order is consistent, and that the visual state group that you need is the first one. Otherwise, it's not supported and it's also not straightforward to add support to it, as there's no straightforward way to identify each visual state. |
The first one is the one I need, looks like I got lucky. I'll try it when I get the chance. |
I am currently making a modern Windows 7/8 taskbar design, which uses different backgrounds in place of the running indicators. To change the background when the program is active, inactive, or requesting attention, I am using
RunningIndicatorStates
as the Visual State.This causes the issue that I cannot use the regular
CommonStates
to change the background on hover, when pressed, etc. I tried to switch from usingRunningIndicatorStates
toCommonStates
, but there is no state for when the program is not running. TheInactiveNormal
state is not equal to theInactiveRunningIndicator
state, asInactiveNormal
is applied whether a program is running or not. This causes all taskbar buttons to look like they are running.Only Firefox and Windhawk are running in this screenshot
I want to be able to make use of
CommonStates
more versatile states while also excluding non-running programs from having a background when not hovered over or pressed. I couldn't find a way to make this work, as you can only use one visual state per object, so I thought to ask the experts ;)The text was updated successfully, but these errors were encountered: