issue217:bodhi_corner
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue217:bodhi_corner [2025/05/17 18:00] – créée philou511 | issue217:bodhi_corner [2025/06/01 16:22] (Version actuelle) – d52fr | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Moksha theming | + | **This month’s Bodhi Corner is written by Stefan (aka @the_waiter). |
- | This month’s Bodhi Corner is written by Stefan (aka @the_waiter). | ||
I will try to introduce my way of theming for Moksha desktop. | I will try to introduce my way of theming for Moksha desktop. | ||
+ | |||
First important facts: | First important facts: | ||
- | Moksha or E themes are based on edje layer which is a part of EFL widget tool. | + | |
- | It is almost impossible to create a theme from scratch! The theme structure is predefined and strictly related to Moksha or modules code! | + | • |
- | Moksha theme covers only Moksha widgets! | + | • |
- | Edje theme has nothing to do with GTK or other themes, so applications like Thunar can not be themed with Moksha theme. Thunar is a GTK app so it needs the GTK theme. | + | • |
- | Let's get started: | + | • |
+ | |||
+ | Le Coin Bodhi de ce mois-ci est écrit par Stefan (alias @the_waiter). | ||
+ | |||
+ | Je vais vous présenter ma méthode de création de thèmes pour Moksha Desktop. | ||
+ | |||
+ | Premiers points importants : | ||
+ | |||
+ | ••Les thèmes Moksha ou E sont basés sur la couche edje, intégrée à l' | ||
+ | ••Créer un thème de toutes pièces est quasiment impossible ! La structure du thème est prédéfinie et strictement liée au code de Moksha ou des modules ! | ||
+ | ••Le thème Moksha ne couvre que les widgets Moksha ! | ||
+ | ••Le thème Edje n'a rien à voir avec GTK ni avec d' | ||
+ | |||
+ | |||
+ | **Let's get started | ||
The script is saved as an edc file. An EDC (Edje data collection) file is a text file that contains the code describing the position, size, and other parameters of graphical elements that compose the visual aspect of your application. In addition to graphical elements, it can also handle sounds. EDC is a description language where the objects of an interface are described by using a text description. Basic EDC file structure: | The script is saved as an edc file. An EDC (Edje data collection) file is a text file that contains the code describing the position, size, and other parameters of graphical elements that compose the visual aspect of your application. In addition to graphical elements, it can also handle sounds. EDC is a description language where the objects of an interface are described by using a text description. Basic EDC file structure: | ||
+ | |||
color_classes {} | color_classes {} | ||
styles {} | styles {} | ||
Ligne 20: | Ligne 36: | ||
} | } | ||
- | EDC block diagram: | + | OK, enough theory. My workflow now. The best practice of modifying themes is to choose one you like and want to change. The theme is compiled as an edj file and you need to decompile it: |
- | This is a real filled example of edc file: | + | edje_decc theme_name.edj** |
+ | |||
+ | Commençons | ||
+ | |||
+ | Le script est enregistré au format | ||
+ | |||
+ | color_classes {} | ||
+ | styles {} | ||
+ | collections { | ||
+ | group { | ||
+ | name: " | ||
+ | parts {} | ||
+ | programs {} | ||
+ | } | ||
+ | } | ||
+ | |||
+ | Bon, assez de théorie. Passons maintenant à mon workflow. La meilleure pratique pour modifier les thèmes est de choisir celui qui vous plaît et que vous souhaitez modifier. Le thème est compilé au format edj et vous devez le décompiler : | ||
- | OK, enough theory. My workflow now. The best practice of modifying themes is to choose one you like and want to change. The theme is compiled as an edj file and you need to decompile it: | ||
edje_decc theme_name.edj | edje_decc theme_name.edj | ||
- | This command will decompile the whole theme and create a folder with edc files, png or jpg pictures, and sound files. It is great to try to compile theme back if no warnings or errors this way: | + | |
+ | |||
+ | **This command will decompile the whole theme and create a folder with edc files, png or jpg pictures, and sound files. It is great to try to compile theme back if no warnings or errors this way: | ||
Use ./build.sh bash with predefined compiling commands (example: Zentithal theme): | Use ./build.sh bash with predefined compiling commands (example: Zentithal theme): | ||
+ | |||
edje_cc $@ -id . -fd . default-dm.edc -o ../ | edje_cc $@ -id . -fd . default-dm.edc -o ../ | ||
+ | |||
This command will build the theme according to the default-dm.edc file where there’s a list of other referenced edc files. | This command will build the theme according to the default-dm.edc file where there’s a list of other referenced edc files. | ||
- | If the compilation process is successful, you need to change the part you need. For example, we can start with the theme background. Look up the background.edc file where the BG picture should be included. If not, you need to grep " | + | |
- | In case you need to change windows decorators (borders), look up border.edc file or find e/ | + | If the compilation process is successful, you need to change the part you need. For example, we can start with the theme background. Look up the background.edc file where the BG picture should be included. If not, you need to grep " |
+ | |||
+ | Cette commande décompile l' | ||
+ | |||
+ | Utilisez le bash ./build.sh avec des commandes de compilation prédéfinies (exemple pour le thème Zentithal) : | ||
+ | |||
+ | edje_cc $@ -id . -fd . default-dm.edc -o ../ | ||
+ | |||
+ | Cette commande compile le thème à partir du fichier default-dm.edc, | ||
+ | |||
+ | Si la compilation réussit, vous devrez modifier la partie souhaitée. Par exemple, nous pouvons commencer par l' | ||
+ | |||
+ | |||
+ | **In case you need to change windows decorators (borders), look up border.edc file or find e/ | ||
https:// | https:// | ||
+ | |||
+ | |||
https:// | https:// | ||
- | This was just a brief introduction to Moksha theming. For more info study EDC reference. | + | This was just a brief introduction to Moksha theming. For more info study EDC reference.** |
- | Zenithal theme look: | + | Si vous devez modifier les décorateurs de fenêtres (bordures), recherchez le fichier border.edc ou le groupe e/ |
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | Ceci n' | ||
issue217/bodhi_corner.1747497601.txt.gz · Dernière modification : 2025/05/17 18:00 de philou511