Options fix
clean up and fixes - Heute gefixt - Code Cleanup NotificationScheduleItemViewModel -fixed NotificationScheduleItemViewModel for Windows compat push implementation Push fixes Push benachrichtungen eingebaut - Status bei push - Push auch in background - Toggle für symtome angepasst push system change exporter update Optionen fix - Optionen aufgeteilt auf 3 tabs - Anpassungen haben jetzt Farbslider Optimierung fix
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.Maui.Graphics;
|
||||
|
||||
namespace cfs_tracker.ViewModels;
|
||||
|
||||
@@ -11,14 +10,16 @@ public partial class DayEntryItemViewModel : ObservableObject
|
||||
public string SlotText { get; init; } = string.Empty;
|
||||
public string StateText { get; init; } = string.Empty;
|
||||
public string ActivityText { get; init; } = string.Empty;
|
||||
public string DurationText { get; init; } = string.Empty;
|
||||
public string SymptomsText { get; init; } = string.Empty;
|
||||
public bool IsBackfill { get; init; }
|
||||
public Color StateColor { get; init; } = Colors.Transparent;
|
||||
public Color ForegroundColor { get; init; } = Colors.White;
|
||||
|
||||
public bool HasActivity => !string.IsNullOrWhiteSpace(ActivityText);
|
||||
public bool HasDuration => !string.IsNullOrWhiteSpace(DurationText);
|
||||
public bool HasSymptoms => !string.IsNullOrWhiteSpace(SymptomsText);
|
||||
public bool HasDetails => HasActivity || HasSymptoms;
|
||||
public bool HasDetails => HasActivity || HasDuration || HasSymptoms;
|
||||
public string DetailsButtonText => IsExpanded ? "Details ausblenden" : "Details anzeigen";
|
||||
|
||||
[ObservableProperty]
|
||||
@@ -43,4 +44,4 @@ public partial class DayEntryItemViewModel : ObservableObject
|
||||
|
||||
IsExpanded = !IsExpanded;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user