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,32 @@
|
||||
namespace cfs_tracker.Services;
|
||||
|
||||
public class CalendarStateService
|
||||
{
|
||||
private DateTime _selectedDate = DateTime.Today;
|
||||
|
||||
public DateTime SelectedDate
|
||||
{
|
||||
get => _selectedDate;
|
||||
set
|
||||
{
|
||||
var newValue = value.Date;
|
||||
if (_selectedDate != newValue)
|
||||
{
|
||||
_selectedDate = newValue;
|
||||
SelectedDateChanged?.Invoke(_selectedDate);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public event Action<DateTime>? SelectedDateChanged;
|
||||
|
||||
public async Task ShowDayTabAsync(DateTime date)
|
||||
{
|
||||
SelectedDate = date.Date;
|
||||
|
||||
if (Shell.Current is null)
|
||||
return;
|
||||
|
||||
await Shell.Current.GoToAsync("//MainTabs/DayTab");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user