Skip to content

Commit a72ee35

Browse files
authored
Make Maui shell colors respect theme (#1741)
1 parent 7da6fb2 commit a72ee35

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/MAUI/Maui.Samples/Resources/Styles/Styles.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,13 @@
283283
<Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
284284
</Style>
285285

286-
<Color x:Key="SamplesViewerBannerColor">#7938B6</Color>
286+
<Color x:Key="CalciteBrandColorLight" >#8F53CA</Color>
287+
<Color x:Key="CalciteBrandColorDark">#7938B6</Color>
287288
<Style x:Key="BaseStyle" TargetType="Element">
288-
<Setter Property="Shell.BackgroundColor" Value="{DynamicResource SamplesViewerBannerColor}" />
289-
<Setter Property="Shell.ForegroundColor" Value="White" />
289+
<Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Dark={StaticResource CalciteBrandColorDark}, Light={StaticResource CalciteBrandColorLight}}" />
290+
<Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={AppThemeBinding Dark=White, Light=Black}, Android=White, iOS=White, MacCatalyst=White}" />
290291
<Setter Property="Shell.TitleColor" Value="White" />
291-
<Setter Property="Shell.FlyoutBackground" Value="{DynamicResource SamplesViewerBannerColor}" />
292+
<Setter Property="Shell.FlyoutBackground" Value="{AppThemeBinding Dark={StaticResource CalciteBrandColorDark}, Light={StaticResource CalciteBrandColorLight}}" />
292293
<Setter Property="Shell.FlyoutBehavior" Value="Disabled" />
293294
<Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource LightGray}, Dark={StaticResource DarkGray}}" />
294295
<Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource LightGray}, Dark={StaticResource DarkGray}}" />

0 commit comments

Comments
 (0)