Details ausgearbeitet

Linked colors to options menu

Options extension

Aussehen aufgebohrt:
 - erlaubt text von status zu ändern,
 - bessere beschriftung von Farben

desing änderung und bedienung

- heute status felder anklickbar,
- Farbpalette verdunkelt und kontrast reduziert
- Kalender Tage anklickbar gemacht
- Optionen überarbeitet
This commit is contained in:
2026-03-22 20:37:35 +01:00
parent 8615d1de07
commit 2b0797f50f
68 changed files with 1746 additions and 1351 deletions
+21 -93
View File
@@ -1,95 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
x:Class="cfs_tracker.Views.QuickEntryPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Eintrag">
<ScrollView>
<VerticalStackLayout Padding="20" Spacing="18">
<Label
Text="Wie geht es dir?"
FontSize="28"
FontAttributes="Bold"
HorizontalTextAlignment="Center" />
<Label
Text="{Binding SelectedDateText}"
FontSize="16"
HorizontalTextAlignment="Center" />
<VerticalStackLayout
IsVisible="{Binding IsPastDate}"
Spacing="8">
<Label
Text="Tageszeit"
FontAttributes="Bold"
HorizontalTextAlignment="Center" />
<Picker
Title="Tageszeit"
ItemsSource="{Binding AvailableParts}"
SelectedItem="{Binding SelectedPartText}" />
</VerticalStackLayout>
<Label
IsVisible="{Binding IsFutureDate}"
Text="Für zukünftige Tage können keine Einträge gesetzt werden."
TextColor="Red"
HorizontalTextAlignment="Center" />
<Grid
ColumnDefinitions="*,*"
RowDefinitions="Auto,Auto"
ColumnSpacing="12"
RowSpacing="12">
<Button
Grid.Row="0"
Grid.Column="0"
Text="Grün&#10;Gut"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#4CAF50"
TextColor="White"
Command="{Binding SaveGreenCommand}" />
<Button
Grid.Row="0"
Grid.Column="1"
Text="Gelb&#10;So lala"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#FBC02D"
TextColor="Black"
Command="{Binding SaveYellowCommand}" />
<Button
Grid.Row="1"
Grid.Column="0"
Text="Rot&#10;Schlecht"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#E53935"
TextColor="White"
Command="{Binding SaveRedCommand}" />
<Button
Grid.Row="1"
Grid.Column="1"
Text="Grau&#10;Totalausfall"
FontSize="22"
FontAttributes="Bold"
HeightRequest="120"
BackgroundColor="#757575"
TextColor="White"
Command="{Binding SaveGrayCommand}" />
</Grid>
<ContentPage x:Class="cfs_tracker.Views.QuickEntryPage"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Title="Eintrag">
<ScrollView><VerticalStackLayout Padding="20" Spacing="18">
<Label Text="Wie geht es dir?" FontSize="28" FontAttributes="Bold" HorizontalTextAlignment="Center" />
<Label Text="{Binding SelectedDateText}" FontSize="16" HorizontalTextAlignment="Center" />
<VerticalStackLayout IsVisible="{Binding IsPastDate}" Spacing="8">
<Label Text="Tageszeit" FontAttributes="Bold" HorizontalTextAlignment="Center" />
<Picker Title="Tageszeit" ItemsSource="{Binding AvailableParts}" SelectedItem="{Binding SelectedPartText}" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
<Border Padding="12"><VerticalStackLayout Spacing="8"><Label Text="Tätigkeit" FontAttributes="Bold" /><Picker Title="Tätigkeit" ItemsSource="{Binding Activities}" ItemDisplayBinding="{Binding Name}" SelectedItem="{Binding SelectedActivity}" /></VerticalStackLayout></Border>
<Border Padding="12"><VerticalStackLayout Spacing="8"><Label Text="Symptome" FontAttributes="Bold" /><CollectionView ItemsSource="{Binding Symptoms}" SelectionMode="None"><CollectionView.ItemTemplate><DataTemplate><Grid ColumnDefinitions="Auto,*" Padding="0,4"><CheckBox IsChecked="{Binding IsSelected}" /><Label Grid.Column="1" Text="{Binding Name}" VerticalOptions="Center" /></Grid></DataTemplate></CollectionView.ItemTemplate></CollectionView></VerticalStackLayout></Border>
<Label IsVisible="{Binding IsFutureDate}" Text="Für zukünftige Tage können keine Einträge gesetzt werden." TextColor="{StaticResource StateRed}" HorizontalTextAlignment="Center" />
<Grid ColumnDefinitions="*,*" RowDefinitions="Auto,Auto" ColumnSpacing="12" RowSpacing="12">
<Button Grid.Row="0" Grid.Column="0" Text="Grün&#10;Gut" FontSize="22" FontAttributes="Bold" HeightRequest="120" BackgroundColor="{StaticResource StateGreen}" TextColor="White" Command="{Binding SaveGreenCommand}" />
<Button Grid.Row="0" Grid.Column="1" Text="Gelb&#10;So lala" FontSize="22" FontAttributes="Bold" HeightRequest="120" BackgroundColor="{StaticResource StateYellow}" TextColor="Black" Command="{Binding SaveYellowCommand}" />
<Button Grid.Row="1" Grid.Column="0" Text="Rot&#10;Schlecht" FontSize="22" FontAttributes="Bold" HeightRequest="120" BackgroundColor="{StaticResource StateRed}" TextColor="White" Command="{Binding SaveRedCommand}" />
<Button Grid.Row="1" Grid.Column="1" Text="Grau&#10;Totalausfall" FontSize="22" FontAttributes="Bold" HeightRequest="120" BackgroundColor="{StaticResource StateGray}" TextColor="White" Command="{Binding SaveGrayCommand}" />
</Grid>
</VerticalStackLayout></ScrollView>
</ContentPage>