- Introduced AppThemeMode enum to define theme options: System, Light, Dark. - Updated AppSettingsDocument to include ThemeMode property. - Created AppThemeState service to manage current theme mode and handle changes. - Integrated theme mode handling in CouchbaseLiteAppSettingsService for persistence. - Added JavaScript for theme management in the frontend, supporting system preference detection. - Enhanced CSS with theme variables for consistent styling across light and dark modes. - Updated Playwright tests to ensure sidebar functionality and responsiveness.
26 lines
760 B
C#
26 lines
760 B
C#
namespace WorkTracker.Domain;
|
|
|
|
public sealed class AppSettingsDocument
|
|
{
|
|
public string Id { get; set; } = "global";
|
|
|
|
public AppThemeMode ThemeMode { get; set; } = AppThemeMode.System;
|
|
|
|
public decimal StandardWorkHoursPerDay { get; set; } = 8m;
|
|
|
|
public decimal HourlyGrossRate { get; set; } = 17.5m;
|
|
|
|
public decimal ProfitabilityCoefficient { get; set; } = 0.67m;
|
|
|
|
public decimal InpsRate { get; set; } = 0.2607m;
|
|
|
|
public decimal SubstituteTaxRate { get; set; } = 0.15m;
|
|
|
|
public string Currency { get; set; } = "EUR";
|
|
|
|
public string Locale { get; set; } = "it-IT";
|
|
|
|
public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
}
|