Skip to content

Commit

Permalink
fix(CalendarView): Adjust Material CalendarView style
Browse files Browse the repository at this point in the history
  • Loading branch information
eriklimakc committed Oct 11, 2023
1 parent acfb64b commit 6ca26d4
Showing 1 changed file with 8 additions and 38 deletions.
46 changes: 8 additions & 38 deletions src/library/Uno.Material/Styles/Controls/v2/CalendarView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@
<Setter Property="PressedForeground"
Value="{ThemeResource CalendarViewPressedForeground}" />
<Setter Property="OutOfScopeForeground"
Value="{ThemeResource CalendarViewOutOfScopeForeground}" />
Value="{ThemeResource OnSurfaceLowBrush}" />
<Setter Property="CalendarItemForeground"
Value="{ThemeResource CalendarViewCalendarItemForeground}" />
<Setter Property="OutOfScopeBackground"
Value="{ThemeResource CalendarViewOutOfScopeBackground}" />
Value="Transparent" />
<Setter Property="CalendarItemBackground"
Value="{ThemeResource CalendarViewCalendarItemRevealBackground}" />
<Setter Property="Foreground"
Value="{ThemeResource OnPrimaryBrush}" />
Value="{ThemeResource OnSurfaceVariantBrush}" />
<Setter Property="Background"
Value="{ThemeResource PrimaryBrush}" />
Value="{ThemeResource SurfaceBrush}" />
<Setter Property="BorderBrush"
Value="{ThemeResource SurfaceBrush}" />
<Setter Property="DayItemFontFamily"
Expand Down Expand Up @@ -146,20 +146,8 @@
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />
<VisualState x:Name="PointerOver">
<VisualState.Setters>
<Setter Target="Text.BorderBrush"
Value="{ThemeResource CalendarViewNavigationButtonBorderBrushPointerOver}" />
<Setter Target="Text.Foreground"
Value="{ThemeResource OnPrimaryMediumBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="Pressed">
<VisualState.Setters>
<Setter Target="Text.Foreground"
Value="{ThemeResource OnPrimaryLowBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="PointerOver" />
<VisualState x:Name="Pressed" />
<VisualState x:Name="Disabled" />
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
Expand Down Expand Up @@ -203,26 +191,8 @@
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualState x:Name="Normal" />

<VisualState x:Name="PointerOver">
<VisualState.Setters>
<Setter Target="Text.BorderBrush"
Value="{ThemeResource CalendarViewNavigationButtonBorderBrushPointerOver}" />
<Setter Target="Text.Foreground"
Value="{ThemeResource OnPrimaryMediumBrush}" />
<Setter Target="DownArrowGlyph.Fill"
Value="{ThemeResource OnPrimaryMediumBrush}" />
</VisualState.Setters>
</VisualState>

<VisualState x:Name="Pressed">
<VisualState.Setters>
<Setter Target="Text.Foreground"
Value="{ThemeResource OnPrimaryLowBrush}" />
<Setter Target="DownArrowGlyph.Fill"
Value="{ThemeResource OnPrimaryLowBrush}" />
</VisualState.Setters>
</VisualState>
<VisualState x:Name="PointerOver" />
<VisualState x:Name="Pressed" />
<VisualState x:Name="Disabled">
<VisualState.Setters>
<Setter Target="DownArrowGlyph.Opacity"
Expand Down

0 comments on commit 6ca26d4

Please sign in to comment.