将 gtk 更新到最新版本使应用程序看起来很丑
我之前安装了 gtk 2.14.6,通过 python 2.5 和 pygtk 2.12 使用它。我刚刚下载了 gtk 2.22 捆绑包并将其解压,替换了旧的捆绑包。 (我没有将其解压到旧文件夹上,我只是移动了旧文件夹并将新包解压到同一位置)。然而,同一个应用程序从看起来非常像原生 Windows 7 应用程序变得非常丑陋、笨重……更像是 Windows XP 主题,但它甚至没有模仿得那么好。
GTK 主题如何工作?我怎样才能获得最新版本的GTK(我由于不稳定问题而更新),但有主题?为什么旧版本看起来比新版本更好?
I preivously had gtk 2.14.6 installed, using it through python 2.5 with pygtk 2.12. I just downloaded the gtk 2.22 bundle and extracted it, replacing the old one. (I didn't extract it over the old folder, I just moved the old folder and extracted the new bundle in the same place). However, the same app went from looking very much like a native Windows 7 app to looking very ugly, clunky.. more like a Windows XP theme but it didn't even mimic that well.
How does GTK theming work? How can I get the newest version of GTK (I updated due to instability issues), but have the theme? And why did the older version look better than the newer one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的发行版中,在 etc/gtk-2.0/gtkrc 中,您需要确保“style”设置为“msw-default”,引擎设置为“wimp”。这是我的整个 gtkrc,只是为了确保您拥有它:
In your distribution, in etc/gtk-2.0/gtkrc, you need to make sure that "style" is set to "msw-default" and engine set to "wimp". Here's my entire gtkrc, just to make sure you have it: