Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
ru:howto:xfwm4_theme [2020/05/24 22:27] – [Из Википедии, свободной энциклопедии (перевод англоязычной версии статьи)] vseprop | ru:howto:xfwm4_theme [2020/05/24 23:19] – [Новые возможности, добавленные в Xfwm 4.2] vseprop |
---|
| |
==== Значок приложения ==== | ==== Значок приложения ==== |
При помощи необязательного параметра **show_app_icon** можно заменять кнопку меню управления окном на значок, соответствующий открытому приложению. Размер значка приложения при этом ограничивается шириной кнопки меню. Stay tuned! | При помощи необязательного параметра **show_app_icon** можно заменять кнопку меню управления окном на значок, соответствующий открытому приложению. Размер значка приложения при этом ограничивается шириной кнопки меню. |
| |
* show_app_icon=true //#Показывать значки приложений// | * show_app_icon=true //#Показывать значки приложений// |
| |
| |
===== 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 achieve 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}} | {{ 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.png, top-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 отрисовывает тему и без них, но когда они присутствуют и содержат альфа-канал (прозрачные пиксели), изображения этих файлов автоматически накладываются поверх изображений соответствующих файлов 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. | * Она обратно совместима с xfwm4 из версии Xfce 4.0, где файлы PNG просто игнорируются. |
| |
| |
| |
===== Conclusion ===== | ===== Заключение ===== |
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 themes) or from [[http://themes.freshmeat.net]]. | Авторы надеются, что этот маленький урок "how-to" по созданию тем оформления для xfwm4 поможет вам разрабатывать собственные темы. Пожалуйста, поделитесь вашими темами с другими например на [[http://www.xfce-look.org]]. |
| |
you can also find xfce theme at [[http://www.xfce-look.org]] | ===== Список названий файлов для частей и кнопок темы оформления ===== |
| |
===== List of frame and button part names ===== | Это список названий файлов для всех возможных частей темы оформления, поэтому их можно просто копировать отсюда. (Подсказка: при использовании браузера Firefox удерживайте Ctrl при перетаскивании курсора, чтобы выбирать ячейки вместо текстовых строк ;-)) |
| |
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) ^ Подсвеченные кнопки (prelight) ^ Нажатые кнопки (pressed) ^ Задействованные кнопки активного окна (toggled) ^ Задействованные кнопки неактивного окна (toggled) ^ Подсвеченные задействованные кнопки (toggled prelight) ^ Задействованные нажатые кнопки (toggled pressed) ^ |
| |
^ Active ^ Inactive ^ Prelight (buttons only) ^ Pressed (buttons only) ^ Toggled active (buttons only) ^ Toggled inactive (buttons only) ^ Toggled prelight (buttons only) ^ Toggled pressed (buttons only) ^ | |
| menu-active | menu-inactive | menu-prelight | menu-pressed | | | | | | | menu-active | menu-inactive | menu-prelight | menu-pressed | | | | | |
| shade-active | shade-inactive | shade-prelight | shade-pressed | shade-toggled-active | shade-toggled-inactive | shade-toggled-prelight | shade-toggled-pressed | | | shade-active | shade-inactive | shade-prelight | shade-pressed | shade-toggled-active | shade-toggled-inactive | shade-toggled-prelight | shade-toggled-pressed | |
| bottom-left-active | bottom-left-inactive | | | | | | | | | bottom-left-active | bottom-left-inactive | | | | | | | |
| 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) and Renato Santos (renatosan at gmail dot com). | Этот урок how-to изначально создан пользователем Drewbian (drewbian собачка tsn точка cc) и позже изменен пользователями Olivier Fourdan (fourdan собачка xfce точка org) и Renato Santos (renatosan собачка gmail точка com). Англоязычная страница переведена (с небольшими изменениями) на русский пользователем Всё Пропатчено (vse точка propatcheno собачка gmail точка com). |