From 22bcd4ede4d9d7694fb689923a9e19e3b317b51c Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 16 Nov 2025 19:36:31 +0000 Subject: [PATCH] Added CDE inspired theme. --- .../ViewModels/SettingsViewModel.cs | 5 + Marechai.App/Services/ColorThemeService.cs | 4 +- Marechai.App/Strings/en/Resources.resw | 3 + Marechai.App/Strings/es/Resources.resw | 3 + Marechai.App/Strings/fr/Resources.resw | 3 + Marechai.App/Strings/pt-BR/Resources.resw | 3 + Marechai.App/Styles/CDEColorPalette.xaml | 219 ++++++++++++++++++ 7 files changed, 239 insertions(+), 1 deletion(-) create mode 100644 Marechai.App/Styles/CDEColorPalette.xaml diff --git a/Marechai.App/Presentation/ViewModels/SettingsViewModel.cs b/Marechai.App/Presentation/ViewModels/SettingsViewModel.cs index 5401b5bb..6a1e4c3e 100644 --- a/Marechai.App/Presentation/ViewModels/SettingsViewModel.cs +++ b/Marechai.App/Presentation/ViewModels/SettingsViewModel.cs @@ -105,6 +105,11 @@ public partial class SettingsViewModel : ObservableObject { ThemeName = "Amiga", DisplayName = _localizer["AmigaTheme"] + }, + new() + { + ThemeName = "CDE", + DisplayName = _localizer["CDETheme"] } }; diff --git a/Marechai.App/Services/ColorThemeService.cs b/Marechai.App/Services/ColorThemeService.cs index f11e7c32..4dbb207c 100644 --- a/Marechai.App/Services/ColorThemeService.cs +++ b/Marechai.App/Services/ColorThemeService.cs @@ -36,7 +36,8 @@ public class ColorThemeService : IColorThemeService "Windows311", "MacOS9", "DOS", - "Amiga" + "Amiga", + "CDE" }; public void SetThemeService(IThemeService themeService) @@ -95,6 +96,7 @@ public class ColorThemeService : IColorThemeService "MacOS9" => "ms-appx:///Styles/MacOS9ColorPalette.xaml", "DOS" => "ms-appx:///Styles/DOSColorPalette.xaml", "Amiga" => "ms-appx:///Styles/AmigaColorPalette.xaml", + "CDE" => "ms-appx:///Styles/CDEColorPalette.xaml", _ => null }; diff --git a/Marechai.App/Strings/en/Resources.resw b/Marechai.App/Strings/en/Resources.resw index 11395eb9..8a318269 100644 --- a/Marechai.App/Strings/en/Resources.resw +++ b/Marechai.App/Strings/en/Resources.resw @@ -209,6 +209,9 @@ Amiga Workbench + + CDE / Motif + Brightness diff --git a/Marechai.App/Strings/es/Resources.resw b/Marechai.App/Strings/es/Resources.resw index a75ac2e8..07bac86e 100644 --- a/Marechai.App/Strings/es/Resources.resw +++ b/Marechai.App/Strings/es/Resources.resw @@ -209,6 +209,9 @@ Amiga Workbench + + CDE / Motif + Brillo diff --git a/Marechai.App/Strings/fr/Resources.resw b/Marechai.App/Strings/fr/Resources.resw index 001926c2..e16e0b04 100644 --- a/Marechai.App/Strings/fr/Resources.resw +++ b/Marechai.App/Strings/fr/Resources.resw @@ -209,6 +209,9 @@ Amiga Workbench + + CDE / Motif + Luminosité diff --git a/Marechai.App/Strings/pt-BR/Resources.resw b/Marechai.App/Strings/pt-BR/Resources.resw index dfc9fab8..96a3ee19 100644 --- a/Marechai.App/Strings/pt-BR/Resources.resw +++ b/Marechai.App/Strings/pt-BR/Resources.resw @@ -209,6 +209,9 @@ Amiga Workbench + + CDE / Motif + Brilho diff --git a/Marechai.App/Styles/CDEColorPalette.xaml b/Marechai.App/Styles/CDEColorPalette.xaml new file mode 100644 index 00000000..5981265c --- /dev/null +++ b/Marechai.App/Styles/CDEColorPalette.xaml @@ -0,0 +1,219 @@ + + + + + + + #000000 #333333 + #666666 #999999 + #000000 #000000 + #000000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file