Skip to content
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

Add brushes for checked toggle buttons #455

Merged
merged 1 commit into from
Aug 16, 2017

Conversation

Cubey2019
Copy link
Contributor

Added brushes for checked toggle buttons to the accent resources (including the 'Accent.Template.xaml' and ThemeHelper), and updated the control template to use them. I've copied the original brushes that were being used before, so they should still look the same.

I have however changed the priority of the 'IsPressed' trigger so that pressing a toggle button will always use the pressed brushes regardless of the 'IsChecked' property. This makes it clearer when a checked button is being pressed and fits with how Office 2013+2016 look, but I'm not sure which way looks better so I can undo this change if you'd prefer.

Also change the priority of the 'IsPressed' trigger so that it overrides the other brushes (looks better when clicking a checked button and is how Word 2013+2016 seem to work).
@batzen batzen self-assigned this Aug 16, 2017
@batzen batzen added this to the 6.0.0 milestone Aug 16, 2017
@batzen
Copy link
Member

batzen commented Aug 16, 2017

LGTM
Thanks for contributing!

@batzen batzen merged commit c38e47e into fluentribbon:develop Aug 16, 2017
batzen added a commit that referenced this pull request Aug 16, 2017
@Cubey2019 Cubey2019 deleted the styling branch August 17, 2017 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants