Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ The complete user guide (English) explains every feature, step by step:

- **Read it online:** [docs/guide/en](docs/guide/en/README.md)
- **PDF:** [OpenSkinDesigner-Guide-en.pdf](https://raw.githubusercontent.com/OwnerPlugins/OpenSkin-Designer/guide/OpenSkinDesigner-Guide-en.pdf) – built automatically by GitHub every time the guide changes
- **From the program:** `? → User guide` (online) or `? → User guide (PDF)`
- **Italiano:** [online](docs/guide/it/README.md) · [PDF](https://raw.githubusercontent.com/OwnerPlugins/OpenSkin-Designer/guide/OpenSkinDesigner-Guide-it.pdf)
- **Français:** [en ligne](docs/guide/fr/README.md) · [PDF](https://raw.githubusercontent.com/OwnerPlugins/OpenSkin-Designer/guide/OpenSkinDesigner-Guide-fr.pdf)
- **From the program:** `? → User guide` (online) or `? → User guide (PDF)`, in the language of the program when the translation exists

## Screenshots

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/en/04-skin-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ Type in the **Search...** box above the tree to show only the nodes whose text m

1. Press the mouse on a screen and drag it.
2. The row it would land on is highlighted.
- Drop **on another screen**: it goes just before that screen.
- Drop **on the `skin` row or on an include**: it goes to the end of that file.
- Drop on a widget: it counts as the widget's screen.
- Drop **on another screen**: it goes just before that screen.
- Drop **on the `skin` row or on an include**: it goes to the end of that file.
- Drop on a widget: it counts as the widget's screen.
3. Where a drop is not allowed, the cursor shows a "no" sign.

A screen can move between `skin.xml` and an include, or between includes. If the target file already has a screen with the same name, OSD does not move it and tells you.
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/en/10-check-skin.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Many skins install their **own** renderers and converters, for example Aglare (`

1. In the check window press **Skin components...**.
2. Add one or more folders:
- **Add folder...**: the skin package (`enigma2-plugin-skins-aglare`), its `usr\lib\enigma2\python\Components` folder, or directly `Converter` / `Renderer`. OSD finds the right folder.
- **Download from the box**: copies `Components/Converter` and `Components/Renderer` from the receiver with the FTP settings of OSD. The copy goes to the `skin_components` folder of OSD, never into the skin.
- **Add folder...**: the skin package (`enigma2-plugin-skins-aglare`), its `usr\lib\enigma2\python\Components` folder, or directly `Converter` / `Renderer`. OSD finds the right folder.
- **Download from the box**: copies `Components/Converter` and `Components/Renderer` from the receiver with the FTP settings of OSD. The copy goes to the `skin_components` folder of OSD, never into the skin.
3. The check runs again.

Folders are remembered per skin and used together: for example the copy from the box plus the skin package plus a plugin package. The skin's components are also offered by autocomplete, and the attributes their renderers read no longer give warnings.
Expand Down
10 changes: 5 additions & 5 deletions docs/guide/en/12-color-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ The screens use the **role names** (`foregroundColor="Foreground"`), so changing
2. Choose the profile at the top (Dark and Light to start with), or **New**, **Copy**, **Rename**, **Delete**.
3. **Palette** (left): **Add**, **Edit** (or double-click), **Remove**. **From the skin** brings in all colors of the skin's `<colors>`.
4. **Roles** (right): select a role and choose its color:
- **From the palette**: one of the palette colors;
- **By hand**: type `#aarrggbb` or press **Pick...**, and set the transparency (0 = opaque).
- **From the palette**: one of the palette colors;
- **By hand**: type `#aarrggbb` or press **Pick...**, and set the transparency (0 = opaque).
5. **Save** keeps the profiles in `osd_colors.json` next to `skin.xml`.

## Roles
Expand Down Expand Up @@ -49,9 +49,9 @@ An existing skin (for example Aglare) uses its own names (`black1`, `white1`, `#
2. OSD proposes a role for the most likely ones (the most used `backgroundColor` → Background, `foregroundColorSelected` → Selected row text...). Change them: select one or more colors and choose the role below. **(leave as is)** keeps a color.
3. A yellow note warns when two different colors get the same role (they will look the same).
4. **Replace in the screens**:
- the profile takes the current values for the chosen roles, so the skin looks the same;
- the role colors are written;
- the screens get the role names.
- the profile takes the current values for the chosen roles, so the skin looks the same;
- the role colors are written;
- the screens get the role names.

From then on, changing a role's color and pressing **Apply to skin** recolors every screen that used it. Gradients and color lists (`foregroundColors="a,b"`) are not changed. Undo takes it all back in one step.

Expand Down
8 changes: 4 additions & 4 deletions docs/guide/en/13-color-buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ The wrong form stops the screen. OSD reads the right form for each screen from t
2. Select a screen in the tree (or not, to work on all screens).
3. **Tools → Color Buttons...**.
4. Choose the **style**:
- **Filled**: the text on the color;
- **Color bar under the text**;
- **Icon + text**: the icon file uses `{color}`, for example `buttons/{color}.png` becomes `buttons/red.png`;
- **Colored text only**.
- **Filled**: the text on the color;
- **Color bar under the text**;
- **Icon + text**: the icon file uses `{color}`, for example `buttons/{color}.png` becomes `buttons/red.png`;
- **Colored text only**.
5. Set **width**, **height**, **space between**, **left** and **bottom margin**, **bar height**, **icon size** and **font** (`Regular;24`). The preview uses the skin's colors.
6. Choose **where**: the selected screen, or all screens whose code has color buttons.
7. Keep **Remove the key_red ... key_blue widgets already in those screens** ticked, otherwise buttons are doubled.
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/en/14-receiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Some tools talk to the receiver over the network. Set them up once.

1. **File → Open**, then **Configure** (in the network part of the window).
2. Fill in:
- **Network path**: the skins folder of the receiver as a Windows network path (UNC), for example `\\192.168.1.78\root\usr\share\enigma2`;
- **Telnet**: host, port (23), user, password;
- **FTP**: host, port (21), user, password.
- **Network path**: the skins folder of the receiver as a Windows network path (UNC), for example `\\192.168.1.78\root\usr\share\enigma2`;
- **Telnet**: host, port (23), user, password;
- **FTP**: host, port (21), user, password.

On most receivers the user is `root`. The network share must be enabled on the receiver (Samba).

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/en/19-maintainers.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ Existing lines are never changed. Texts whose placeholders (`{0}`) would change

The guide is Markdown in `docs/guide/<language>/` of the public repository, one file per chapter. To change it, edit the file on GitHub and commit.

The workflow `.github/workflows/guide.yml` turns it into PDF files (`OpenSkinDesigner-Guide-en.pdf`, one per language folder) and publishes them to the **`guide`** branch. **? → User guide** in OSD opens the online guide; **? → User guide (PDF)** downloads the latest PDF next to the program and opens it, so it also works offline later.
The workflow `.github/workflows/guide.yml` turns it into PDF files (`OpenSkinDesigner-Guide-en.pdf`, one per language folder) and publishes them to the **`guide`** branch. **? → User guide** in OSD opens the online guide; **? → User guide (PDF)** downloads the latest PDF next to the program and opens it, so it also works offline later. Both use the language of the program when that translation exists, otherwise English.

To translate: copy `docs/guide/en` to `docs/guide/it` and translate the files; the workflow builds the Italian PDF too.
To translate: copy `docs/guide/en` to `docs/guide/<code>` and translate the files; the workflow builds that PDF too. Then add the code to the list of guide languages in `fMain.cs`.

Screenshots go into `docs/guide/images/` and are referenced as `../images/name.png`.

## Build and installer

- Development sources: private repository `OwnerPlugins/OpenSkinDeveloper`, folder `e2skinner2` (.NET 10, WinForms, Windows only).
- Publish into a folder, then run the Inno Setup script `script.iss` to build the installer.
- Publish into a folder (`dotnet publish e2skinner2\OpenSkinDesigner.csproj -c Release -r win-x64 -o publish`), then run the Inno Setup script `script.iss` to build the installer.
- The version is in `OpenSkinDesigner.csproj` and `Properties/AssemblyInfo.cs`; the changelog shown in About is in `Frames/fAbout.cs`.
46 changes: 46 additions & 0 deletions docs/guide/fr/01-getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# 1. Premiers pas

## Installation

1. Téléchargez l'installateur `OpenSkinDesigner_Setup.exe` depuis les releases du dépôt, ou le zip avec les fichiers du programme.
2. Lancez l'installateur et gardez le dossier proposé, ou choisissez-en un autre.
3. Démarrez **OpenSkin Designer** depuis le menu Démarrer.

OSD fonctionne sous **Windows 10 et 11** (64 bits). Aucun runtime supplémentaire n'est nécessaire : tout est dans le dossier du programme.

Dans le dossier du programme, à côté de `OpenSkinDesigner.exe` :

| Dossier ou fichier | Contenu |
| --- | --- |
| `skins` | Les skins ouverts avec **File → Open** |
| `fonts` | Les polices utilisées pour dessiner les screens |
| `templates` | Les modèles XML du menu **Template** |
| `languages` | Les traductions (`*.lng`) |
| `catalogs` | Les catalogues d'images téléchargés avec **Image Catalog** |
| `skin_components` | Renderers et converters copiés depuis le récepteur |
| `license.lic` | Votre licence premium, après activation |

Vos réglages sont enregistrés dans `%AppData%\OpenSkinDesigner\settings.json`.

## Premier démarrage

1. OSD s'ouvre avec un designer vide.
2. Choisissez la langue dans **Settings → Preferences → Language**. Les menus changent tout de suite.
3. Ouvrez un skin avec **File → Open** (les skins du dossier `skins`) ou **File → Open skin from folder...** (n'importe quel dossier, même en réseau).
4. Choisissez l'image pour laquelle le skin est fait dans **Tools → Image Catalog...** (voir le [chapitre 9](09-image-catalog.md)). C'est facultatif, mais l'autocomplétion, la vérification du skin et les outils premium l'utilisent.

## Gratuit et premium

Presque tout OSD est gratuit. Certains outils demandent une licence premium : Screen Coverage, Color Profiles, Color Buttons, Telnet, import et export vers le récepteur, Skin Information et Skin Converter. La liste complète est dans le [sommaire](README.md#gratuit-et-premium-en-bref).

Pour activer une licence :

1. Ouvrez **Tools → License**.
2. Remplissez **Name**, **Email** et **Activation Key**, puis appuyez sur **Activate**.
3. La fenêtre À propos (**? → Information**) affiche alors *License: Premium*.

Pour obtenir une clé, contactez l'auteur (l'adresse est dans la fenêtre License).

## Mises à jour

**? → Check for updates** compare votre version avec la dernière sur GitHub. S'il existe une nouvelle version, OSD demande avant de mettre à jour, et copie d'abord `settings.json` et `license.lic` dans un dossier de sauvegarde du dossier temporaire.
49 changes: 49 additions & 0 deletions docs/guide/fr/02-main-window.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 2. La fenêtre principale

La fenêtre a quatre parties.

| Partie | Où | Rôle |
| --- | --- | --- |
| **Arbre du skin** | à gauche | Chaque élément du skin : screens, panels, includes, couleurs, polices, widgets |
| **Designer** | au centre, onglet *Designer* | Le screen sélectionné dessiné comme sur le récepteur ; déplacer et redimensionner à la souris |
| **Code** | au centre, onglet *Code* | Le XML de l'élément sélectionné, avec coloration et repli |
| **Propriétés** | à gauche, sous l'arbre | Les attributs de l'élément sélectionné (position, taille, couleurs, police...) |

## Barres d'outils

La barre principale, de gauche à droite :

| Bouton | Action |
| --- | --- |
| Exit | Ferme OSD |
| New / Open / Save | Crée, ouvre et enregistre un skin |
| Add Label / Add Pixmap / Add Widget | Ajoute un élément au screen sélectionné |
| Delete Element | Supprime l'élément sélectionné |
| Undo / Redo | Annule ou refait la dernière modification |
| Hide Root | Masque ou affiche le panneau de l'arbre, pour agrandir le designer |
| Edit Root | Affiche tout le fichier dans l'onglet Code, screens repliés |
| Add Include | Ajoute un `<include>` au skin |
| Add Screen / Add Panel | Crée un nouveau screen ou panel |
| Move Up / Move Down | Déplace le screen sélectionné d'une place |
| Sort Screens | Trie les screens par ordre alphabétique (voir menu **Sort**) |
| Telnet | Ouvre la fenêtre Telnet *(premium)* |

La barre du designer (au-dessus du designer) est expliquée au [chapitre 5](05-designer.md).

## Menus

| Menu | Contenu |
| --- | --- |
| **File** | New, Open, Open skin from folder, Open other XML from same folder, Open Screen, Import Screen, Save, Save As |
| **Edit** | Undo, Redo, supprimer |
| **Element** | Ajouter screen, panel, label, pixmap, widget, include ; Add OpenATV Element ; Create New Include File |
| **Template** | Insère du XML prêt à l'emploi depuis le dossier `templates` |
| **Settings** | Preferences, Colors, Fonts, Resolution, WindowStyles, options |
| **Sort** | Case sensitive, Case insensitive, Restore original |
| **Tools** | Convert Skin, Telnet Commands, Import/Export Skin, Skin Information, Image Catalog, Check Skin Against Image, Screen Coverage, Color Profiles, Color Buttons, License |
| **Units** | Pixels, Millimeters, Centimeters, Inches (pour les règles et les propriétés) |
| **?** | Information (À propos), Check for updates, Keyboard Shortcuts, User guide |

## Barre d'état

La barre du bas affiche la grille (*Grid: Off* ou le pas en pixels) et de courts messages sur la dernière action.
56 changes: 56 additions & 0 deletions docs/guide/fr/03-skins-and-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# 3. Ouvrir, créer et enregistrer des skins

## Ouvrir un skin

| Commande | Quand l'utiliser |
| --- | --- |
| **File → Open** | Un skin dans le dossier `skins` d'OSD |
| **File → Open skin from folder...** | Un skin n'importe où : autre disque, partage réseau, dépôt cloné |
| **File → Open other XML from same folder...** | Un autre XML du même skin, par exemple `skin_alt.xml` |
| **File → Open Screen** | Un seul screen enregistré dans son propre fichier XML |
| **File → Import Screen** | Copie dans le skin ouvert les screens d'un fichier XML (tous sont importés) |

À l'ouverture, OSD lit `skin.xml` et tous les fichiers qu'il inclut, et les affiche dans l'arbre. La barre de titre indique le nom du skin et sa résolution, par exemple *Aglare-FHD – 1920x1080*.

## Créer un nouveau skin

1. **File → New** (ou le bouton *Create new skin*).
2. Choisissez la résolution : 1280x720 (HD), 1366x768, 1920x1080 (FHD), 2560x1440 (WQHD), 3840x2160 (UHD) ou 1920x2160.
3. Donnez un nom au skin. OSD crée le dossier `skins\<nom>` avec un `skin.xml` de base et l'ouvre. Si le dossier existe, il demande avant d'écraser.

## Les fichiers include

Les gros skins répartissent leurs screens sur plusieurs fichiers :

```xml
<skin>
<include filename="skin_templates.xml"/>
<screen name="InfoBar" ...> ... </screen>
</skin>
```

- Un include apparaît dans l'arbre comme **include : nom du fichier**, avec ses screens en dessous.
- Sélectionnez un include pour voir son contenu dans l'onglet Code ; **Sync** écrit la modification dans le fichier include.
- **Element → Create New Include File** crée un include vide et l'ajoute au skin.
- **Clic droit sur un screen → Create Include** déplace les screens sélectionnés dans un nouveau fichier include.
- **Clic droit → Expand all** ouvre tous les includes.

Les modifications des includes restent en mémoire jusqu'à l'enregistrement, comme celles de `skin.xml`.

## Enregistrer

- **File → Save** (ou le bouton Save) écrit `skin.xml` **et tous les fichiers include** ouverts dans l'arbre.
- **File → Save As** enregistre le skin sous un autre nom.
- Si vous fermez ou ouvrez un autre skin avec des modifications non enregistrées, OSD demande : **Oui** = enregistrer et continuer, **Non** = continuer sans enregistrer, **Annuler** = rester.
- L'**Auto-save** (Preferences) peut enregistrer toutes les quelques minutes.

OSD garde aussi des copies de sauvegarde des fichiers qu'il réécrit dans le dossier du skin ; les anciennes sauvegardes peuvent être nettoyées.

## Fichiers ajoutés par OSD au dossier du skin

| Fichier | Écrit par | Utilisé par Enigma2 ? |
| --- | --- | --- |
| `osd_colors.json` | Color Profiles | Non, ignoré |
| `osd_buttons.json` | Color Buttons | Non, ignoré |

Vous pouvez les supprimer ; vous perdez seulement les profils ou le style de touches enregistrés.
57 changes: 57 additions & 0 deletions docs/guide/fr/04-skin-tree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# 4. L'arbre du skin

L'arbre de gauche montre le skin tel qu'il est dans les fichiers : la racine `skin`, puis les commentaires, `colors`, `fonts`, `windowstyle`, les screens, et chaque include avec ses screens.

| Icône / texte | Signification |
| --- | --- |
| `screen - InfoBar` | Un screen ; ses widgets sont en dessous |
| `include : skin_templates.xml` | Un fichier include ; ses screens sont en dessous |
| `#comment ...` | Un commentaire XML |
| `colors`, `fonts`, `parameters` | Sections du skin |

Cliquez sur un nœud pour le sélectionner : le designer dessine son screen, le panneau Propriétés montre ses attributs, l'onglet Code son XML. Double-clic :

- sur un nœud **color** ou **font** : ouvre l'éditeur de couleurs ou de polices ;
- sur un nœud **convert** : ouvre l'assistant Convert ;
- sur un **widget** ou un **screen** : passe à l'onglet Code.

## Rechercher

Tapez dans la zone **Search...** au-dessus de l'arbre pour n'afficher que les nœuds dont le texte correspond. Videz la zone pour revoir tout l'arbre.

## Ajouter des screens et des panels

- **Add Screen** (ou **Element → Screen**) crée `NewScreen` à la taille du skin.
- Le nouveau screen va dans le fichier sur lequel vous travaillez : à la racine de `skin.xml` si la ligne `skin` (ou un de ses screens) est sélectionnée, dans un include si l'include (ou un de ses screens) est sélectionné. Un screen n'est jamais créé dans un autre screen.
- Renommez-le dans le panneau Propriétés (`name`).

## Déplacer des screens

**Glisser-déposer :**

1. Appuyez sur un screen avec la souris et faites-le glisser.
2. La ligne où il arriverait est mise en surbrillance.
- Déposé **sur un autre screen** : il se place juste avant.
- Déposé **sur la ligne `skin` ou sur un include** : il va à la fin de ce fichier.
- Déposé sur un widget : cela compte comme le screen du widget.
3. Là où ce n'est pas permis, le curseur affiche une interdiction.

Un screen peut passer de `skin.xml` à un include, ou d'un include à un autre. Si le fichier de destination a déjà un screen du même nom, OSD ne le déplace pas et vous le signale.

**Move Up / Move Down** déplacent le screen sélectionné d'une place, à la racine ou dans un include.

## Trier

- **Sort Screens** avec la ligne `skin` sélectionnée trie les screens de `skin.xml` ; avec un include, les screens de cet include ; avec un screen, ses éléments enfants qui ont un nom.
- **Sort → Case sensitive / Case insensitive** choisit la façon de comparer les noms (majuscules distinguées ou non).
- **Sort → Restore original** remet l'ordre qu'avaient les screens à l'ouverture du skin.

## Supprimer

Sélectionnez un élément et appuyez sur **Suppr** (ou **Delete Element**). Avec **Settings → Experimental delete mode**, l'arbre affiche des cases : cochez plusieurs éléments et appuyez sur **Suppr** pour tous les supprimer.

## Annuler et Refaire

**Ctrl+Z** (Annuler) et **Ctrl+Y** (Refaire) fonctionnent pour les déplacements, redimensionnements, changements de propriétés, ajouts, suppressions, glisser-déposer entre fichiers, et pour les grosses opérations premium (Apply to skin, Use roles in screens, Write the buttons), qui comptent chacune pour une seule étape.

Après l'une de ces grosses opérations, l'arbre est reconstruit : le même screen est resélectionné, mais les modifications faites *avant* ne peuvent plus être annulées une par une.
Loading
Loading