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:
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage
|
||||
x:Class="cfs_tracker.Views.OptionsPage"
|
||||
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
xmlns:conv="clr-namespace:cfs_tracker.Converters"
|
||||
Title="Optionen">
|
||||
|
||||
<ContentPage.Resources>
|
||||
<ResourceDictionary>
|
||||
<conv:HexToColorConverter x:Key="HexToColorConverter" />
|
||||
</ResourceDictionary>
|
||||
</ContentPage.Resources>
|
||||
|
||||
<ScrollView>
|
||||
<VerticalStackLayout Padding="16" Spacing="16">
|
||||
|
||||
<Label
|
||||
Text="Optionen"
|
||||
FontSize="26"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Label
|
||||
Text="Aussehen"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Label
|
||||
Text="Farben"
|
||||
FontSize="18"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<CollectionView ItemsSource="{Binding AppearanceColors}" SelectionMode="None">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border Padding="12" Margin="0,0,0,8">
|
||||
<VerticalStackLayout Spacing="8">
|
||||
|
||||
<Label
|
||||
Text="{Binding Title}"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Grid ColumnDefinitions="*,60" ColumnSpacing="10">
|
||||
<Entry
|
||||
Grid.Column="0"
|
||||
Text="{Binding Value}"
|
||||
Placeholder="#RRGGBB" />
|
||||
|
||||
<Border
|
||||
Grid.Column="1"
|
||||
HeightRequest="42"
|
||||
WidthRequest="42"
|
||||
Padding="0"
|
||||
Stroke="{DynamicResource PanelBorder}"
|
||||
StrokeThickness="1"
|
||||
StrokeShape="RoundRectangle 8"
|
||||
BackgroundColor="{Binding Value, Converter={StaticResource HexToColorConverter}}" />
|
||||
</Grid>
|
||||
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
<Label
|
||||
Text="Status-Texte"
|
||||
FontSize="18"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<CollectionView ItemsSource="{Binding StatusTexts}" SelectionMode="None">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Border Padding="12" Margin="0,0,0,8">
|
||||
<VerticalStackLayout Spacing="6">
|
||||
<Label
|
||||
Text="{Binding Title}"
|
||||
FontAttributes="Bold" />
|
||||
<Entry
|
||||
Text="{Binding Value}" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
|
||||
<HorizontalStackLayout Spacing="10">
|
||||
<Button
|
||||
Text="Aussehen speichern"
|
||||
Command="{Binding SaveAppearanceCommand}" />
|
||||
|
||||
<Button
|
||||
Text="Standard wiederherstellen"
|
||||
Command="{Binding ResetAppearanceCommand}" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<Label
|
||||
Text="Datenbank"
|
||||
FontSize="22"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Border Padding="14">
|
||||
<VerticalStackLayout Spacing="12">
|
||||
<Label
|
||||
Text="Alle Einträge löschen"
|
||||
FontSize="18"
|
||||
FontAttributes="Bold" />
|
||||
|
||||
<Label
|
||||
Text="Zur Bestätigung das Wort 'löschen' eingeben." />
|
||||
|
||||
<Entry
|
||||
Placeholder="löschen"
|
||||
Text="{Binding DeleteConfirmationText}" />
|
||||
|
||||
<Button
|
||||
Text="Alle Daten löschen"
|
||||
BackgroundColor="#A85C5C"
|
||||
Command="{Binding DeleteAllDataCommand}" />
|
||||
</VerticalStackLayout>
|
||||
</Border>
|
||||
|
||||
<Label
|
||||
Text="{Binding StatusText}"
|
||||
FontSize="13" />
|
||||
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user