Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zh-cn:howto:xfwm4_theme [2013/04/21 11:58] – [维基百科,自由的百科全书] haobugzh-cn:howto:xfwm4_theme [2013/04/21 12:46] (current) – [荣誉] haobug
Line 207: Line 207:
 事实上,"thinking" of the gtk colors as early as drawing the theme 可以节省大量的时间。如果你在所有的像素图中使用完全相同的颜色,你可以使用文本编辑器的搜索/替换功能添加的颜色符号。你甚至可以使用比如 “sed” 的工具进行主题中所有的 XPM 文件的大量的修改。 事实上,"thinking" of the gtk colors as early as drawing the theme 可以节省大量的时间。如果你在所有的像素图中使用完全相同的颜色,你可以使用文本编辑器的搜索/替换功能添加的颜色符号。你甚至可以使用比如 “sed” 的工具进行主题中所有的 XPM 文件的大量的修改。
  
-===== Xfwm 4.2 new functionality ===== +===== Xfwm 4.2 新功能 ===== 
-As simple as it is, the color symbol replacement table of the XPM format is not powerfull enough to achive the nice color gradients seen in most recent themes.+由于格式简单,XPM 颜色的符号替换表不是很强大,不足以展现在新近的主题中的漂亮的颜色渐变。
  
-Xfwm 4.2 includes yet another functionality that gives real nice result while being still compatible with the previous theme format: It composes the final image from the XPM file and it colors replacement table, and another PNG file with transparency, if present.+所以 Xfwm 4.2 包括另一项功能,在仍然与以前的主题格式兼容的情况下取得更好的效果:从XPM 文件和它的颜色替换表,及另一个具有透明效果的 PNG 文件(如果存在的话)生成最终的图像。
  
-{{ howto:xfwm4:xfwm4-compose.gif |Figure 5 - PNG transparent images get layered on top of the XPM image}}+图像上获得分层XPM图像的顶部 
 +{{ howto:xfwm4:xfwm4-compose.gif |图 5 - PNG 透明图片图像叠加到 XPM 图像上面}}
  
-The names of the PNG files are identical to the names of the corresponding XPM files, with the ".png" file extension (ie title-1-active.pngtop-right-inactive.png, etc.). The PNG file is by no mean required, if it's not present, xfwm4 won't complain, but if there is a PNG image of the same name as the XPM image, and if that PNG has an alpha channel (ie, it has semi-transparent pixels) then the PNG image will be automatically layered on top of the XPM image to produce the final image.+PNG 文件的文件名和相应的 XPM 文件的文件名相同,以 “PNG” 为扩展名(即 title-1-active.png 的,top-right-inactive.png 等等)。PNG 文件不是必须的,如果它不存在,xfwm4 won't complain,但如果有一个 PNG 图像 XPM 图像的名称相同,并且具有 alpha 通道(即,有半透明的像素)的 PNG 图像将被自动叠加到 XPM 图像的上面来产生最终的图像。
  
-This technique has several advantages:+这种技术有几个优点:
  
-    It's fairly simple from a theme designer point of view, most people are working with similar techniques when composing themes with tools such as [[http://www.gimp.org/|The GIMP]]. +  从主题设计者的角度来看,这相当简单的,大多数人在用工具(比如 [[http://www.gimp.org/|GIMP]])创作主题都碰到类似的技术。 
-    It's backward compatible with xfwm4 from Xfce 4.0, the PNG files are just ignored by xfwm4 4.0.+  这是向后兼容 Xfce4.0 xfwm4 的,xfwm4 4.0 会直接忽略 PNG 文件。
  
 +===== 结语 =====
  
 +我希望这条创建 xfwm4 主题的 “how-to” 能帮助你设计自己的主题。如果你能在 [[http://www.themedepot.org]](首选的 XFCE 主题网站)或者[[http://themes.freshmeat.net]] 与他人分享你的主题那就更好了。
  
-===== Conclusion ===== +您还可以在 [[http://www.xfce-look.org]] 找到 XFCE 主题  
-I hope this small "how-to" for creating themes for xfwm4 will help you design your own themes. It would be great if you could share your themes with others on [[http://www.themedepot.org]] (which is the prefered site for xfce related themesor from [[http://themes.freshmeat.net]].+===== ​​按钮和 frame 部件的名称列表 ===== 
 +这是所有的装饰部件名称的列表,你可以很容易地复制并粘贴。(提示:如果使用的是 Firefox 按住 Ctrl 键的同时拖动可以选择单元格,而不只是行。;-)
  
-you can also find xfce theme at [[http://www.xfce-look.org]] +激活              非激活              按下 (只用于按钮) ^
- +
-===== List of frame and button part names ===== +
- +
-This is a list of all possible part names in a decoration, so you can easily copy and paste them. (Tip: if using Firefox hold Ctrl while dragging, to select cells instead of lines. ;-)) +
- +
-Active              Inactive              Pressed (buttons only) ^+
 | menu-active         | menu-inactive         | menu-pressed     | | menu-active         | menu-inactive         | menu-pressed     |
 | shade-active        | shade-inactive        | shade-pressed    | | shade-active        | shade-inactive        | shade-pressed    |
Line 252: Line 250:
 | left-active         | left-inactive                          | | left-active         | left-inactive                          |
  
-===== Credits ===== +===== 荣誉 ===== 
-This how-to has been started by Drewbian (drewbian at tsn dot cc) and later modifed by Olivier Fourdan (fourdan at xfce dot org). +这条 how-to 最初由 Drewbiandrewbian at tsn dot cc)创建,后来被 Olivier Fourdanfourdan at xfce dot org)Fourdan 修改。