Options fix
clean up and fixes - Heute gefixt - Code Cleanup NotificationScheduleItemViewModel -fixed NotificationScheduleItemViewModel for Windows compat push implementation Push fixes Push benachrichtungen eingebaut - Status bei push - Push auch in background - Toggle für symtome angepasst push system change exporter update Optionen fix - Optionen aufgeteilt auf 3 tabs - Anpassungen haben jetzt Farbslider Optimierung fix
This commit is contained in:
+94
-25
@@ -1,12 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:viewModels="clr-namespace:cfs_tracker.ViewModels"
|
||||
x:DataType="viewModels:QuickEntryViewModel"
|
||||
x:Class="cfs_tracker.Views.QuickEntryPage"
|
||||
Title="Eintrag"
|
||||
BackgroundColor="{DynamicResource AppBackground}">
|
||||
<ContentPage
|
||||
x:Class="cfs_tracker.Views.QuickEntryPage"
|
||||
x:Name="RootPage"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:viewModels="clr-namespace:cfs_tracker.ViewModels"
|
||||
x:DataType="viewModels:QuickEntryViewModel"
|
||||
Title="Eintrag"
|
||||
BackgroundColor="{DynamicResource AppBackground}">
|
||||
|
||||
<ContentPage.Resources>
|
||||
<Style x:Key="SymptomToggleBorderStyle" TargetType="Border">
|
||||
<Setter Property="Padding" Value="12,10" />
|
||||
<Setter Property="StrokeThickness" Value="1" />
|
||||
<Setter Property="Stroke" Value="{DynamicResource Border}" />
|
||||
<Setter Property="StrokeShape" Value="RoundRectangle 12" />
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource ButtonPrimaryBackground}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger TargetType="Border"
|
||||
Binding="{Binding IsSelected}"
|
||||
Value="True">
|
||||
<Setter Property="BackgroundColor" Value="{DynamicResource ButtonSecondaryBackground}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<Style x:Key="SymptomToggleLabelStyle" TargetType="Label">
|
||||
<Setter Property="VerticalOptions" Value="Center" />
|
||||
<Setter Property="TextColor" Value="{DynamicResource ButtonPrimaryText}" />
|
||||
<Style.Triggers>
|
||||
<DataTrigger TargetType="Label"
|
||||
Binding="{Binding IsSelected}"
|
||||
Value="True">
|
||||
<Setter Property="TextColor" Value="{DynamicResource ButtonSecondaryText}" />
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</ContentPage.Resources>
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout Padding="16" Spacing="16">
|
||||
@@ -33,7 +63,7 @@
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Picker Title="Tageszeit"
|
||||
ItemsSource="{Binding Parts}"
|
||||
ItemDisplayBinding="{Binding Name}"
|
||||
ItemDisplayBinding="{Binding Name, x:DataType={x:Null}}"
|
||||
SelectedItem="{Binding SelectedPart}" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
@@ -48,33 +78,72 @@
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Picker Title="Tätigkeit"
|
||||
ItemsSource="{Binding Activities}"
|
||||
ItemDisplayBinding="{Binding Name}"
|
||||
ItemDisplayBinding="{Binding Name, x:DataType={x:Null}}"
|
||||
SelectedItem="{Binding SelectedActivity}" />
|
||||
|
||||
<Label Text="Dauer (HH:mm)"
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<TimePicker Time="{Binding ActivityDuration}"
|
||||
Format="HH:mm" />
|
||||
</VerticalStackLayout>
|
||||
</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}" />
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
|
||||
<VerticalStackLayout BindableLayout.ItemsSource="{Binding Symptoms}"
|
||||
Spacing="6">
|
||||
Spacing="8">
|
||||
<BindableLayout.ItemTemplate>
|
||||
<DataTemplate x:DataType="viewModels:SelectableSymptomItemViewModel">
|
||||
<Grid ColumnDefinitions="Auto,*"
|
||||
ColumnSpacing="10"
|
||||
Padding="0,4">
|
||||
<CheckBox IsChecked="{Binding IsSelected}" />
|
||||
<Label Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
VerticalOptions="Center"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
</Grid>
|
||||
<Border Padding="12,10"
|
||||
StrokeThickness="1"
|
||||
Stroke="{DynamicResource Border}"
|
||||
StrokeShape="RoundRectangle 12"
|
||||
BackgroundColor="{DynamicResource ButtonPrimaryBackground}">
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer
|
||||
Command="{Binding Source={x:Reference RootPage}, Path=BindingContext.ToggleSymptomCommand}"
|
||||
CommandParameter="{Binding .}" />
|
||||
</Border.GestureRecognizers>
|
||||
|
||||
<Border.Triggers>
|
||||
<DataTrigger TargetType="Border"
|
||||
Binding="{Binding IsSelected}"
|
||||
Value="True">
|
||||
<Setter Property="BackgroundColor"
|
||||
Value="{DynamicResource ButtonSecondaryBackground}" />
|
||||
</DataTrigger>
|
||||
</Border.Triggers>
|
||||
|
||||
<Grid ColumnDefinitions="Auto,*"
|
||||
ColumnSpacing="12">
|
||||
<CheckBox IsChecked="{Binding IsSelected}"
|
||||
InputTransparent="True"
|
||||
Color="White"
|
||||
VerticalOptions="Center" />
|
||||
|
||||
<Label Grid.Column="1"
|
||||
Text="{Binding Name}"
|
||||
VerticalOptions="Center"
|
||||
TextColor="{DynamicResource ButtonPrimaryText}">
|
||||
<Label.Triggers>
|
||||
<DataTrigger TargetType="Label"
|
||||
Binding="{Binding IsSelected}"
|
||||
Value="True">
|
||||
<Setter Property="TextColor"
|
||||
Value="{DynamicResource ButtonSecondaryText}" />
|
||||
</DataTrigger>
|
||||
</Label.Triggers>
|
||||
</Label>
|
||||
</Grid>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</BindableLayout.ItemTemplate>
|
||||
</VerticalStackLayout>
|
||||
|
||||
Reference in New Issue
Block a user