-
Notifications
You must be signed in to change notification settings - Fork 19
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
Help requested with creating three-frame animated start button #153
Comments
Yes, at least with the solution I had in mind. I'm pretty sure it's possible to add fade animation, but I haven't done something like that in the past, and I'm also not familiar enough with XAML/UWP to assess how difficult would it be to to add such an animation. |
instructions here
Correct, it would just snap to the next state with no animation. The best I understand it, animations are defined in XAML through something they call a storyboard, which itself defines keyframes for an animation, along with instructions for how to animate the frames between keyframes. Here's an bit of the xaml code for the animation when unpausing a task like copying files for example:
There are properties that might be able to help somewhat (transition, transformationmatrix). If you happen to discover anything about animations on your own, please do share with us! cheers |
Here's a quick mock-up I put together. No animations or anything, but it shows what a simple implementation would look like. I uploaded the images to my repository, so they should work with the styler as long as you have an internet connection. {
"controlStyles[0].target": "Taskbar.ExperienceToggleButton#LaunchListButton[AutomationProperties.AutomationId=StartButton] > Taskbar.TaskListButtonPanel@CommonStates > Border#BackgroundElement",
"controlStyles[0].styles[0]": "Background@InactiveNormal:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Normal.png\" />",
"controlStyles[1].target": "Taskbar.ExperienceToggleButton#LaunchListButton[AutomationProperties.AutomationId=StartButton] > Taskbar.TaskListButtonPanel > Microsoft.UI.Xaml.Controls.AnimatedVisualPlayer#Icon",
"controlStyles[1].styles[0]": "Visibility=Collapsed",
"controlStyles[0].styles[1]": "Background@InactivePointerOver:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Hover.png\" />",
"controlStyles[0].styles[2]": "Background@InactivePressed:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Pressed.png\" />",
"controlStyles[2].target": "Taskbar.TaskListButtonPanel#ExperienceToggleButtonRootPanel",
"controlStyles[2].styles[0]": "Padding=0,0,0,0",
"controlStyles[0].styles[3]": "BorderThickness=0",
"controlStyles[0].styles[4]": "Background@ActiveNormal:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Pressed.png\" />",
"controlStyles[0].styles[5]": "Background@ActivePointerOver:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Hover.png\" />",
"controlStyles[0].styles[6]": "Background@ActivePressed:=<ImageBrush Stretch=\"None\" ImageSource=\"https://raw.githubusercontent.com/SandTechStuff/Stuff/refs/heads/main/StartButtons/Pressed.png\" />"
}
StartButton.mp4 |
@SandTechStuff I just post to say a big Thx you for this..., i was trying to to this...,and with zero knowledge i couldn't find a way to do it, so thanks you. You should definitely have more visibility for this i don't think i'm the only one with the author of this post to want to have this change, maybe if @m417z want to put it on the "details" tab of the Windows 11 Taskbar Styler mod crediting you, that would be great of him, anyways thx you |
Thanks for helping out with this. Finding the right targets myself felt like an insurmountable task, so I had already resigned to living with the issue that led to this topic. ramensoftware/windhawk-mods#1342 (comment) Your implementation gave me something to experiment with, though sadly round 1 seems to be a fail. For me at least. So I have to ask: did your test involve Open Shell start menu or did you use only the Win11 start menu? In case it's the first, it's not working on this end. See the video below. No transition of any kind when the start menu is closed. test1.mp4Also, using middle click to bring up the Win11 start menu results in an accurate pressed state. So I'm missing something, doing something wrong, or -most likely- Open Shell still affects the button region, despite not replacing the start button. test2.mp4Close, but not there yet. Side note: In your implementation (styles 0-5) you refer to PointerOver.png, which gives a 404. |
@phenix60 I linked to the comment in the relevant section of the guide. |
No, I do not have OpenShell installed and only tested with the base Windows 11 start menu.
Yeah, it seems OpenShell is still having an effect. It works perfectly fine without it. Maybe OpenShell still puts its own modified start button on the taskbar, but makes it invisible when
My mistake, I guess I read the visual state |
This is probably it. When So I guess this is a dead end for me, since this is not a high priority for the Open Shell devs. They've known about taskbar customizations (including start button) not working properly since Win11 22H2. replace.start.button.unchecked.mp4 |
@m417z
I would definitely like to give this a try, but sadly I have absolutely zero experience when it comes to working with XAML.
So I will have to rely on the help of experienced people, like yourself, to make this happen.
What I have done already is splitting the png into three images: normal, hover and pressed.
Normal:
Hover:
Pressed:
With the right Target and Styles instructions for each of these states, it might be possible to achieve the desired result.
(Windows should allow for it, considering that Start11 supports three-frame animation for the start button.)
If succesful, this is what it should look like -
3framestart.mp4
But before pursuing this, I would value your expert opinion on how this will potentially work out.
Would it result in three different states with no transition effect? If that's going to be the case, it might not be worth the effort.
I guess I should be looking for instructions aimed at things like -
InactiveNormal
InactivePointerOver
InactivePressed
ActiveNormal
ActivePointerOver
ActivePressed
Problem is, I have no idea exactly what to look for. Let alone how to properly address it through Target and Styles.
So I'm hoping you (or others) are willing to help me out by providing the necessary instructions (Target and Styles) that I'll need for this to work.
The text was updated successfully, but these errors were encountered: