2b0797f50f
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
32 lines
717 B
C#
32 lines
717 B
C#
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");
|
|
}
|
|
} |