From 69aba23d2c908b96c85ca6de02b0262e296285bb Mon Sep 17 00:00:00 2001 From: Michael Harding Date: Thu, 1 Mar 2018 16:32:11 -0500 Subject: [PATCH] Fix Button style --- .../spark/core/FontsAndColors/BTSColors.cs | 14 +++---- src/client/spark/view/Resources/Buttons.xaml | 40 ++++++++++++++----- 2 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/client/spark/core/FontsAndColors/BTSColors.cs b/src/client/spark/core/FontsAndColors/BTSColors.cs index e62e084c8..6f3c11fca 100644 --- a/src/client/spark/core/FontsAndColors/BTSColors.cs +++ b/src/client/spark/core/FontsAndColors/BTSColors.cs @@ -425,8 +425,8 @@ namespace mbts.ui // Pressed public static BTSColor pressed_background { get { return new BTSColor(0xaa); } } - public static BTSColor pressed_border { get { return normal_border; } } - public static BTSColor pressed_foreground { get { return normal_foreground; } } + public static BTSColor pressed_border { get { return mouseover_border; } } + public static BTSColor pressed_foreground { get { return mouseover_foreground; } } // Disabled @@ -437,8 +437,8 @@ namespace mbts.ui // Focused public static BTSColor focused_background { get { return mouseover_background; } } - public static BTSColor focused_border { get { return normal_border; } } - public static BTSColor focused_foreground { get { return normal_foreground; } } + public static BTSColor focused_border { get { return mouseover_border; } } + public static BTSColor focused_foreground { get { return mouseover_foreground; } } // Unfocused @@ -464,9 +464,9 @@ namespace mbts.ui // IsDefault - public static BTSColor IsDefault_focused_background { get { return normal_background; } } - public static BTSColor IsDefault_focused_border { get { return normal_border; } } - public static BTSColor IsDefault_focused_foreground { get { return normal_foreground; } } + public static BTSColor IsDefault_background { get { return accent1; } } + public static BTSColor IsDefault_border { get { return new BTSColor(0); } } + public static BTSColor IsDefault_foreground { get { return normal_foreground; } } } diff --git a/src/client/spark/view/Resources/Buttons.xaml b/src/client/spark/view/Resources/Buttons.xaml index 90441ea13..846dae9b6 100644 --- a/src/client/spark/view/Resources/Buttons.xaml +++ b/src/client/spark/view/Resources/Buttons.xaml @@ -472,24 +472,42 @@ - - + SnapsToDevicePixels="True"> + - + + + + + - - + + - + + + + + + + + + + @@ -498,8 +516,8 @@ - - + +