issue217:bodhi_corner
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
issue217:bodhi_corner [2025/06/01 16:11] – d52fr | issue217:bodhi_corner [2025/06/01 16:22] (Version actuelle) – d52fr | ||
---|---|---|---|
Ligne 9: | Ligne 9: | ||
• Moksha theme covers only Moksha widgets! | • 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.** | • 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.** | ||
+ | |||
+ | 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' | **Let' | ||
Ligne 27: | Ligne 39: | ||
edje_decc theme_name.edj** | edje_decc theme_name.edj** | ||
+ | |||
+ | Commençons | ||
+ | |||
+ | Le script est enregistré au format edc. Un fichier EDC (Edje data collection) est un fichier texte contenant le code décrivant la position, la taille et d' | ||
+ | |||
+ | 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 : | ||
+ | |||
+ | 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: | ||
Ligne 37: | Ligne 68: | ||
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 " | 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/ | **In case you need to change windows decorators (borders), look up border.edc file or find e/ | ||
Ligne 46: | Ligne 88: | ||
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.** | ||
+ | |||
+ | 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.1748787103.txt.gz · Dernière modification : 2025/06/01 16:11 de d52fr