Files
ReminderOrganizer/Core/SystemPrefs.cs
Michi 7486eebd67 Category editor redesign, English as default language
- Category editor: icon tile per category opens an icon + color picker
  (no clipped mini combo boxes), placeholders explained, live preview
- Header glyph removed; dialog follows the shared styles
- Dialogs opened from Settings are owned by the active window
  (category editor could open behind the settings window)
- Default language is English; German via Settings > Language

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 18:20:04 +01:00

25 lines
645 B
C#

#nullable enable
using System.Globalization;
using Microsoft.Win32;
namespace ReminderOrganizer.Core
{
/// <summary>Windows settings the app follows until the user picks something (theme).</summary>
public static class SystemPrefs
{
public static bool IsDarkMode()
{
try
{
using var key = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Themes\Personalize");
return key?.GetValue("AppsUseLightTheme") is int v && v == 0;
}
catch
{
return true;
}
}
}
}