- 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>
25 lines
645 B
C#
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;
|
|
}
|
|
}
|
|
}
|
|
}
|