107 lines
4.3 KiB
XML
107 lines
4.3 KiB
XML
<?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"
|
|
x:Class="TodoApp.TodoDetailPage"
|
|
Title="Task Details"
|
|
BackgroundColor="#F5F7FA">
|
|
|
|
<ContentPage.Resources>
|
|
<Color x:Key="PrimaryColor">#5C6BC0</Color>
|
|
<Color x:Key="AccentColor">#26A69A</Color>
|
|
<Color x:Key="DangerColor">#EF5350</Color>
|
|
<Color x:Key="TextPrimary">#212121</Color>
|
|
<Color x:Key="TextSecondary">#757575</Color>
|
|
<Color x:Key="CardBackground">#FFFFFF</Color>
|
|
<Color x:Key="BorderColor">#E8EAF6</Color>
|
|
</ContentPage.Resources>
|
|
|
|
<ContentPage.ToolbarItems>
|
|
<ToolbarItem Text="Delete" Clicked="OnDeleteClicked" />
|
|
<ToolbarItem Text="Save" Clicked="OnSaveClicked" />
|
|
</ContentPage.ToolbarItems>
|
|
|
|
<Grid RowDefinitions="Auto,Auto,*,Auto,Auto" RowSpacing="16" Padding="20">
|
|
|
|
<!-- Title Section -->
|
|
<VerticalStackLayout Grid.Row="0" Spacing="8">
|
|
<Label Text="TITLE"
|
|
FontSize="13"
|
|
FontAttributes="Bold"
|
|
TextColor="{StaticResource PrimaryColor}" />
|
|
<Border BackgroundColor="{StaticResource CardBackground}"
|
|
Stroke="{StaticResource BorderColor}"
|
|
StrokeThickness="1"
|
|
Padding="16,12">
|
|
<Border.StrokeShape>
|
|
<RoundRectangle CornerRadius="10" />
|
|
</Border.StrokeShape>
|
|
<Entry x:Name="TitleEntry"
|
|
Placeholder="Task title"
|
|
FontSize="18"
|
|
TextColor="{StaticResource TextPrimary}"
|
|
PlaceholderColor="{StaticResource TextSecondary}" />
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<!-- Notes Label -->
|
|
<Label Grid.Row="1"
|
|
Text="NOTES"
|
|
FontSize="13"
|
|
FontAttributes="Bold"
|
|
TextColor="{StaticResource PrimaryColor}" />
|
|
|
|
<!-- Notes Section (fills remaining space) -->
|
|
<Border Grid.Row="2"
|
|
BackgroundColor="{StaticResource CardBackground}"
|
|
Stroke="{StaticResource BorderColor}"
|
|
StrokeThickness="1"
|
|
Padding="16,12">
|
|
<Border.StrokeShape>
|
|
<RoundRectangle CornerRadius="10" />
|
|
</Border.StrokeShape>
|
|
<Editor x:Name="NotesEditor"
|
|
Placeholder="Add notes here..."
|
|
FontSize="14"
|
|
TextColor="{StaticResource TextPrimary}"
|
|
PlaceholderColor="{StaticResource TextSecondary}"
|
|
VerticalOptions="Fill" />
|
|
</Border>
|
|
|
|
<!-- Status Section -->
|
|
<VerticalStackLayout Grid.Row="3" Spacing="8">
|
|
<Label Text="STATUS"
|
|
FontSize="13"
|
|
FontAttributes="Bold"
|
|
TextColor="{StaticResource PrimaryColor}" />
|
|
<Border BackgroundColor="{StaticResource CardBackground}"
|
|
Stroke="{StaticResource BorderColor}"
|
|
StrokeThickness="1"
|
|
Padding="16,12">
|
|
<Border.StrokeShape>
|
|
<RoundRectangle CornerRadius="10" />
|
|
</Border.StrokeShape>
|
|
<HorizontalStackLayout Spacing="12">
|
|
<CheckBox x:Name="CompletedCheckBox"
|
|
Color="{StaticResource AccentColor}"
|
|
VerticalOptions="Center"
|
|
CheckedChanged="OnCompletedChanged" />
|
|
<Label x:Name="StatusLabel"
|
|
Text="In Progress"
|
|
FontSize="16"
|
|
TextColor="{StaticResource TextPrimary}"
|
|
VerticalOptions="Center" />
|
|
</HorizontalStackLayout>
|
|
</Border>
|
|
</VerticalStackLayout>
|
|
|
|
<!-- Created Date -->
|
|
<Label Grid.Row="4"
|
|
x:Name="CreatedLabel"
|
|
FontSize="13"
|
|
TextColor="{StaticResource TextSecondary}"
|
|
HorizontalOptions="Center"
|
|
HorizontalTextAlignment="Center" />
|
|
|
|
</Grid>
|
|
</ContentPage>
|