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
+24 -24
View File
@@ -3,9 +3,10 @@
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:viewModels="clr-namespace:cfs_tracker.ViewModels"
x:DataType="viewModels:WeekViewModel"
Title="Woche"
Title="{loc:Translate Tab_Week}"
BackgroundColor="{DynamicResource AppBackground}">
<ScrollView>
@@ -16,12 +17,12 @@
Style="{StaticResource PrimaryButtonStyle}"
Command="{Binding PreviousWeekCommand}" />
<Label Grid.Column="1"
Text="{Binding HeaderText}"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
FontSize="20"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
Text="{Binding HeaderText}"
HorizontalTextAlignment="Center"
VerticalTextAlignment="Center"
FontSize="20"
FontAttributes="Bold"
TextColor="{DynamicResource TextPrimary}" />
<Button Grid.Column="2"
Text="→"
Style="{StaticResource PrimaryButtonStyle}"
@@ -30,11 +31,11 @@
<Grid ColumnDefinitions="*,*"
ColumnSpacing="12">
<Button Text="Heute"
<Button Text="{loc:Translate Common_Today}"
Style="{StaticResource PrimaryButtonStyle}"
Command="{Binding TodayCommand}" />
<Button Grid.Column="1"
Text="Export"
Text="{loc:Translate Common_Export}"
Style="{StaticResource PrimaryButtonStyle}"
Command="{Binding ExportPdfCommand}" />
</Grid>
@@ -44,23 +45,22 @@
<CollectionView.ItemTemplate>
<DataTemplate x:DataType="viewModels:WeekDaySummaryViewModel">
<Border Margin="0,0,0,12"
Padding="12"
Stroke="{DynamicResource Border}"
BackgroundColor="{DynamicResource SurfaceBackground}"
StrokeShape="RoundRectangle 14">
Padding="12"
Stroke="{DynamicResource Border}"
BackgroundColor="{DynamicResource SurfaceBackground}"
StrokeShape="RoundRectangle 14">
<Border.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:WeekViewModel}}, Path=OpenDayCommand, x:DataType='viewModels:WeekViewModel'}"
CommandParameter="{Binding .}" />
<TapGestureRecognizer Command="{Binding Source={RelativeSource AncestorType={x:Type viewModels:WeekViewModel}}, Path=OpenDayCommand, x:DataType='viewModels:WeekViewModel'}"
CommandParameter="{Binding .}" />
</Border.GestureRecognizers>
<VerticalStackLayout Spacing="10">
<Grid ColumnDefinitions="*"
ColumnSpacing="10">
ColumnSpacing="10">
<Label Text="{Binding DateText}"
FontAttributes="Bold"
FontSize="18"
TextColor="{DynamicResource TextPrimary}" />
FontAttributes="Bold"
FontSize="18"
TextColor="{DynamicResource TextPrimary}" />
</Grid>
<Grid ColumnDefinitions="*,*"
@@ -70,7 +70,7 @@
StrokeShape="RoundRectangle 10"
BackgroundColor="{Binding MorningColor}">
<VerticalStackLayout Spacing="4">
<Label Text="Vormittag"
<Label Text="{loc:Translate Common_Morning}"
FontAttributes="Bold"
TextColor="White" />
<Label Text="{Binding MorningText}"
@@ -84,7 +84,7 @@
StrokeShape="RoundRectangle 10"
BackgroundColor="{Binding AfternoonColor}">
<VerticalStackLayout Spacing="4">
<Label Text="Nachmittag"
<Label Text="{loc:Translate Common_Afternoon}"
FontAttributes="Bold"
TextColor="White" />
<Label Text="{Binding AfternoonText}"
@@ -100,10 +100,10 @@
<VerticalStackLayout IsVisible="{Binding IsExpanded}"
Spacing="6">
<Label Text="{Binding ActivitiesText, StringFormat='Tätigkeiten: {0}'}"
<Label Text="{Binding ActivitiesSummaryText}"
IsVisible="{Binding HasActivities}"
TextColor="{DynamicResource TextPrimary}" />
<Label Text="{Binding SymptomsText, StringFormat='Symptome: {0}'}"
<Label Text="{Binding SymptomsSummaryText}"
IsVisible="{Binding HasSymptoms}"
TextColor="{DynamicResource TextPrimary}" />
</VerticalStackLayout>