Skip to content

Commit 86a32b8

Browse files
Merge remote-tracking branch 'origin/UpdateMobileApplicationStyle'
2 parents 5af309b + e868041 commit 86a32b8

21 files changed

Lines changed: 229 additions & 45 deletions

src/Mobile/SimpleIdServer.Mobile/Components/LinkComponent.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
xmlns:local="clr-namespace:SimpleIdServer.Mobile.Components"
66
x:Class="SimpleIdServer.Mobile.Components.LinkComponent"
77
x:Name="this">
8-
<Border Margin="5">
8+
<StackLayout Style="{StaticResource linkComponent}">
99
<StackLayout Orientation="Horizontal" Padding="10,20,10,20">
1010
<Image WidthRequest="20" HeightRequest="20" Source="{Binding Path=Source}" HorizontalOptions="Start"></Image>
1111
<Label Padding="5,0,0,0" HorizontalOptions="StartAndExpand" Text="{Binding Path=Title}"></Label>
@@ -14,5 +14,6 @@
1414
<TapGestureRecognizer Command="{Binding Path=NavigateCommand}" />
1515
</StackLayout.GestureRecognizers>
1616
</StackLayout>
17-
</Border>
17+
<BoxView Style="{StaticResource separator}"></BoxView>
18+
</StackLayout>
1819
</ContentView>

src/Mobile/SimpleIdServer.Mobile/Components/ViewOTPCode.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
<Button Text="Generate" Command="{Binding Path=GenerateHOTPCommand}"></Button>
4343
</StackLayout>
4444
<StackLayout IsVisible="{Binding Path=IsOTPCodeExists, Converter={StaticResource InvertedBoolConverter}}" Padding="10">
45-
<Label Text="Select a one-time password"></Label>
45+
<ContentView Style="{StaticResource noRecord}">
46+
<Image Source="nootp.png" HorizontalOptions="Center" Aspect="AspectFit" />
47+
</ContentView>
48+
<Label Text="Select a one-time password from below to view the result." HorizontalOptions="Center"/>
4649
</StackLayout>
4750
</Grid>
4851
</ContentView.Content>

src/Mobile/SimpleIdServer.Mobile/DidsPage.xaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,32 @@
22
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
xmlns:local="clr-namespace:SimpleIdServer.Mobile.ViewModels"
5+
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
56
x:DataType="local:DidsViewModel"
67
x:Class="SimpleIdServer.Mobile.DidsPage"
78
xmlns:components="clr-namespace:SimpleIdServer.Mobile.Components"
89
xmlns:models="clr-namespace:SimpleIdServer.Mobile.Models"
910
xmlns:common="clr-namespace:SimpleIdServer.Mobile.Common"
1011
Title="DIDs">
12+
<ContentPage.Resources>
13+
<ResourceDictionary>
14+
<toolkit:InvertedBoolConverter x:Key="InvertedBoolConverter"></toolkit:InvertedBoolConverter>
15+
</ResourceDictionary>
16+
</ContentPage.Resources>
1117
<ContentPage.ToolbarItems>
1218
<ToolbarItem Order="Primary" Text="Add" Command="{Binding Path=AddCommand}"></ToolbarItem>
1319
<ToolbarItem Order="Primary" Text="Active" Command="{Binding Path=SetActiveCommand}"></ToolbarItem>
1420
<ToolbarItem Order="Primary" Text="Delete" Command="{Binding Path=DeleteCommand}"></ToolbarItem>
1521
</ContentPage.ToolbarItems>
16-
<Grid Margin="20">
22+
<Grid Padding="20" BackgroundColor="{StaticResource BackgroundColor}">
1723
<common:Loader IsVisible="{Binding Path=IsLoading}" ZIndex="2" />
18-
<CollectionView ItemsSource="{Binding Path=Dids}">
24+
<StackLayout IsVisible="{Binding Path=AtLeastOneDid, Converter={StaticResource InvertedBoolConverter}}" Padding="10">
25+
<ContentView Style="{StaticResource noRecord}">
26+
<Image Source="did.png" HorizontalOptions="Center" Aspect="AspectFit" />
27+
</ContentView>
28+
<Label Text="There is no distributed identity. Click 'Add' to generate a new one." HorizontalOptions="Center"/>
29+
</StackLayout>
30+
<CollectionView IsVisible="{Binding Path=AtLeastOneDid}" ItemsSource="{Binding Path=Dids}">
1931
<CollectionView.ItemTemplate>
2032
<DataTemplate>
2133
<Border Margin="5" x:DataType="models:DidRecord">

src/Mobile/SimpleIdServer.Mobile/EnrollPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<OrientationStateTrigger Orientation="Portrait"></OrientationStateTrigger>
4141
</VisualState.StateTriggers>
4242
<VisualState.Setters>
43-
<Setter Property="BackgroundColor" Value="#E1E1E1" />
43+
<Setter Property="BackgroundColor" Value="{StaticResource BackgroundColor}" />
4444
</VisualState.Setters>
4545
</VisualState>
4646
<VisualState x:Name="Landscape">

src/Mobile/SimpleIdServer.Mobile/InfoPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
44
x:Class="SimpleIdServer.Mobile.InfoPage"
55
Title="Info">
6-
<StackLayout Spacing="5">
6+
<StackLayout Spacing="5" BackgroundColor="{StaticResource BackgroundColor}">
77
<StackLayout Spacing="10" Padding="10">
88
<Label FontAttributes="Bold">URL</Label>
99
<Label>https://github.com/simpleidserver/SimpleIdServer</Label>

src/Mobile/SimpleIdServer.Mobile/ProfilePage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
x:DataType="local:ProfileViewModel"
88
x:Class="SimpleIdServer.Mobile.ProfilePage"
99
Title="Profile">
10-
<Grid>
10+
<Grid BackgroundColor="{StaticResource BackgroundColor}">
1111
<common:Loader IsVisible="{Binding Path=IsLoading}" ZIndex="2" />
1212
<StackLayout Spacing="5">
1313
<StackLayout Spacing="10" Padding="10">

src/Mobile/SimpleIdServer.Mobile/QRCodeScannerPage.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
<Grid ZIndex="1">
2121
<Grid.RowDefinitions>
2222
<RowDefinition Height="*" />
23+
<RowDefinition Height="auto" />
2324
</Grid.RowDefinitions>
2425
<zxing:CameraBarcodeReaderView x:Name="cameraBarCodeReader" Grid.Row="0">
2526
<zxing:CameraBarcodeReaderView.Behaviors>
2627
<toolkit:EventToCommandBehavior EventName="BarcodesDetected" Command="{Binding ScanQRCodeCommand}" EventArgsConverter="{StaticResource barcodeDetectionEventArgsConverter}" />
2728
</zxing:CameraBarcodeReaderView.Behaviors>
2829
</zxing:CameraBarcodeReaderView>
30+
<Button Text="Close" Grid.Row="1" Command="{Binding Path=CloseCommand}"></Button>
2931
</Grid>
3032
</Grid>
3133
</ContentPage>

src/Mobile/SimpleIdServer.Mobile/Resources/Images/did.svg

Lines changed: 7 additions & 0 deletions
Loading

src/Mobile/SimpleIdServer.Mobile/Resources/Images/nocredential.svg

Lines changed: 7 additions & 0 deletions
Loading

src/Mobile/SimpleIdServer.Mobile/Resources/Images/nootp.svg

Lines changed: 7 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)