Skip to content

Commit e9a373a

Browse files
Update.
1 parent fc5d5ab commit e9a373a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Windows.Forms/System/Windows/Forms/Controls/Buttons/ButtonInternal/DarkMode/FlatButtonDarkModeRenderer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace System.Windows.Forms;
1616
/// </summary>
1717
internal sealed class FlatButtonDarkModeRenderer : ButtonDarkModeRendererBase
1818
{
19-
private const int FocusIndicatorInflate = -2;
19+
private const int FocusIndicatorInflate = -3;
2020
private const int CornerRadius = 6;
2121
private static readonly Size s_corner = new(CornerRadius, CornerRadius);
2222

@@ -110,7 +110,7 @@ private static Color GetBorderColor(PushButtonState state) =>
110110
state switch
111111
{
112112
PushButtonState.Pressed => DefaultColors.PressedSingleBorderColor,
113-
PushButtonState.Hot => DefaultColors.HoverBackColor,
113+
PushButtonState.Hot => DefaultColors.SingleBorderColor,
114114
PushButtonState.Disabled => DefaultColors.DisabledBorderLightColor,
115115
_ => DefaultColors.SingleBorderColor,
116116
};

0 commit comments

Comments
 (0)