|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" |
| 5 | + xmlns:helpers="clr-namespace:PrettyScreenSHOT.Helpers" |
5 | 6 | Title="Dodaj Tekst" |
6 | 7 | Height="720" |
7 | 8 | Width="540" |
|
26 | 27 |
|
27 | 28 | <!-- Main Content --> |
28 | 29 | <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto"> |
29 | | - <StackPanel Margin="20" Spacing="16"> |
| 30 | + <StackPanel Margin="20" helpers:StackPanelHelper.Spacing="16"> |
30 | 31 |
|
31 | 32 | <!-- Text Input Card --> |
32 | 33 | <ui:Card> |
33 | | - <StackPanel Spacing="8"> |
| 34 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
34 | 35 | <TextBlock x:Name="TextLabel" |
35 | 36 | Text="Text:" |
36 | 37 | FontWeight="SemiBold"/> |
|
44 | 45 |
|
45 | 46 | <!-- Font Settings Card --> |
46 | 47 | <ui:Card> |
47 | | - <StackPanel Spacing="16"> |
| 48 | + <StackPanel helpers:StackPanelHelper.Spacing="16"> |
48 | 49 | <TextBlock Text="Ustawienia czcionki" |
49 | 50 | FontSize="16" |
50 | 51 | FontWeight="SemiBold"/> |
51 | 52 |
|
52 | 53 | <!-- Font Family --> |
53 | | - <StackPanel Spacing="8"> |
| 54 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
54 | 55 | <TextBlock Text="Czcionka:" FontWeight="Medium"/> |
55 | 56 | <ComboBox x:Name="FontFamilyComboBox" |
56 | 57 | SelectionChanged="FontFamilyComboBox_SelectionChanged"/> |
57 | 58 | </StackPanel> |
58 | 59 |
|
59 | 60 | <!-- Font Size --> |
60 | | - <StackPanel Spacing="8"> |
| 61 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
61 | 62 | <TextBlock x:Name="FontSizeTextLabel" |
62 | 63 | Text="Rozmiar czcionki:" |
63 | 64 | FontWeight="Medium"/> |
|
82 | 83 | </StackPanel> |
83 | 84 |
|
84 | 85 | <!-- Text Alignment --> |
85 | | - <StackPanel Spacing="8"> |
| 86 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
86 | 87 | <TextBlock Text="Wyrównanie:" FontWeight="Medium"/> |
87 | | - <StackPanel Orientation="Horizontal" Spacing="12"> |
| 88 | + <StackPanel Orientation="Horizontal" helpers:StackPanelHelper.Spacing="12"> |
88 | 89 | <RadioButton x:Name="AlignLeftRadio" |
89 | 90 | Content="Lewo" |
90 | 91 | GroupName="Alignment" |
|
102 | 103 | </StackPanel> |
103 | 104 |
|
104 | 105 | <!-- Text Style Options --> |
105 | | - <StackPanel Spacing="8"> |
| 106 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
106 | 107 | <TextBlock Text="Styl tekstu:" FontWeight="Medium"/> |
107 | 108 | <WrapPanel Orientation="Horizontal"> |
108 | 109 | <CheckBox x:Name="BoldCheckBox" |
|
132 | 133 |
|
133 | 134 | <!-- Color Settings Card --> |
134 | 135 | <ui:Card> |
135 | | - <StackPanel Spacing="16"> |
| 136 | + <StackPanel helpers:StackPanelHelper.Spacing="16"> |
136 | 137 | <TextBlock Text="Kolory" |
137 | 138 | FontSize="16" |
138 | 139 | FontWeight="SemiBold"/> |
139 | 140 |
|
140 | 141 | <!-- Text Color --> |
141 | | - <StackPanel Spacing="8"> |
| 142 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
142 | 143 | <TextBlock Text="Kolor tekstu:" FontWeight="Medium"/> |
143 | 144 | <ComboBox x:Name="ColorComboBox" |
144 | 145 | SelectedIndex="0" |
|
155 | 156 | </StackPanel> |
156 | 157 |
|
157 | 158 | <!-- Background Color --> |
158 | | - <StackPanel Spacing="8"> |
| 159 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
159 | 160 | <TextBlock Text="Kolor tła (opcjonalnie):" FontWeight="Medium"/> |
160 | 161 | <ComboBox x:Name="BackgroundColorComboBox" |
161 | 162 | SelectedIndex="0" |
|
174 | 175 |
|
175 | 176 | <!-- Stroke Settings Card --> |
176 | 177 | <ui:Card> |
177 | | - <StackPanel Spacing="16"> |
| 178 | + <StackPanel helpers:StackPanelHelper.Spacing="16"> |
178 | 179 | <TextBlock Text="Obramowanie" |
179 | 180 | FontSize="16" |
180 | 181 | FontWeight="SemiBold"/> |
|
186 | 187 | </Grid.ColumnDefinitions> |
187 | 188 |
|
188 | 189 | <!-- Stroke Color --> |
189 | | - <StackPanel Grid.Column="0" Spacing="8" Margin="0,0,12,0"> |
| 190 | + <StackPanel Grid.Column="0" helpers:StackPanelHelper.Spacing="8" Margin="0,0,12,0"> |
190 | 191 | <TextBlock Text="Kolor:" FontWeight="Medium"/> |
191 | 192 | <ComboBox x:Name="StrokeColorComboBox" |
192 | 193 | SelectedIndex="0" |
|
199 | 200 | </StackPanel> |
200 | 201 |
|
201 | 202 | <!-- Stroke Thickness --> |
202 | | - <StackPanel Grid.Column="1" Spacing="8" MinWidth="140"> |
| 203 | + <StackPanel Grid.Column="1" helpers:StackPanelHelper.Spacing="8" MinWidth="140"> |
203 | 204 | <TextBlock Text="Grubość:" FontWeight="Medium"/> |
204 | 205 | <Grid> |
205 | 206 | <Grid.ColumnDefinitions> |
|
226 | 227 |
|
227 | 228 | <!-- Preview Card --> |
228 | 229 | <ui:Card> |
229 | | - <StackPanel Spacing="8"> |
| 230 | + <StackPanel helpers:StackPanelHelper.Spacing="8"> |
230 | 231 | <TextBlock x:Name="PreviewLabel" |
231 | 232 | Text="Podgląd:" |
232 | 233 | FontWeight="SemiBold"/> |
|
249 | 250 | <!-- Action Buttons --> |
250 | 251 | <StackPanel Orientation="Horizontal" |
251 | 252 | HorizontalAlignment="Right" |
252 | | - Spacing="8" |
| 253 | + helpers:StackPanelHelper.Spacing="8" |
253 | 254 | Margin="0,8,0,0"> |
254 | 255 | <ui:Button x:Name="OkButton" |
255 | 256 | Content="OK" |
|
0 commit comments