@@ -142,9 +142,9 @@ private static void DrawButtonBorder(Graphics graphics, Rectangle bounds, PushBu
142
142
if ( state == PushButtonState . Pressed )
143
143
{
144
144
// In pressed state, invert the 3D effect: highlight bottom/right, shadow top/left
145
- topLeftOuter = DefaultColors . ShadowColor ; // shadow
145
+ topLeftOuter = DefaultColors . HighlightColor ; // shadow
146
146
bottomRightOuter = DefaultColors . HighlightColor ; // highlight
147
- topLeftInner = DefaultColors . ShadowDarkColor ; // deeper shadow
147
+ topLeftInner = DefaultColors . HighlightBrightColor ; // deeper shadow
148
148
bottomRightInner = DefaultColors . HighlightBrightColor ; // brighter highlight
149
149
}
150
150
else if ( state == PushButtonState . Disabled )
@@ -155,9 +155,17 @@ private static void DrawButtonBorder(Graphics graphics, Rectangle bounds, PushBu
155
155
topLeftInner = DefaultColors . DisabledBorderMidColor ;
156
156
bottomRightInner = DefaultColors . DisabledBorderMidColor ;
157
157
}
158
+ else if ( state == PushButtonState . Hot )
159
+ {
160
+ // In pressed/hot state, invert the 3D effect: highlight bottom/right, shadow top/left
161
+ topLeftOuter = DefaultColors . ShadowColor ; // shadow
162
+ bottomRightOuter = DefaultColors . HighlightColor ; // highlight
163
+ topLeftInner = DefaultColors . ShadowDarkColor ; // deeper shadow
164
+ bottomRightInner = DefaultColors . HighlightBrightColor ; // brighter highlight
165
+ }
158
166
else
159
167
{
160
- // Normal/hot : highlight top/left, shadow bottom/right
168
+ // Normal: highlight top/left, shadow bottom/right
161
169
topLeftOuter = DefaultColors . HighlightColor ; // highlight
162
170
bottomRightOuter = DefaultColors . ShadowColor ; // shadow
163
171
topLeftInner = DefaultColors . HighlightBrightColor ; // brighter highlight
0 commit comments