Skip to content

Commit

Permalink
Added header in Quick Actions (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpeyr committed Feb 21, 2024
1 parent a90c6c5 commit 30845d5
Showing 1 changed file with 44 additions and 5 deletions.
49 changes: 44 additions & 5 deletions ColorPicker/Pages/HomePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,16 +209,33 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Grid.ColumnSpan="2" HorizontalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="../Fonts/#FluentSystemIcons-Filled"
FontSize="24"
Foreground="{DynamicResource AccentColor}"
Text="&#xFD1B;" />
<TextBlock
HorizontalAlignment="Center"
FontSize="14"
FontWeight="Bold"
Text="{x:Static lang:Resources.Contrast}" />
</StackPanel>
<TextBlock
Grid.Row="1"
VerticalAlignment="Center"
FontWeight="Bold"
Text="{x:Static lang:Resources.FirstColor}" />
<Border
Grid.Row="1"
Grid.Column="1"
Width="100"
Margin="5 0"
Expand All @@ -242,12 +259,12 @@
Foreground="{DynamicResource DarkGray}" />
</Border>
<TextBlock
Grid.Row="1"
Grid.Row="2"
VerticalAlignment="Center"
FontWeight="Bold"
Text="{x:Static lang:Resources.SecondColor}" />
<Border
Grid.Row="1"
Grid.Row="2"
Grid.Column="1"
Width="100"
Margin="5 0"
Expand All @@ -272,7 +289,7 @@
</Border>
<Border
x:Name="ContrastBorder"
Grid.Row="2"
Grid.Row="3"
Grid.ColumnSpan="2"
Margin="5"
Padding="5"
Expand All @@ -287,7 +304,7 @@
</Border>
<Button
x:Name="GetContrastBtn"
Grid.Row="3"
Grid.Row="4"
Grid.ColumnSpan="2"
Margin="5"
Padding="3"
Expand Down Expand Up @@ -326,8 +343,28 @@
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Grid.ColumnSpan="2" HorizontalAlignment="Center">
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontFamily="../Fonts/#FluentSystemIcons-Filled"
FontSize="24"
Foreground="{DynamicResource AccentColor}"
Text="&#xF2F6;" />
<TextBlock
HorizontalAlignment="Center"
FontSize="14"
FontWeight="Bold"
Text="{x:Static lang:Resources.GeneratePalette}" />
</StackPanel>
<Border
x:Name="ColorBorder"
Grid.Row="1"
Width="60"
Height="60"
Margin="10"
Expand All @@ -338,9 +375,11 @@
MouseLeftButtonUp="ColorBorder_MouseLeftButtonUp" />
<WrapPanel
x:Name="PalettePanel"
Grid.Row="1"
Grid.Column="1"
HorizontalAlignment="Center"
Orientation="Horizontal" VerticalAlignment="Center" />
VerticalAlignment="Center"
Orientation="Horizontal" />
</Grid>
</Border>
</Popup>
Expand Down

0 comments on commit 30845d5

Please sign in to comment.