small bug fixes

This commit is contained in:
2026-10-11 22:19:34 +02:00
parent c6391a384c
commit 4af7385804
36 changed files with 1558 additions and 399 deletions
+35 -35
View File
@@ -4,10 +4,11 @@
x:Name="RootPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:loc="clr-namespace:cfs_tracker.Helpers"
xmlns:views="clr-namespace:cfs_tracker.Views"
xmlns:viewModels="clr-namespace:cfs_tracker.ViewModels"
x:DataType="viewModels:QuickEntryViewModel"
Title="Eintrag"
Title="{loc:Translate QuickEntry_Title}"
BackgroundColor="{DynamicResource AppBackground}">
<ScrollView>
@@ -30,10 +31,10 @@
StrokeShape="RoundRectangle 14"
IsVisible="{Binding IsPastDate}">
<VerticalStackLayout Spacing="8">
<Label Text="Nachtrag"
<Label Text="{loc:Translate QuickEntry_BackfillTitle}"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<Picker Title="Tageszeit"
<Picker Title="{loc:Translate QuickEntry_DayPartPicker}"
ItemsSource="{Binding Parts}"
ItemDisplayBinding="{Binding Name, x:DataType=viewModels:DayPartOptionItemViewModel}"
SelectedItem="{Binding SelectedPart}" />
@@ -45,15 +46,15 @@
BackgroundColor="{DynamicResource SurfaceBackground}"
StrokeShape="RoundRectangle 14">
<VerticalStackLayout Spacing="8">
<Label Text="Tätigkeit"
<Label Text="{loc:Translate QuickEntry_ActivityLabel}"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<Picker Title="Tätigkeit"
<Picker Title="{loc:Translate QuickEntry_ActivityPicker}"
ItemsSource="{Binding Activities}"
ItemDisplayBinding="{Binding Name, x:DataType=viewModels:ActivityPickerItemViewModel}"
SelectedItem="{Binding SelectedActivity}" />
<Label Text="Dauer (HH:mm)"
<Label Text="{loc:Translate QuickEntry_DurationLabel}"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<TimePicker Time="{Binding ActivityDuration}"
@@ -62,55 +63,54 @@
</Border>
<Border Padding="12"
Stroke="{DynamicResource Border}"
BackgroundColor="{DynamicResource SurfaceBackground}"
StrokeShape="RoundRectangle 14">
Stroke="{DynamicResource Border}"
BackgroundColor="{DynamicResource SurfaceBackground}"
StrokeShape="RoundRectangle 14">
<VerticalStackLayout Spacing="8">
<Label Text="Symptome"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<Label Text="{loc:Translate QuickEntry_SymptomsLabel}"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<VerticalStackLayout BindableLayout.ItemsSource="{Binding Symptoms}"
Spacing="8">
Spacing="8">
<BindableLayout.ItemTemplate>
<DataTemplate x:DataType="viewModels:SelectableSymptomItemViewModel">
<Border Padding="12,10"
StrokeThickness="1"
Stroke="{DynamicResource Border}"
StrokeShape="RoundRectangle 12"
BackgroundColor="{DynamicResource ButtonPrimaryBackground}">
StrokeThickness="1"
Stroke="{DynamicResource Border}"
StrokeShape="RoundRectangle 12"
BackgroundColor="{DynamicResource ButtonPrimaryBackground}">
<Border.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding Source={x:Reference RootPage}, Path=ViewModel.ToggleSymptomCommand, x:DataType=views:QuickEntryPage}"
CommandParameter="{Binding .}" />
<TapGestureRecognizer Command="{Binding Source={x:Reference RootPage}, Path=ViewModel.ToggleSymptomCommand, x:DataType=views:QuickEntryPage}"
CommandParameter="{Binding .}" />
</Border.GestureRecognizers>
<Border.Triggers>
<DataTrigger TargetType="Border"
Binding="{Binding IsSelected}"
Value="True">
Binding="{Binding IsSelected}"
Value="True">
<Setter Property="BackgroundColor"
Value="{DynamicResource ButtonSecondaryBackground}" />
Value="{DynamicResource ButtonSecondaryBackground}" />
</DataTrigger>
</Border.Triggers>
<Grid ColumnDefinitions="Auto,*"
ColumnSpacing="12">
ColumnSpacing="12">
<CheckBox IsChecked="{Binding IsSelected}"
InputTransparent="True"
Color="White"
VerticalOptions="Center" />
InputTransparent="True"
Color="White"
VerticalOptions="Center" />
<Label Grid.Column="1"
Text="{Binding Name}"
VerticalOptions="Center"
TextColor="{DynamicResource ButtonPrimaryText}">
Text="{Binding Name}"
VerticalOptions="Center"
TextColor="{DynamicResource ButtonPrimaryText}">
<Label.Triggers>
<DataTrigger TargetType="Label"
Binding="{Binding IsSelected}"
Value="True">
Binding="{Binding IsSelected}"
Value="True">
<Setter Property="TextColor"
Value="{DynamicResource ButtonSecondaryText}" />
Value="{DynamicResource ButtonSecondaryText}" />
</DataTrigger>
</Label.Triggers>
</Label>
@@ -181,7 +181,7 @@
HorizontalTextAlignment="Center"
TextColor="{DynamicResource TextPrimary}" />
<Button Text="Eintrag speichern"
<Button Text="{loc:Translate QuickEntry_SaveButton}"
Command="{Binding SaveCommand}"
IsEnabled="{Binding CanExplicitSave}"
Style="{StaticResource PrimaryButtonStyle}"
@@ -189,7 +189,7 @@
</VerticalStackLayout>
</Border>
<Button Text="Abbrechen"
<Button Text="{loc:Translate Common_Cancel}"
Command="{Binding CancelCommand}"
Style="{StaticResource SecondaryButtonStyle}"
HorizontalOptions="Fill" />