Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
zh-cn:howto:xfwm4_theme [2012/04/29 07:32] – [Window Sidebars and bottom] haobug | zh-cn:howto:xfwm4_theme [2012/05/05 11:27] – [Title offset] haobug | ||
---|---|---|---|
Line 22: | Line 22: | ||
===== 标题栏装饰 ===== | ===== 标题栏装饰 ===== | ||
- | 因为窗口可以处于激活的((获得焦点))或者非激活((推动焦点))两种状态。所以 xfwm4 使用相应命名的像素图,例如,title-1-active.xpm 或者 title-1-inactive.xpm。 | + | 因为窗口可以处于激活的((获得焦点))或者非激活((失去焦点))两种状态。所以 xfwm4 使用相应命名的像素图,例如,title-1-active.xpm 或者 title-1-inactive.xpm。 |
对于标题栏的装饰,xfwm4 使用5张名为 title-1-active.xpm 到 title-5-active.xpm 的像素图以及 top-left-active.xpm 和 top-right-active.xpm 组成两端的角如下图所示。 | 对于标题栏的装饰,xfwm4 使用5张名为 title-1-active.xpm 到 title-5-active.xpm 的像素图以及 top-left-active.xpm 和 top-right-active.xpm 组成两端的角如下图所示。 | ||
Line 42: | Line 42: | ||
**Xfwm4 按钮** | **Xfwm4 按钮** | ||
- | xfwm4可以使用6个动作按钮 - 粘附(粘滞窗口),菜单,折叠,隐藏,最大化和关闭。 | + | xfwm4可以使用最多6个动作按钮 - 粘附(粘滞窗口),菜单,折叠,隐藏,最大化和关闭。 |
按钮有激活的((获得焦点))或者非激活((失去焦点))和按下三种状态。如下图所示: | 按钮有激活的((获得焦点))或者非激活((失去焦点))和按下三种状态。如下图所示: | ||
Line 49: | Line 49: | ||
| {{howto: | | {{howto: | ||
- | Xfwm4 也使用“切换”按钮,来指示按钮是不被切换 —— 见图4 | + | Xfwm4 也使用“切换”按钮,来指示按钮是否被切换 —— 见图4 |
^ 图 4 - 带额外切换按钮的粘附按钮 ^^ | ^ 图 4 - 带额外切换按钮的粘附按钮 ^^ | ||
| | | | ||
- | ===== Themerc | + | ===== Themerc |
- | To set features such as title text colors, "button_spacing" and "button_offset" etc. xfwm4 uses an text file called "themerc" kept in the theme folder that contains the pixmaps. | + | 设置一个特性,比如标题文本的颜色“button_spacing”或者“button_offset”等等。xfwmr 使用一个文本文件名为“themerc”,它保存在包含的像素图的主题文件夹中。 |
==== Button layout ==== | ==== Button layout ==== | ||
Line 74: | Line 74: | ||
- | ==== Title width ==== | + | ==== 标题宽度 |
- | Another setting that needs to be set from the " | + | |
- | When set to " | + | 另外一个需要在 " |
+ | |||
+ | 当设置为 | ||
{{ howto: | {{ howto: | ||
- | When set to " | + | 当设置为 |
{{ howto: | {{ howto: | ||
+ | ==== 文本阴影 ==== | ||
- | ==== Text shadow ==== | + | 通过设置 |
- | A shadow can be added to the title text by setting the boolean value " | + | |
- | Possible values are " | + | 可用的值为:" |
+ | ==== 标题编移 ==== | ||
- | ==== Title offset ==== | + | 标题文本的位置,可以用编移量来调整以适应主题设计。水平和垂直编移的值可以用下面的设置项来调整: |
- | The title text position can be adjusted to fit the theme design by using the offset values. The horizontal and vertical values can be adjusted by using the following settings: | + | |
* title_horizontal_offset | * title_horizontal_offset |