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:
+126
-29
@@ -42,37 +42,85 @@
|
||||
|
||||
<Grid ColumnDefinitions="*,*" RowDefinitions="Auto,Auto" ColumnSpacing="10" RowSpacing="10">
|
||||
|
||||
<Border Grid.Row="0" Grid.Column="0" BackgroundColor="#4CAF50" StrokeThickness="0" StrokeShape="RoundRectangle 12" Padding="12">
|
||||
<Border
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
BackgroundColor="{DynamicResource StateGreen}"
|
||||
StrokeThickness="0"
|
||||
StrokeShape="RoundRectangle 12"
|
||||
Padding="12">
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding SaveGreenQuickCommand}" />
|
||||
</Border.GestureRecognizers>
|
||||
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Grün" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding GreenStatusText}" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding GreenCount}" TextColor="White" FontSize="22" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="0" Grid.Column="1" BackgroundColor="#FBC02D" StrokeThickness="0" StrokeShape="RoundRectangle 12" Padding="12">
|
||||
<Border
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
BackgroundColor="{DynamicResource StateYellow}"
|
||||
StrokeThickness="0"
|
||||
StrokeShape="RoundRectangle 12"
|
||||
Padding="12">
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding SaveYellowQuickCommand}" />
|
||||
</Border.GestureRecognizers>
|
||||
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Gelb" FontAttributes="Bold" />
|
||||
<Label Text="{Binding YellowCount}" FontSize="22" />
|
||||
<Label Text="{Binding YellowStatusText}" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding YellowCount}" TextColor="White" FontSize="22" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" Grid.Column="0" BackgroundColor="#E53935" StrokeThickness="0" StrokeShape="RoundRectangle 12" Padding="12">
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Column="0"
|
||||
BackgroundColor="{DynamicResource StateRed}"
|
||||
StrokeThickness="0"
|
||||
StrokeShape="RoundRectangle 12"
|
||||
Padding="12">
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding SaveRedQuickCommand}" />
|
||||
</Border.GestureRecognizers>
|
||||
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Rot" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding RedStatusText}" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding RedCount}" TextColor="White" FontSize="22" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
<Border Grid.Row="1" Grid.Column="1" BackgroundColor="#757575" StrokeThickness="0" StrokeShape="RoundRectangle 12" Padding="12">
|
||||
<Border
|
||||
Grid.Row="1"
|
||||
Grid.Column="1"
|
||||
BackgroundColor="{DynamicResource StateGray}"
|
||||
StrokeThickness="0"
|
||||
StrokeShape="RoundRectangle 12"
|
||||
Padding="12">
|
||||
<Border.GestureRecognizers>
|
||||
<TapGestureRecognizer Command="{Binding SaveGrayQuickCommand}" />
|
||||
</Border.GestureRecognizers>
|
||||
|
||||
<VerticalStackLayout>
|
||||
<Label Text="Grau" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding GrayStatusText}" TextColor="White" FontAttributes="Bold" />
|
||||
<Label Text="{Binding GrayCount}" TextColor="White" FontSize="22" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
</Grid>
|
||||
|
||||
<CollectionView ItemsSource="{Binding Entries}" SelectionMode="None">
|
||||
<Label
|
||||
Text="Einträge"
|
||||
FontSize="20"
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
|
||||
<CollectionView
|
||||
ItemsSource="{Binding Entries}"
|
||||
SelectionMode="None">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border
|
||||
@@ -82,27 +130,76 @@
|
||||
StrokeThickness="0"
|
||||
StrokeShape="RoundRectangle 12">
|
||||
|
||||
<Grid ColumnDefinitions="Auto,*,Auto" ColumnSpacing="12">
|
||||
<Label
|
||||
Grid.Column="0"
|
||||
Text="{Binding TimeText}"
|
||||
TextColor="{Binding TextColor}"
|
||||
FontAttributes="Bold"
|
||||
VerticalOptions="Center" />
|
||||
<VerticalStackLayout Spacing="8">
|
||||
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="2">
|
||||
<Label Text="{Binding StateText}" TextColor="{Binding TextColor}" FontAttributes="Bold" />
|
||||
<Label Text="{Binding SourceText}" TextColor="{Binding TextColor}" FontSize="12" />
|
||||
</VerticalStackLayout>
|
||||
<Grid ColumnDefinitions="Auto,*,Auto" ColumnSpacing="12">
|
||||
<Label
|
||||
Grid.Column="0"
|
||||
Text="{Binding TimeText}"
|
||||
TextColor="{Binding TextColor}"
|
||||
FontAttributes="Bold"
|
||||
VerticalOptions="Center" />
|
||||
|
||||
<Button
|
||||
Grid.Column="2"
|
||||
Text="X"
|
||||
WidthRequest="44"
|
||||
HeightRequest="44"
|
||||
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.DeleteEntryCommand}"
|
||||
CommandParameter="{Binding .}" />
|
||||
</Grid>
|
||||
<VerticalStackLayout Grid.Column="1" Spacing="2">
|
||||
<Label
|
||||
Text="{Binding StateText}"
|
||||
TextColor="{Binding TextColor}"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Button
|
||||
Text="{Binding FoldoutText}"
|
||||
Command="{Binding ToggleExpandedCommand}"
|
||||
IsVisible="{Binding HasDetails}"
|
||||
Padding="0"
|
||||
FontSize="12"
|
||||
BackgroundColor="Transparent"
|
||||
TextColor="{Binding TextColor}"
|
||||
HorizontalOptions="Start" />
|
||||
</VerticalStackLayout>
|
||||
|
||||
<Button
|
||||
Grid.Column="2"
|
||||
Text="X"
|
||||
WidthRequest="44"
|
||||
HeightRequest="44"
|
||||
Command="{Binding Source={x:Reference ThisPage}, Path=BindingContext.DeleteEntryCommand}"
|
||||
CommandParameter="{Binding .}" />
|
||||
</Grid>
|
||||
|
||||
<Border
|
||||
IsVisible="{Binding IsExpanded}"
|
||||
Padding="10"
|
||||
BackgroundColor="{DynamicResource PanelBackground2}"
|
||||
Stroke="{DynamicResource PanelBorder}"
|
||||
StrokeThickness="1"
|
||||
StrokeShape="RoundRectangle 10">
|
||||
|
||||
<VerticalStackLayout Spacing="6">
|
||||
|
||||
<VerticalStackLayout IsVisible="{Binding HasActivity}" Spacing="2">
|
||||
<Label
|
||||
Text="Tätigkeit"
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Label
|
||||
Text="{Binding ActivityText}"
|
||||
TextColor="{DynamicResource TextMuted}" />
|
||||
</VerticalStackLayout>
|
||||
|
||||
<VerticalStackLayout IsVisible="{Binding HasSymptoms}" Spacing="2">
|
||||
<Label
|
||||
Text="Symptome"
|
||||
FontAttributes="Bold"
|
||||
TextColor="{DynamicResource TextPrimary}" />
|
||||
<Label
|
||||
Text="{Binding SymptomsText}"
|
||||
TextColor="{DynamicResource TextMuted}" />
|
||||
</VerticalStackLayout>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
|
||||
Reference in New Issue
Block a user