feat: complete UM Trace iOS and field UI integration
This commit is contained in:
35
FieldLogger/Views/Controls/AppStatusBar.xaml
Normal file
35
FieldLogger/Views/Controls/AppStatusBar.xaml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:vm="clr-namespace:FieldLogger.ViewModels"
|
||||
x:Class="FieldLogger.Views.Controls.AppStatusBar"
|
||||
x:DataType="vm:AppStatusViewModel">
|
||||
<Border BackgroundColor="{DynamicResource UlColorSurfaceStrong}"
|
||||
StrokeThickness="0" Padding="12,8">
|
||||
<Grid RowDefinitions="Auto,Auto" RowSpacing="4">
|
||||
<Grid ColumnDefinitions="*,*" ColumnSpacing="12">
|
||||
<HorizontalStackLayout Spacing="6">
|
||||
<Label Text="●" FontSize="13"
|
||||
TextColor="{Binding LocatorState, Converter={StaticResource StateColor}}"
|
||||
VerticalTextAlignment="Center" />
|
||||
<Label Text="{Binding LocatorStatus}" FontSize="12"
|
||||
TextColor="{DynamicResource UlColorOnStrong}"
|
||||
LineBreakMode="TailTruncation" />
|
||||
</HorizontalStackLayout>
|
||||
<HorizontalStackLayout Grid.Column="1" Spacing="6">
|
||||
<Label Text="●" FontSize="13"
|
||||
TextColor="{Binding GnssState, Converter={StaticResource StateColor}}"
|
||||
VerticalTextAlignment="Center" />
|
||||
<Label Text="{Binding GnssStatus}" FontSize="12"
|
||||
TextColor="{DynamicResource UlColorOnStrong}"
|
||||
LineBreakMode="TailTruncation" />
|
||||
</HorizontalStackLayout>
|
||||
</Grid>
|
||||
<Label Grid.Row="1" Text="{Binding PositionSummary}" FontSize="12"
|
||||
FontFamily="{StaticResource UlTypeFamilyMono}"
|
||||
TextColor="{DynamicResource UlColorOnStrong}"
|
||||
LineBreakMode="TailTruncation"
|
||||
SemanticProperties.Description="Current GNSS fix type, estimated accuracy, satellites, and correction age" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</ContentView>
|
||||
Reference in New Issue
Block a user