特殊:Badtitle/NS100:ChangingAndSettingTheFontColourInTaskbarApplications

来自Ubuntu中文
Wikibot留言 | 贡献2008年10月19日 (日) 04:35的版本
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :ChangingAndSettingTheFontColourInTaskbarApplications/zh | | {{#ifexist: ChangingAndSettingTheFontColourInTaskbarApplications/zh | | {{#ifeq: {{#titleparts:ChangingAndSettingTheFontColourInTaskbarApplications|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:ChangingAndSettingTheFontColourInTaskbarApplications|1|-1|}} | zh | | }}

Introduction

Shows you how to change the font colour of applications in the taskbar away from the default black so that you can actually see the writing when you customise your desktop. The example illustrates how to do it for your clock but the method is sound for all applications should you happen to know the names of the widgets.

Editing the Configuration File

Using the default clock as an example, the font colour is set to be black by default and stays that way despite whatever the background colour of the taskbar is. This change involves editing the gtkrc file associated with the theme that you are running. The default Ubuntu theme is Human (note the leading capital) so that is used in the example - your theme may be different. As root, use vi or gedit or similar to edit, /usr/share/themes/Human/gtk-2.0.gtkrc by adding the following section to the end of the file,

#user changes for clock font colour
style "panel-clock"
{
  fg[NORMAL] = "#FFFFFF"
}
widget "*.clock-applet-button.*" style "panel-clock"

In this case the selected colour is white (#FFFFFF).