-
Notifications
You must be signed in to change notification settings - Fork 18
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
Styling multi-window parent buttons separately from single window taskbar buttons #150
Comments
There's no such selector, but have you looked into visual states? You can start from reading about them in the mod's description, and then looking at examples in existing themes. |
Thanks. Experimented a bit with those. Looking at UWPSpy's Visual states tab it looks like the visual states seem to only be supported on the inner Judging from But did see that Targets I tried:
And the styles tried:
But none affected the width value (per UWPSpy) which remained at Am I missing something with how to affect with the button dimensions/why width isn't being changed for this element? Initially I would have thought Edit: tried |
Bit of progress. Styling the Though it's a bit of a step back in terms of being able to adjust the multi-window parent margin separately, since if changing the parent margin one loses the distinguishing single vs multi-window selector, while if instead one changes the margins via the child The main problem is in W8.1/W10 the vertical taskbar multi-window indicator is positioned to the sides of the button, rather than beneath it, so it avoids any issue with inter-button spacing/margins, eg: Current W11 style: Tried adding |
I'm attempting to style the taskbar buttons similarly to how I had them in W8.1 and W10, with minimal margins between the buttons and minimal padding. I'm starting from the
None
theme basis in the mod's settings and adding custom styles.I've been able to adjust the button margins using a target of
Taskbar.TaskListButton
with a style of:And adjust the icon position within the buttons via a target of
Taskbar.TaskListButton#TaskListButton > Taskbar.TaskListLabeledButtonPanel#IconPanel > Windows.UI.Xaml.Controls.Image#Icon
and a style of:However when a taskbar button has multiple windows it adds those extra UI bars beneath the taskbar button to indicate there are multiple windows, which get truncated/hidden when forcing the
Width
(height, when rotated via the vertical taskbar mod) above. So it'd be nice if such buttons could have a separate width applied (or similar).I can see in UWPSpy that such multi-window buttons have an inner element that indicates it's a multi-window button (
Windows.UI.Xaml.Controls.Border#MultiWindowElement
) but not sure what (if any) selector can be used to target parent buttons that contain an element within them, to be able to style it separately.Any pointers would be appreciated.
GIF showing toggling the
Width
value to show how multi-window buttons have the bars truncated:The text was updated successfully, but these errors were encountered: