Windows 10 上 C++ 应用程序的深色主题
Dark Theme for C++ application on Windows 10
我在 Windows 10 上使用应用程序 Qalculate。Qalculate 是用 C++ 编写的。我想应用一个深色主题,可能会为 Github 项目做出贡献。
GitHub
GitHub Libraries
Website
Screenshots
这是该应用程序在我的系统上的当前外观:
Qalculate 网站上的屏幕截图显示了深色主题:
我已经联系了主要开发人员 Hanna-kn,了解如何应用深色主题。这是她的回复:
You can either add environment variable (in advanced system properties) GTK_THEME with value Adwaita:dark, or create a file named settings.ini, in folder C:\Program Files\Qalculate\share\gtk-3.0 or C:\Users[username]\AppData\Local\gtk-3.0, with the following contents
[Settings]
gtk-application-prefer-dark-theme=true
她似乎正在使用 Linux,并且 Windows 10 中将主题应用于特定应用程序的过程与 Linux 不同。
需要向 Github 项目添加什么代码才能允许使用深色主题?或者是否有另一个应用程序允许在 Windows 10.
中使用特定于应用程序的深色主题
注:
Windows 10 项设置中已启用深色主题:
开发者 Hanna-kn 更新了她的代码以允许使用深色主题。
前后代码在这里:
https://github.com/Qalculate/qalculate-gtk/commit/d16c0f424d5bb71dd6a69291d1972b45a2b84f4a
我在 Windows 10 上使用应用程序 Qalculate。Qalculate 是用 C++ 编写的。我想应用一个深色主题,可能会为 Github 项目做出贡献。
GitHub
GitHub Libraries
Website
Screenshots
我已经联系了主要开发人员 Hanna-kn,了解如何应用深色主题。这是她的回复: You can either add environment variable (in advanced system properties) GTK_THEME with value Adwaita:dark, or create a file named settings.ini, in folder C:\Program Files\Qalculate\share\gtk-3.0 or C:\Users[username]\AppData\Local\gtk-3.0, with the following contents [Settings]
gtk-application-prefer-dark-theme=true 她似乎正在使用 Linux,并且 Windows 10 中将主题应用于特定应用程序的过程与 Linux 不同。
这是该应用程序在我的系统上的当前外观:
Qalculate 网站上的屏幕截图显示了深色主题:
需要向 Github 项目添加什么代码才能允许使用深色主题?或者是否有另一个应用程序允许在 Windows 10.
注:
Windows 10 项设置中已启用深色主题:
开发者 Hanna-kn 更新了她的代码以允许使用深色主题。 前后代码在这里:
https://github.com/Qalculate/qalculate-gtk/commit/d16c0f424d5bb71dd6a69291d1972b45a2b84f4a