Skip to content

Commit 1b299ac

Browse files
CopilotVegardHV
andauthored
fix: replace hardcoded sizes in MultiImageCaptureSample with design tokens
Agent-Logs-Url: https://github.com/DIPSAS/DIPS.Mobile.UI/sessions/0b8cb90d-a1f6-417b-94f6-1fb46da4eb83 Co-authored-by: VegardHV <71251242+VegardHV@users.noreply.github.com>
1 parent b992ae1 commit 1b299ac

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/app/Components/ComponentsSamples/ImageCapturing/MultiImageCaptureSample.xaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<Grid x:Name="SelectionView"
1313
RowDefinitions="Auto,Auto,Auto"
1414
VerticalOptions="Center"
15-
Padding="16"
16-
RowSpacing="12">
17-
<Label Grid.Row="0"
18-
Text="Choose mode to test"
19-
HorizontalTextAlignment="Center"
20-
FontSize="18" />
15+
Padding="{dui:Sizes size_4}"
16+
RowSpacing="{dui:Sizes size_3}">
17+
<dui:Label Grid.Row="0"
18+
Text="Choose mode to test"
19+
HorizontalTextAlignment="Center"
20+
Style="{dui:Styles Label=SectionHeader}" />
2121
<Button Grid.Row="1"
2222
x:Name="StartWithoutConfirmationButton"
2323
Text="Without confirmation"
@@ -30,19 +30,19 @@
3030
<Grid x:Name="ResultView"
3131
IsVisible="False"
3232
RowDefinitions="Auto,*,Auto"
33-
Padding="16">
34-
<Label x:Name="ResultLabel"
35-
HorizontalTextAlignment="Center"
36-
FontSize="18"
37-
Margin="0,8" />
33+
Padding="{dui:Sizes size_4}">
34+
<dui:Label x:Name="ResultLabel"
35+
HorizontalTextAlignment="Center"
36+
Style="{dui:Styles Label=SectionHeader}"
37+
Margin="{dui:Thickness Top=size_2, Bottom=size_2}" />
3838
<ScrollView Grid.Row="1">
3939
<VerticalStackLayout x:Name="ImageList"
40-
Spacing="12" />
40+
Spacing="{dui:Sizes size_3}" />
4141
</ScrollView>
4242
<Button Grid.Row="2"
4343
Text="{x:Static localizedStrings:DUILocalizedStrings.Close}"
4444
Clicked="OnCloseClicked"
45-
Margin="0,8,0,0" />
45+
Margin="{dui:Thickness Top=size_2}" />
4646
</Grid>
4747
</Grid>
4848

0 commit comments

Comments
 (0)