From 435b66a51b9bf80d3293dbb37d4c10257d70ef16 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 30 Apr 2023 23:02:18 +0200 Subject: [PATCH] Add dark-mode --- src/Configuration/custom.yml | 7 +++++ src/Configuration/features/lite/dark-mode.yml | 27 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/Configuration/custom.yml create mode 100644 src/Configuration/features/lite/dark-mode.yml diff --git a/src/Configuration/custom.yml b/src/Configuration/custom.yml new file mode 100644 index 0000000..fee9ab2 --- /dev/null +++ b/src/Configuration/custom.yml @@ -0,0 +1,7 @@ +--- +title: Custom +description: Custom lite configration +privilege: Admin +actions: [] +features: + - features\lite\dark-mode.yml \ No newline at end of file diff --git a/src/Configuration/features/lite/dark-mode.yml b/src/Configuration/features/lite/dark-mode.yml new file mode 100644 index 0000000..4e1359f --- /dev/null +++ b/src/Configuration/features/lite/dark-mode.yml @@ -0,0 +1,27 @@ +title: dark-mode +description: Sets dark mode +privilege: TrustedInstaller +actions: + - !writeStatus: { status: 'Enable dark mode' } + + - !registryValue: + path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' + value: 'AppsUseLightTheme' + data: '0' + type: REG_DWORD + - !registryValue: + path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize' + value: 'SystemUsesLightTheme' + data: '0' + type: REG_DWORD + + - !registryValue: + path: 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes' + value: 'AppsUseLightTheme' + data: '0' + type: REG_DWORD + - !registryValue: + path: 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes' + value: 'SystemUsesLightTheme' + data: '0' + type: REG_DWORD