-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Dark Themes use LightMinButtonStyle, LightMaxButtonStyle and LightCloseButtonStyle for WindowButtonCommands #3623
Comments
punker76
added a commit
that referenced
this issue
Oct 29, 2019
This enumeration helps us to check for light and dark themes.
punker76
added a commit
that referenced
this issue
Oct 29, 2019
…ndowButtonCommands - Add new brush `MahApps.Brushes.WindowButtonCommands.HoverBackground` - Add new style `MahApps.Styles.WindowCommands.Base` - Derive style `MahApps.Styles.WindowCommands.Clean` from `MahApps.Styles.WindowCommands.Base` - Add new style `MahApps.Styles.WindowButtonCommands.Base` - Derive style `MahApps.Styles.WindowButtonCommands.Clean` from `MahApps.Styles.WindowButtonCommands.Base` - `MahApps.Styles.MetroWindow.Clean` style doesn't set the `OverrideDefaultWindowCommandsBrush` to `MahApps.Brushes.Black` (it's not necessary anymore) - Add new styles `MahApps.Styles.Button.CleanWindow.Light` and `MahApps.Styles.Button.CleanWindow.Dark` - Fix disabled brush at `WindowCommands` and `WindowButtonCommands` - Set the pressed background of the Min/Max/Restore/Close buttons to `MahApps.Brushes.AccentBase` and the foreground to `MahApps.Brushes.IdealForeground` - Do not set the theme for WindowCommands and WindowButtonCommands by the Foreground. Instead look for the current theme of the application, window or flyout.
punker76
added a commit
that referenced
this issue
Oct 29, 2019
This enumeration helps us to check for light and dark themes.
punker76
added a commit
that referenced
this issue
Oct 29, 2019
…ndowButtonCommands - Add new brush `MahApps.Brushes.WindowButtonCommands.HoverBackground` - Add new style `MahApps.Styles.WindowCommands.Base` - Derive style `MahApps.Styles.WindowCommands.Clean` from `MahApps.Styles.WindowCommands.Base` - Add new style `MahApps.Styles.WindowButtonCommands.Base` - Derive style `MahApps.Styles.WindowButtonCommands.Clean` from `MahApps.Styles.WindowButtonCommands.Base` - `MahApps.Styles.MetroWindow.Clean` style doesn't set the `OverrideDefaultWindowCommandsBrush` to `MahApps.Brushes.Black` (it's not necessary anymore) - Add new styles `MahApps.Styles.Button.CleanWindow.Light` and `MahApps.Styles.Button.CleanWindow.Dark` - Fix disabled brush at `WindowCommands` and `WindowButtonCommands` - Set the pressed background of the Min/Max/Restore/Close buttons to `MahApps.Brushes.AccentBase` and the foreground to `MahApps.Brushes.IdealForeground` - Do not set the theme for WindowCommands and WindowButtonCommands by the Foreground. Instead look for the current theme of the application, window or flyout.
punker76
added a commit
that referenced
this issue
Oct 29, 2019
- Add new style `MahApps.Styles.Button.CleanWindow.Close.Light.Win10` - Add new style `MahApps.Styles.Button.CleanWindow.Close.Dark.Win10` - Add new style `MahApps.Styles.WindowButtonCommands.Clean.Win10`
punker76
added a commit
that referenced
this issue
Oct 30, 2019
amkuchta
pushed a commit
to amkuchta/MahApps.Metro
that referenced
this issue
Nov 19, 2019
This enumeration helps us to check for light and dark themes.
amkuchta
pushed a commit
to amkuchta/MahApps.Metro
that referenced
this issue
Nov 19, 2019
… and WindowButtonCommands - Add new brush `MahApps.Brushes.WindowButtonCommands.HoverBackground` - Add new style `MahApps.Styles.WindowCommands.Base` - Derive style `MahApps.Styles.WindowCommands.Clean` from `MahApps.Styles.WindowCommands.Base` - Add new style `MahApps.Styles.WindowButtonCommands.Base` - Derive style `MahApps.Styles.WindowButtonCommands.Clean` from `MahApps.Styles.WindowButtonCommands.Base` - `MahApps.Styles.MetroWindow.Clean` style doesn't set the `OverrideDefaultWindowCommandsBrush` to `MahApps.Brushes.Black` (it's not necessary anymore) - Add new styles `MahApps.Styles.Button.CleanWindow.Light` and `MahApps.Styles.Button.CleanWindow.Dark` - Fix disabled brush at `WindowCommands` and `WindowButtonCommands` - Set the pressed background of the Min/Max/Restore/Close buttons to `MahApps.Brushes.AccentBase` and the foreground to `MahApps.Brushes.IdealForeground` - Do not set the theme for WindowCommands and WindowButtonCommands by the Foreground. Instead look for the current theme of the application, window or flyout.
amkuchta
pushed a commit
to amkuchta/MahApps.Metro
that referenced
this issue
Nov 19, 2019
- Add new style `MahApps.Styles.Button.CleanWindow.Close.Light.Win10` - Add new style `MahApps.Styles.Button.CleanWindow.Close.Dark.Win10` - Add new style `MahApps.Styles.WindowButtonCommands.Clean.Win10`
amkuchta
pushed a commit
to amkuchta/MahApps.Metro
that referenced
this issue
Nov 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Window button commands (minimize, maximize, close) are all using light button styles (
MahApps.Styles.Button.MetroWindow.Light
) instead of the dark (MahApps.Styles.Button.MetroWindow.Dark
)To Reproduce
Steps to reproduce the behavior:
MetroWindow
and overrides no stylesExpected behavior
Dark themes should use dark styles for all controls (including WindowCommandButtons).
Screenshots
Without my workaround:
Inspecting PART_Min (button):
With my workaround:
Inspecting PART_Min (button):
Environment(please complete the following information):
Workaround
I am able to work around this issue by adding the following to my App.xaml for now:
The text was updated successfully, but these errors were encountered: