Files
cfs-Tracker/ViewModels/MonthCellViewModel.cs
T
Djagor 7b824b6f0c Layout fixes and Push fixes
- Layout und Kalender angepasst
- Push status meldung angepasst für Android
2026-03-27 11:58:53 +01:00

21 lines
789 B
C#

using CommunityToolkit.Mvvm.ComponentModel;
namespace cfs_tracker.ViewModels;
public partial class MonthCellViewModel : ObservableObject
{
public DateTime Date { get; init; }
public string DayNumberText { get; init; } = string.Empty;
public bool IsCurrentMonth { get; init; }
public bool IsToday { get; init; }
public bool HasEntries { get; init; }
public string AverageStateText { get; init; } = string.Empty;
public Color StateColor { get; init; } = Colors.Transparent;
public Color TextColor { get; init; } = Colors.White;
public Color BorderColor { get; init; } = Colors.Transparent;
public bool IsPlaceholder => !IsCurrentMonth;
public bool ShowDayNumber => IsCurrentMonth;
public bool ShowAverage => IsCurrentMonth && HasEntries;
}