Skip to content

Commit b701614

Browse files
committed
theme: fix disabled menu input gesture color
1 parent be11c30 commit b701614

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<AvaloniaVersion>11.2.0</AvaloniaVersion>
5-
<ClassicAvaloniaVersion>11.2.0.1</ClassicAvaloniaVersion>
5+
<ClassicAvaloniaVersion>11.2.0.2</ClassicAvaloniaVersion>
66
<DockVersion>11.2.0</DockVersion>
77
</PropertyGroup>
88
</Project>

src/Classic.Avalonia.Theme/ClassicTheme.axaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,11 @@
5555
<Style Selector="MenuItem:disabled common|IconRenderer">
5656
<Setter Property="IconStyle" Value="Disabled" />
5757
</Style>
58+
59+
<!-- somehow the shadow color is always black (resource key not found) when the style below was directly in ControlTheme of MenuItem -->
60+
<Style Selector="MenuItem:disabled /template/ TextBlock#PART_InputGestureText">
61+
<Setter Property="Effect">
62+
<DropShadowEffect OffsetX="1" OffsetY="1" Color="{DynamicResource {x:Static common:SystemColors.ControlLightLightColorKey}}" BlurRadius="0" Opacity="1" />
63+
</Setter>
64+
</Style>
5865
</Styles>

0 commit comments

Comments
 (0)