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

[WIP] Win10 ToggleSwitch #2410

Merged
merged 12 commits into from
Mar 10, 2016
Merged

[WIP] Win10 ToggleSwitch #2410

merged 12 commits into from
Mar 10, 2016

Conversation

punker76
Copy link
Member

@punker76 punker76 commented Mar 8, 2016

What changed?

  • new win10 toggle switch styles: MahApps.Metro.Styles.ToggleSwitchButton.Win10 and MahApps.Metro.Styles.ToggleSwitch.Win10
  • new metro toggle switch styles MahApps.Metro.Styles.ToggleSwitchButton and MahApps.Metro.Styles.ToggleSwitch
  • fixed broken IsPressed state
  • new brushes for the Win10 style
    MahApps.Metro.Brushes.ToggleSwitchButton.PressedBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OffBorderBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OffMouseOverBorderBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OffDisabledBorderBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OffSwitchBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchDisabledBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchMouseOverBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorMouseOverBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorCheckedBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorPressedBrush.Win10
    MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorDisabledBrush.Win10
  • new keys for all accent colors: AccentBaseColor and AccentBaseColorBrush (full color)

2016-03-10_23h21_25
2016-03-10_23h21_38
2016-03-10_23h22_04
2016-03-10_23h22_28

toggleswitchwin10_finished

new MahApps.Metro.Styles.ToggleSwitchButton.Win10 and MahApps.Metro.Styles.ToggleSwitch.Win10
@punker76 punker76 added this to the 1.3.0 milestone Mar 8, 2016
@punker76 punker76 self-assigned this Mar 8, 2016
punker76 added a commit that referenced this pull request Mar 10, 2016
@punker76 punker76 merged commit 1b39551 into develop Mar 10, 2016
@michaelmairegger
Copy link
Contributor

Nice, is this applied automatically to the application if running under Win10?

@punker76
Copy link
Member Author

@xxMUROxx no

@punker76 punker76 deleted the Win10ToggleSwitch branch March 11, 2016 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants