Skip to content
Open

Heart #217

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum BadgeVariant
RrDev,
Translator,
TranslatorLead,
Heart,
Firestarter_GoldWinner,
Firestarter_SilverWinner,
Firestarter_BronzeWinner,
Expand Down
24 changes: 24 additions & 0 deletions WheelWizard/Views/Components/WhWzLibrary/Badge.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<Border Width="31" Height="31" Margin="5" CornerRadius="999" Background="{StaticResource Neutral900}">
<controls:Badge Variant="TranslatorLead"/>
</Border>
<Border Width="31" Height="31" Margin="5" CornerRadius="999" Background="{StaticResource Neutral900}">
<controls:Badge Variant="Heart"/>
</Border>
<Border Width="31" Height="31" Margin="5" CornerRadius="999" Background="{StaticResource Neutral900}">
<controls:Badge Variant="Firestarter_GoldWinner"/>
</Border>
Expand Down Expand Up @@ -153,6 +156,26 @@
</ControlTemplate>
</Setter>
</Style>

<Style Selector="controls|Badge.Heart">
<Setter Property="Template">
<ControlTemplate>
<Grid RowDefinitions="1*,1*,10*,1*,1*" ColumnDefinitions="1*,1*,10*,1*,1*">
<Border Grid.Row="0" Grid.Column="0"
Grid.ColumnSpan="999" Grid.RowSpan="999" CornerRadius="999"
Background="#FFD1DC"/>

<Border Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="3" CornerRadius="999"
Background="#F0F0EC"/>

<Path Grid.Column="2" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"
Fill="#89F0FF" Data="{StaticResource Heart}"
Height="15"
Stretch="Uniform" />
</Grid>
</ControlTemplate>
</Setter>
</Style>

<!-- FIRESTARTER BADGES -->
<Style Selector="controls|Badge.Firestarter_GoldWinner">
Expand Down Expand Up @@ -279,4 +302,5 @@
</ControlTemplate>
</Setter>
</Style>

</Styles>
1 change: 1 addition & 0 deletions WheelWizard/Views/Components/WhWzLibrary/Badge.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class Badge : TemplatedControl
{ BadgeVariant.RrDev, "Retro Rewind Developer" },
{ BadgeVariant.Translator, "Translator" },
{ BadgeVariant.TranslatorLead, "Translator Lead" },
{ BadgeVariant.Heart, "Heart of the Community" },
// winner badges
{ BadgeVariant.Firestarter_GoldWinner, "Firestarter Tournament Winner" },
{ BadgeVariant.Firestarter_SilverWinner, "Firestarter Tournament Runner-Up" },
Expand Down
Loading