Skip to content

Commit

Permalink
small changes to Color pages (#1670)
Browse files Browse the repository at this point in the history
## Description
Changed one "control" to "card", make every Description end with a
period.

## Motivation and Context
just tweaking

## How Has This Been Tested?
With Visual Studio :)

## Screenshots (if appropriate):

![image](https://github.com/user-attachments/assets/5ccf2c13-dd4a-4c83-a4a5-060cad1b92f8)

## Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)

---------

Co-authored-by: Niels Laute <[email protected]>
  • Loading branch information
Jay-o-Way and niels9001 authored Dec 6, 2024
1 parent bc9f79e commit 96beae3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 46 deletions.
50 changes: 20 additions & 30 deletions WinUIGallery/Controls/DesignGuidance/ColorPageExample.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,31 @@
Background="{ThemeResource GalleryBackgroundBrush}"
mc:Ignorable="d">

<Grid>
<Grid
Margin="0,24,0,12"
Padding="12"
Background="{x:Bind Background, Mode=OneWay}"
BorderBrush="{ThemeResource GalleryBorderBrush}"
BorderThickness="1"
CornerRadius="{StaticResource OverlayCornerRadius}"
RowSpacing="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>

<Grid
<TextBlock
Foreground="{x:Bind Foreground, Mode=OneWay}"
Style="{ThemeResource SubtitleTextBlockStyle}"
Text="{x:Bind Title, Mode=OneWay}" />
<TextBlock
Grid.Row="1"
Margin="0,24,0,0"
Padding="12"
Background="{x:Bind Background, Mode=OneWay}"
BorderBrush="{ThemeResource GalleryBorderBrush}"
BorderThickness="1"
CornerRadius="{StaticResource OverlayCornerRadius}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>

<TextBlock
Margin="0,0,0,12"
Foreground="{x:Bind Foreground, Mode=OneWay}"
Style="{ThemeResource SubtitleTextBlockStyle}"
Text="{x:Bind Title, Mode=OneWay}" />

<TextBlock
Grid.Row="1"
Style="{ThemeResource CaptionTextBlockStyle}"
Text="{x:Bind Description, Mode=OneWay}" />
<ContentPresenter
Grid.Row="2"
Margin="0,12,0,12"
HorizontalAlignment="Center"
Content="{x:Bind ExampleContent, Mode=OneWay}" />
</Grid>
Style="{ThemeResource CaptionTextBlockStyle}"
Text="{x:Bind Description, Mode=OneWay}" />
<ContentPresenter
Grid.Row="2"
HorizontalAlignment="Center"
Content="{x:Bind ExampleContent, Mode=OneWay}" />
</Grid>
</UserControl>
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
<designguidance:ColorPageExample
Title="Card Background"
Background="{ThemeResource SolidBackgroundFillColorQuarternaryBrush}"
Description="Used to create 'cards' - content blocks that live on page and layer backgrounds">
Description="Used to create 'cards' - content blocks that live on page and layer backgrounds.">
<Border
Width="60"
Height="30"
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
BorderThickness="1"
CornerRadius="4" />
CornerRadius="{StaticResource ControlCornerRadius}" />
</designguidance:ColorPageExample>
<Grid Style="{StaticResource GalleryTileGridStyle}">
<Grid.ColumnDefinitions>
Expand Down Expand Up @@ -77,7 +77,7 @@
<designguidance:ColorTile
Background="{ThemeResource SmokeFillColorDefaultBrush}"
ColorBrushName="SmokeFillColorDefaultBrush"
ColorExplanation="Dims backgrounds behind dialogs"
ColorExplanation="Dims the background behind dialogs"
ColorName="Smoke / Default"
ColorValue="#000000 (4D, 30%) " />
</Grid>
Expand All @@ -88,7 +88,7 @@
<designguidance:ColorPageExample
Title="Layer"
Background="{ThemeResource SolidBackgroundFillColorQuarternaryBrush}"
Description="Used on background colors of any material to create layering">
Description="Used on background colors of any material to create layering.">
<Grid
Width="120"
Height="40"
Expand Down Expand Up @@ -232,7 +232,7 @@
Background="{ThemeResource GalleryBackgroundBrush}"
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
BorderThickness="1"
CornerRadius="4" />
CornerRadius="{StaticResource ControlCornerRadius}" />
</designguidance:ColorPageExample>

<Grid Style="{StaticResource GalleryTileGridStyle}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
Grid.Column="1"
Background="#263B50"
ColorBrushName="SystemColorHighlightTextColor"
ColorExplanation="Foreground color for text or UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Foreground color for text or UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Text Color"
ColorValue="#263B50"
Foreground="#8EE3F0"
Expand All @@ -61,7 +61,7 @@
Grid.Column="1"
Background="#8EE3F0"
ColorBrushName="SystemColorHighlightColor"
ColorExplanation="Background or accent color for UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Background or accent color for UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Color"
ColorValue="#8EE3F0"
Foreground="#263B50"
Expand Down Expand Up @@ -146,7 +146,7 @@
Grid.Column="1"
Background="#FFF5E3"
ColorBrushName="SystemColorHighlightTextColor"
ColorExplanation="Foreground color for text or UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Foreground color for text or UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Text Color"
ColorValue="#FFF5E3"
Foreground="#903909"
Expand All @@ -156,7 +156,7 @@
Grid.Column="1"
Background="#903909"
ColorBrushName="SystemColorHighlightColor"
ColorExplanation="Background or accent color for UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Background or accent color for UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Color"
ColorValue="#903909"
Foreground="#FFF5E3"
Expand Down Expand Up @@ -241,7 +241,7 @@
Grid.Column="1"
Background="#212D3B"
ColorBrushName="SystemColorHighlightTextColor"
ColorExplanation="Foreground color for text or UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Foreground color for text or UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Text Color"
ColorValue="#212D3B"
Foreground="#ABCFF2"
Expand All @@ -251,7 +251,7 @@
Grid.Column="1"
Background="#ABCFF2"
ColorBrushName="SystemColorHighlightColor"
ColorExplanation="Background or accent color for UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Background or accent color for UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Color"
ColorValue="#ABCFF2"
Foreground="#212D3B"
Expand Down Expand Up @@ -336,7 +336,7 @@
Grid.Column="1"
Background="#2B2B2B"
ColorBrushName="SystemColorHighlightTextColor"
ColorExplanation="Foreground color for text or UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Foreground color for text or UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Text Color"
ColorValue="#2B2B2B"
Foreground="#D6B4FD"
Expand All @@ -346,7 +346,7 @@
Grid.Column="1"
Background="#D6B4FD"
ColorBrushName="SystemColorHighlightColor"
ColorExplanation="Background or accent color for UI that is in selected, interacted with (hover, pressed), or in progress."
ColorExplanation="Background or accent color for UI that is selected, interacted with (hover, pressed), or in progress."
ColorName="Highlight Color"
ColorValue="#D6B4FD"
Foreground="#2B2B2B"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Background="{ThemeResource CardStrokeColorDefaultBrush}"
ColorBrushName="CardStrokeColorDefaultBrush"
ColorExplanation="Card layer and strokes"
ColorName="Control Stroke / Default"
ColorName="Card Stroke / Default"
ColorValue="#000000 (0F, 6.78%)" />
<designguidance:ColorTile
Grid.Column="1"
Expand Down Expand Up @@ -252,7 +252,7 @@
<designguidance:ColorPageExample
Title="Divider Stroke"
Background="{ThemeResource SolidBackgroundFillColorQuarternaryBrush}"
Description="Used for divider and graphic lines. Theme inverse; dark in light theme and light in dark theme.">
Description="Used for divider and graphic lines.">
<Grid
Width="120"
Height="40"
Expand Down Expand Up @@ -288,7 +288,7 @@
<designguidance:ColorPageExample
Title="Focus Stroke"
Background="{ThemeResource SolidBackgroundFillColorQuarternaryBrush}"
Description="Used for divider and graphic lines. Theme inverse; dark in light theme and light in dark theme..">
Description="Used for divider and graphic lines. Theme inverse; dark in light theme and light in dark theme.">
<Grid
BorderBrush="{ThemeResource FocusStrokeColorOuterBrush}"
BorderThickness="2"
Expand Down

0 comments on commit 96beae3

Please sign in to comment.