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 04:16] – [Introduction] haobug | zh-cn:howto:xfwm4_theme [2012/05/05 11:27] – [Title offset] haobug | ||
---|---|---|---|
Line 8: | Line 8: | ||
{{ howto: | {{ howto: | ||
- | ===== Themes locations | + | ===== 主题的存放位置 |
- | In Xfwm4 version 4.0, the themes are searched in the following directories: | + | |
- | * User's home dir /.themes/ | + | 在 Xfwm4 4.0 版本中,主题搜索在下列目录: |
- | * System' | + | |
- | In Xfwm version 4.2, the theme location is in line with the standard, searched in the following directories: | + | * 用户主目录/ |
+ | * 系统共享数据目录/ | ||
- | | + | 在 Xfwm 4.2 版本中,主题的存放位置是符合标准的,在下列目录搜索: |
- | * System' | + | |
+ | * 系统共享数据目录/ | ||
+ | ===== 标题栏装饰 ===== | ||
- | ===== Titlebar decorations ===== | + | 因为窗口可以处于激活的((获得焦点))或者非激活((失去焦点))两种状态。所以 |
- | As windows can be in either active | + | |
- | For title bar decorations, | + | 对于标题栏的装饰,xfwm4 使用5张名为 |
- | {{ howto: | + | {{ howto: |
- | Pixmaps of a xfwm4 window | + | 非激活 |
- | The same naming convention is true for unfocused windows with the word inactive | + | |
- | Title text colour and shadow options, alignment etc are set in the themerc | + | 标题文字的颜色和阴影选项,对齐方式等在 |
+ | ===== 窗口侧边和底部 ===== | ||
+ | 每一个窗口的侧边由两个像素图构成。左侧边的像素图叫 left-active.xpm 和 bottom-left-active.xpm 。右侧边(当然)也就是由 | ||
- | ===== Window Sidebars and bottom | + | 窗口底部的控制条由 |
- | Each side of a window is made up of two pixmaps. The pixmaps on the left side are named left-active.xpm | + | |
- | The Window bottom grab bar is made up of bottom-active.xpm and bottom-inactive.xpm pixmaps which will be repeated to fit as the window is resized. | + | N.B 这些像素图也构成鼠标控制柄,当你考虑它们需要多少像素宽度时,请记得这点(特别是左下和右下像素图,它们构成窗口主要的缩放控制柄)。 |
- | N.B These pixmaps also make up the mouse grab handles so keep that in mind when deciding how many pixels wide they should be (particularly the bottom-left and bottom right pixmaps which make up the main resize handles on the windows). | + | **Xfwm4 按钮** |
- | Xfwm4 Buttons | + | |
- | Xfwm4 can use up to six action buttons | + | xfwm4可以使用最多6个动作按钮 |
- | Buttons have active | + | 按钮有激活的((获得焦点))或者非激活((失去焦点))和按下三种状态。如下图所示: |
- | AbiWord Image menu-active.gif | + | |
- | ^ Figure | + | ^ 图 3 - Xfwm4 按钮状态 |
| {{howto: | | {{howto: | ||
- | Xfwm4 can also used " | + | Xfwm4 也使用“切换”按钮,来指示按钮是否被切换 —— 见图4 |
- | AbiWord Image stick-active.gif | + | |
- | ^ Figure | + | ^ 图 4 - 带额外切换按钮的粘附按钮 |
- | | {{howto: | + | | |
- | ===== 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 77: | 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 |