Add dark-mode

This commit is contained in:
Przemek Grondek 2023-04-30 23:02:18 +02:00
parent 43ba45eeac
commit 435b66a51b
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
title: Custom
description: Custom lite configration
privilege: Admin
actions: []
features:
- features\lite\dark-mode.yml

View File

@ -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