|
24 | 24 |
|
25 | 25 | <busyIndicator:BusyMask x:Name="BusyIndicator" IsBusy="{Binding IsLoading}" IndicatorType="Cogs" BusyContent="Please wait..." BusyContentMargin="0,20,0,0" IsBusyAtStartup="False"> |
26 | 26 | <Grid> |
27 | | - <TextBlock TextWrapping="Wrap" Text="0" VerticalAlignment="Top" FontFamily="Comic Sans MS" Loaded="TextBlock_Loaded" Foreground="Transparent" /> |
| 27 | + <TextBlock TextWrapping="Wrap" Text="0" VerticalAlignment="Top" FontFamily="Comic Sans MS" Foreground="Transparent" /> |
28 | 28 | <Grid> |
29 | 29 | <Grid.RowDefinitions> |
30 | 30 | <RowDefinition Height="*" /> |
|
38 | 38 | <DockPanel Margin="0,0,2.5,0"> |
39 | 39 | <Grid DockPanel.Dock="Top"> |
40 | 40 | <Rectangle Grid.Row="1" Fill="#FFECECEC" Height="24" /> |
41 | | - <CheckBox x:Name="editCheckBox" VerticalAlignment="Center" Grid.Row="1" Content="{DynamicResource edit}" Click="EditCheckBox_Click" Foreground="Black" BorderBrush="#FF323232" Style="{StaticResource MaterialDesignDarkCheckBox}" IsChecked="True" /> |
| 41 | + <CheckBox x:Name="editCheckBox" VerticalAlignment="Center" Grid.Row="1" Content="{DynamicResource editLayout}" Click="EditCheckBox_Click" Foreground="Black" BorderBrush="#FF323232" Style="{StaticResource MaterialDesignDarkCheckBox}" IsChecked="True" /> |
42 | 42 | </Grid> |
43 | 43 | <ScrollViewer Background="#FFBBBBBB" PreviewMouseWheel="ScrollViewer_PreviewMouseWheel"> |
44 | 44 | <ItemsControl ItemsSource="{Binding Settings.CurrentLayout.Plugins}"> |
|
75 | 75 | <ColumnDefinition /> |
76 | 76 | <ColumnDefinition /> |
77 | 77 | </Grid.ColumnDefinitions> |
78 | | - <Grid Grid.Column="0" Margin="{StaticResource DefaultMargin}" HorizontalAlignment="Stretch"> |
79 | | - <Grid.ColumnDefinitions> |
80 | | - <ColumnDefinition Width="Auto" /> |
81 | | - <ColumnDefinition Width="*" /> |
82 | | - </Grid.ColumnDefinitions> |
83 | | - <Grid.RowDefinitions> |
84 | | - <RowDefinition Height="Auto" /> |
85 | | - <RowDefinition Height="Auto" /> |
86 | | - <RowDefinition Height="Auto" /> |
87 | | - </Grid.RowDefinitions> |
88 | | - |
89 | | - <TextBlock Text="Display Font: " Grid.Column="0" Grid.Row="0" VerticalAlignment="Center"></TextBlock> |
90 | | - <ComboBox x:Name="fontComboBox" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" SelectionChanged="FontComboBox_SelectionChanged" Margin="0,0,0,5" /> |
91 | | - |
92 | | - <TextBlock Text="Corner Radius: " Grid.Column="0" Grid.Row="1" VerticalAlignment="Center"></TextBlock> |
93 | | - <TextBox x:Name="cornerRadiusTextBox" Grid.Column="1" Grid.Row="1" TextChanged="CornerRadiusTextBox_TextChanged" materialDesign:HintAssist.Hint="Enter a number"> |
94 | | - <materialDesign:TextFieldAssist.CharacterCounterStyle> |
95 | | - <Style TargetType="TextBlock" /> |
96 | | - </materialDesign:TextFieldAssist.CharacterCounterStyle> |
97 | | - </TextBox> |
98 | | - |
99 | | - <TextBlock Text="Margin: " Grid.Column="0" Grid.Row="3" VerticalAlignment="Center"></TextBlock> |
100 | | - <TextBox x:Name="marginTextBox" Grid.Column="1" Grid.Row="3" TextChanged="MarginTextBox_TextChanged" materialDesign:HintAssist.Hint="Enter a number"> |
101 | | - <materialDesign:TextFieldAssist.CharacterCounterStyle> |
102 | | - <Style TargetType="TextBlock" /> |
103 | | - </materialDesign:TextFieldAssist.CharacterCounterStyle> |
104 | | - </TextBox> |
105 | | - </Grid> |
106 | | - <StackPanel Grid.Column="1" Margin="{StaticResource DefaultMargin}" HorizontalAlignment="Stretch"> |
107 | | - <DockPanel Margin="0,0,0,5"> |
108 | | - <Border CornerRadius="1" BorderThickness="1.5" BorderBrush="Gray" Height="23" Width="23" Margin="0,0,5,0"> |
109 | | - <Rectangle x:Name="primaryColorRechtangle" Fill="White" /> |
110 | | - </Border> |
111 | | - <Button Content="Change Primary Color" Height="23" FontSize="12" FontWeight="Regular" Click="ChangePrimaryColorButton_Click" /> |
112 | | - </DockPanel> |
113 | | - <DockPanel Margin="0,0,0,5"> |
114 | | - <Border CornerRadius="1" BorderThickness="1.5" BorderBrush="Gray" Height="23" Width="23" Margin="0,0,5,0"> |
115 | | - <Rectangle x:Name="secondaryColorRechtangle" Fill="White" /> |
116 | | - </Border> |
117 | | - <Button Content="Change Secondary Color" Height="23" FontSize="12" FontWeight="Regular" Click="ChangeSecondaryColorButton_Click" /> |
118 | | - </DockPanel> |
119 | | - <DockPanel> |
120 | | - <Border CornerRadius="1" BorderThickness="1.5" BorderBrush="Gray" Height="23" Width="23" Margin="0,0,5,0"> |
121 | | - <Rectangle x:Name="backgroundColorRechtangle" Fill="White" /> |
122 | | - </Border> |
123 | | - <Button Content="Change Background Color" Height="23" FontSize="12" FontWeight="Regular" Click="ChangeBackgroundColorButton_Click" /> |
124 | | - </DockPanel> |
| 78 | + <ListBox x:Name="themesListBox" Grid.Row="0" Grid.ColumnSpan="1" Margin="{StaticResource DefaultMargin}" ItemsSource="{Binding Settings.Themes}" DisplayMemberPath="Name" SelectedValue="{Binding Settings.CurrentLayout.CurrentThemeName}" SelectedValuePath="Name" /> |
| 79 | + <StackPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" Margin="{StaticResource DefaultMargin}"> |
| 80 | + <Button x:Name="addThemeButton" Margin="0,0,0,5" HorizontalAlignment="Stretch" Click="AddThemeButton_Click" FontWeight="Regular"> |
| 81 | + <StackPanel Orientation="Horizontal"> |
| 82 | + <materialDesign:PackIcon Kind="Add" Margin="0 0 10 0" /> |
| 83 | + <TextBlock Text="{DynamicResource newTheme}" /> |
| 84 | + </StackPanel> |
| 85 | + </Button> |
| 86 | + <Button x:Name="deleteThemeButton" Margin="0,0,0,5" HorizontalAlignment="Stretch" Click="DeleteThemeButton_Click" FontWeight="Regular"> |
| 87 | + <StackPanel Orientation="Horizontal"> |
| 88 | + <materialDesign:PackIcon Kind="DeleteOutline" Margin="0 0 10 0" /> |
| 89 | + <TextBlock Text="{DynamicResource deleteTheme}" /> |
| 90 | + </StackPanel> |
| 91 | + </Button> |
| 92 | + <Button x:Name="changeThemeButton" Margin="0,0,0,5" HorizontalAlignment="Stretch" Click="ChangeThemeButton_Click" FontWeight="Regular"> |
| 93 | + <StackPanel Orientation="Horizontal"> |
| 94 | + <materialDesign:PackIcon Kind="PaletteOutline" Margin="0 0 10 0" /> |
| 95 | + <TextBlock Text="{DynamicResource changeTheme}" /> |
| 96 | + </StackPanel> |
| 97 | + </Button> |
125 | 98 | </StackPanel> |
126 | 99 | <Grid Grid.Row="1" Grid.ColumnSpan="2" VerticalAlignment="Bottom"> |
127 | 100 | <Grid.ColumnDefinitions> |
|
0 commit comments