我使用带有 gnome3 shell 的 ubuntu 14.04。
你好,我想用 gtk2 主题启动我的应用程序。我使用的是这个教程: http://urukrama.wordpress.com/2008/07/13/setting-a-custom-gtk-theme-for-specific-applications/ 但是我遇到了一个问题,即:当我像这样运行应用程序时:
GTK2_RC_FILES=/home/marcin/.themes/SlicknesS-black/gtk-2.0/gtkrc codeblocks
我在运行时收到如下错误:
(codeblocks:19048): Gtk-WARNING **: Unable to locate theme engine in module_path: "ubuntulooks"
我试过安装这个:
sudo apt-get install gtk2-engines-ubuntulooks
但我收到类似这样的回复:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gtk2-engines-ubuntulooks is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
human-theme
E: Package gtk2-engines-ubuntulooks has no installation candidate
或者也许有更简单的方法可以使我的 code::blocks IDE 呈现深色主题?:)
答案1
抱歉我的英语不好。
我想你已经SlicknesS-黑色主题文件夹中/usr/share/themes
。
现在在终端中执行此命令:
GTK2_RC_FILES=/usr/share/themes/SlicknesS-black/gtk-2.0/gtkrc codeblocks
我有另一个黑色主题。它的工作原理和外观如下:
告诉我它是否有效:)