Windows10上的C++ 应用程序的黑暗主题

我正在 Windows 10 上使用应用程序 Qalculate。Qalculate 是用 C++ 编写的。我想应用一个黑暗主题,可能有助于 Github 项目。GitHubGitHub LibrariesWebsiteScreenshots

我正在 Windows 10 上使用应用程序 Qalculate。Qalculate 是用 C++ 编写的。我想应用一个黑暗主题,可能有助于 Github 项目。
GitHub
GitHub Libraries
Website
Screenshots


Here is what the app currently looks like on my system:
Current Look
The screenshots on the Qalculate website show a dark theme:
Desired look

我已经联系了主要开发人员 Hanna-kn 关于如何应用黑暗主题。这是她的回复:

您可以添加环境变量(在高级系统属性中)GTK_THEME,其值为 Adwaita:dark,或在文件夹 C:\ Program Files\ Qalculate\ share\ gtk-3.0 或 C:\ Users [username]\ AppData\ Local\ gtk-3.0 中创建一个名为 settings.ini 的文件,内容如下

【设置】 gtk-application-prefer-dark-theme = true

看来她正在使用 Linux,并且将主题应用于 Windows 10 中的特定应用程序的过程与 Linux 不同。
要允许深色主题,需要将哪些代码添加到 Github 项目中?或者在 Windows 10 中是否有另一个应用程序允许特定于应用程序的深色主题。


Note: Dark theme is already turned on in the Windows 10 settings: Win 10 settings screenshot

0

开发人员 Hanna-kn 更新了她的代码,以允许一个黑暗的主题。

https://github.com/Qalculate/qalculate-gtk/commit/d16c0f424d5bb71dd6a69291d1972b45a2b84f4a

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(773)
如何在AWSEC2中重新下载pem文件
上一篇
如何在Mac上运行“UNIX可执行文件”
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(39条)