Draft: contributor credits

can't populate currently
This commit is contained in:
pizzaboxer 2024-06-21 22:35:37 +01:00
parent 81d7ffe3da
commit 9aa9cd1088
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
3 changed files with 48 additions and 10 deletions

View File

@ -8,7 +8,7 @@
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
x:Name="Control">
<Expander VerticalAlignment="Top" IsExpanded="True" Content="{Binding InnerContent, ElementName=Control}">
<Expander VerticalAlignment="Top" IsExpanded="{Binding IsExpanded, ElementName=Control}" Content="{Binding InnerContent, ElementName=Control}">
<Expander.Header>
<Grid>
<Grid.ColumnDefinitions>

View File

@ -23,6 +23,9 @@ namespace Bloxstrap.UI.Elements.Controls
[ContentProperty(nameof(InnerContent))]
public partial class Expander : UserControl
{
public static readonly DependencyProperty IsExpandedProperty =
DependencyProperty.Register(nameof(IsExpanded), typeof(bool), typeof(Expander));
public static readonly DependencyProperty HeaderIconProperty =
DependencyProperty.Register(nameof(HeaderIcon), typeof(SymbolRegular), typeof(Expander));
@ -32,6 +35,12 @@ namespace Bloxstrap.UI.Elements.Controls
public static readonly DependencyProperty InnerContentProperty =
DependencyProperty.Register(nameof(InnerContent), typeof(object), typeof(Expander));
public bool IsExpanded
{
get { return (bool)GetValue(IsExpandedProperty); }
set { SetValue(IsExpandedProperty, value); }
}
public string HeaderText
{
get { return (string)GetValue(HeaderTextProperty); }

View File

@ -76,13 +76,48 @@
<TextBlock Text="{x:Static resources:Strings.Menu_About_Contributors}" FontWeight="Medium" FontSize="20" Margin="0,16,0,0" />
<TextBlock Text="{x:Static resources:Strings.Menu_About_Contributors_Description}" TextWrapping="Wrap" Foreground="{DynamicResource TextFillColorTertiaryBrush}" />
<Grid Margin="0,8,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<controls:Expander Grid.Column="0" Margin="0,0,4,0" HeaderIcon="Code24" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_Code}">
<controls:Expander Grid.Row="0" Grid.ColumnSpan="3" Margin="0,0,0,8" HeaderIcon="Translate24" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_Translations}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="English" FontSize="16" FontWeight="Medium" />
<controls:MarkdownTextBlock MarkdownText="[foo bar](https://github.com/bluepilledgreat)" />
</StackPanel>
<StackPanel Grid.Column="1">
<TextBlock Text="English" FontSize="16" FontWeight="Medium" />
<controls:MarkdownTextBlock MarkdownText="[bar foo](https://github.com/bluepilledgreat)" />
</StackPanel>
<StackPanel Grid.Column="2">
<TextBlock Text="English" FontSize="16" FontWeight="Medium" />
<controls:MarkdownTextBlock MarkdownText="[foo foo](https://github.com/bluepilledgreat)" />
</StackPanel>
<StackPanel Grid.Column="3">
<TextBlock Text="English" FontSize="16" FontWeight="Medium" />
<controls:MarkdownTextBlock MarkdownText="[fffffffffffffffff](https://github.com/bluepilledgreat)" />
</StackPanel>
</Grid>
</controls:Expander>
<controls:Expander Grid.Row="1" Grid.Column="0" Margin="0,0,4,0" HeaderIcon="Code24" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_Code}" IsExpanded="True">
<StackPanel>
<controls:MarkdownTextBlock MarkdownText="[Matt](https://github.com/bluepilledgreat)" />
<controls:MarkdownTextBlock MarkdownText="[1011025m](https://github.com/1011025m)" />
@ -96,7 +131,7 @@
</StackPanel>
</controls:Expander>
<controls:Expander Grid.Column="1" Margin="4,0,4,0" HeaderIcon="AppsAddIn28" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_FeatureIdeas}">
<controls:Expander Grid.Row="1" Grid.Column="1" Margin="4,0,4,0" HeaderIcon="AppsAddIn28" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_FeatureIdeas}" IsExpanded="True">
<StackPanel>
<controls:MarkdownTextBlock MarkdownText="[he3als](https://github.com/he3als)" />
<controls:MarkdownTextBlock MarkdownText="[NikSavchenk0](https://github.com/NikSavchenk0)" />
@ -113,13 +148,7 @@
</StackPanel>
</controls:Expander>
<!--<controls:Expander Grid.Column="2" Margin="4,0,4,0" HeaderIcon="Translate24" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_Translations}">
<StackPanel>
<TextBlock Text="lol" />
</StackPanel>
</controls:Expander>-->
<controls:Expander Grid.Column="2" Margin="4,0,0,0" HeaderIcon="Heart16" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_SpecialThanks}">
<controls:Expander Grid.Row="1" Grid.Column="2" Margin="4,0,0,0" HeaderIcon="Heart16" HeaderText="{x:Static resources:Strings.Menu_About_Contributors_SpecialThanks}" IsExpanded="True">
<StackPanel>
<controls:MarkdownTextBlock MarkdownText="[MaximumADHD](https://github.com/MaximumADHD)" />
<controls:MarkdownTextBlock MarkdownText="[Multako](https://www.roblox.com/users/2485612194/profile)" />