因此,我遇到了一些使用 UWP 程序的人,他们有诵读困难,并询问是否可以更改背景和文本颜色,以便他们更轻松地阅读文本。目前,该应用程序具有模板中的浅色、深色和默认主题,但我还没有触及它们。 我已经弄清楚我可以编辑深色/浅色/默认的颜色,并将以下内容添加到 App.xaml 文件中。 (我只测试了一种画笔颜色)。理想情况下,我更愿意添加另一个主题,而不是编辑基本主题。有没有地方详细说明如何做到这一点?
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Default">
<SolidColorBrush x:Key="SystemControlPageBackgroundChromeLowBrush" Color="BlueViolet" />
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<SolidColorBrush x:Key="SystemControlPageBackgroundChromeLowBrush" Color="IndianRed" />
</ResourceDictionary>
<ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="SystemControlPageBackgroundChromeLowBrush" Color="DarkOliveGreen" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>