From 787a2ccb5e45add8535e8d5a1dcd7ee3dc7e75a0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 14:47:31 +0000 Subject: [PATCH 1/3] Add the user guide (English) and its PDF build - docs/guide/en: 20 chapters plus contents, covering the whole program (window, files, tree, designer, Code tab, colors and fonts, Image Catalog, skin check and skin components, Screen Coverage, Color Profiles, Color Buttons, receiver tools, converter, preferences, shortcuts, troubleshooting, maintainers, changelog 5.2.0.0). - docs/guide/build_pdf.py: one PDF per language folder (Markdown -> HTML -> PDF with weasyprint); links between chapters work inside the PDF. - .github/workflows/guide.yml: builds the PDF when the guide changes and publishes it to the "guide" branch, used by the program's ? menu. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EVc11N8zrA7gm5kdSWgpH9 --- .github/workflows/guide.yml | 60 ++++++++++++ .gitignore | 1 + docs/guide/build_pdf.py | 93 +++++++++++++++++++ docs/guide/en/01-getting-started.md | 46 +++++++++ docs/guide/en/02-main-window.md | 49 ++++++++++ docs/guide/en/03-skins-and-files.md | 56 +++++++++++ docs/guide/en/04-skin-tree.md | 57 ++++++++++++ docs/guide/en/05-designer.md | 43 +++++++++ docs/guide/en/06-editing-elements.md | 52 +++++++++++ docs/guide/en/07-code-tab.md | 31 +++++++ docs/guide/en/08-colors-fonts-windowstyles.md | 42 +++++++++ docs/guide/en/09-image-catalog.md | 51 ++++++++++ docs/guide/en/10-check-skin.md | 40 ++++++++ docs/guide/en/11-screen-coverage.md | 37 ++++++++ docs/guide/en/12-color-profiles.md | 58 ++++++++++++ docs/guide/en/13-color-buttons.md | 38 ++++++++ docs/guide/en/14-receiver.md | 55 +++++++++++ docs/guide/en/15-converter.md | 25 +++++ docs/guide/en/16-preferences.md | 25 +++++ docs/guide/en/17-shortcuts.md | 22 +++++ docs/guide/en/18-troubleshooting.md | 29 ++++++ docs/guide/en/19-maintainers.md | 65 +++++++++++++ docs/guide/en/20-changelog.md | 38 ++++++++ docs/guide/en/README.md | 48 ++++++++++ docs/guide/images/.gitkeep | 0 25 files changed, 1061 insertions(+) create mode 100644 .github/workflows/guide.yml create mode 100644 docs/guide/build_pdf.py create mode 100644 docs/guide/en/01-getting-started.md create mode 100644 docs/guide/en/02-main-window.md create mode 100644 docs/guide/en/03-skins-and-files.md create mode 100644 docs/guide/en/04-skin-tree.md create mode 100644 docs/guide/en/05-designer.md create mode 100644 docs/guide/en/06-editing-elements.md create mode 100644 docs/guide/en/07-code-tab.md create mode 100644 docs/guide/en/08-colors-fonts-windowstyles.md create mode 100644 docs/guide/en/09-image-catalog.md create mode 100644 docs/guide/en/10-check-skin.md create mode 100644 docs/guide/en/11-screen-coverage.md create mode 100644 docs/guide/en/12-color-profiles.md create mode 100644 docs/guide/en/13-color-buttons.md create mode 100644 docs/guide/en/14-receiver.md create mode 100644 docs/guide/en/15-converter.md create mode 100644 docs/guide/en/16-preferences.md create mode 100644 docs/guide/en/17-shortcuts.md create mode 100644 docs/guide/en/18-troubleshooting.md create mode 100644 docs/guide/en/19-maintainers.md create mode 100644 docs/guide/en/20-changelog.md create mode 100644 docs/guide/en/README.md create mode 100644 docs/guide/images/.gitkeep diff --git a/.github/workflows/guide.yml b/.github/workflows/guide.yml new file mode 100644 index 0000000..28b18c5 --- /dev/null +++ b/.github/workflows/guide.yml @@ -0,0 +1,60 @@ +name: User guide + +# Builds the PDF of the user guide (docs/guide//*.md) and publishes it +# to the "guide" branch, where OpenSkin Designer downloads it (? > User guide (PDF)). +# Runs only when the guide changes: a few seconds of Actions time. +on: + push: + branches: [main] + paths: + - "docs/guide/**" + - ".github/workflows/guide.yml" + workflow_dispatch: + pull_request: + paths: + - "docs/guide/**" + - ".github/workflows/guide.yml" + +permissions: + contents: write + +concurrency: + group: user-guide-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.13" + + - name: Build PDF + run: | + sudo apt-get install -y -qq fonts-dejavu-core > /dev/null + pip install -q markdown weasyprint + python docs/guide/build_pdf.py --out out + ls -l out + + - name: Upload PDF as artifact + uses: actions/upload-artifact@v4 + with: + name: user-guide + path: out/ + retention-days: 14 + + # Publishing only happens from main, never from a pull request. + - name: Publish to the guide branch + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' + run: | + cd out + git init -q -b guide + git add . + git -c user.name="github-actions[bot]" \ + -c user.email="41898282+github-actions[bot]@users.noreply.github.com" \ + commit -q -m "User guide $(date -u +%F)" + git push -f "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" guide diff --git a/.gitignore b/.gitignore index 022d1ab..3e0d835 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ Source/e2skinner2/obj/ catalogs/cache/ catalogs/out/ __pycache__/ +docs/guide/out/ diff --git a/docs/guide/build_pdf.py b/docs/guide/build_pdf.py new file mode 100644 index 0000000..756920f --- /dev/null +++ b/docs/guide/build_pdf.py @@ -0,0 +1,93 @@ +#!/usr/bin/env python3 +"""Builds the PDF of the OpenSkin Designer guide from the Markdown chapters. + + python docs/guide/build_pdf.py # every language folder (en, it, ...) + python docs/guide/build_pdf.py --lang en # one language + python docs/guide/build_pdf.py --out dist # output folder (default docs/guide/out) + +One PDF per language folder: README.md (title page and contents) first, then the +chapters in file-name order. Links between chapters become links inside the PDF. +Needs: pip install markdown weasyprint +""" + +import argparse +import datetime +import glob +import html +import os +import re + +import markdown +from weasyprint import HTML + +HERE = os.path.dirname(os.path.abspath(__file__)) + +CSS = """ +@page { size: A4; margin: 18mm 16mm 20mm 16mm; + @bottom-center { content: counter(page); font-size: 9pt; color: #777; } } +@page :first { @bottom-center { content: none; } } +body { font-family: "DejaVu Sans", "Segoe UI", Arial, sans-serif; font-size: 10.5pt; line-height: 1.45; color: #1d1d1d; } +h1 { font-size: 20pt; color: #0b3d63; border-bottom: 2px solid #0b3d63; padding-bottom: 4px; margin-top: 0; } +h2 { font-size: 14pt; color: #0b3d63; margin-top: 18px; } +h3 { font-size: 12pt; margin-top: 14px; } +section.chapter { page-break-before: always; } +section.cover h1 { font-size: 28pt; border: none; margin-top: 60mm; } +section.cover .meta { color: #555; margin-bottom: 18mm; } +table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 9.5pt; } +th, td { border: 1px solid #c9d3dc; padding: 4px 6px; vertical-align: top; text-align: left; } +th { background: #e8eef4; } +code { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: 9pt; background: #f2f4f6; padding: 0 2px; } +pre { background: #f2f4f6; border: 1px solid #dde3e8; padding: 6px 8px; white-space: pre-wrap; font-size: 9pt; } +pre code { background: none; padding: 0; } +blockquote { border-left: 4px solid #9cb6cc; margin: 8px 0; padding: 2px 10px; color: #333; background: #f6f9fb; } +img { max-width: 100%; } +a { color: #0b5c99; text-decoration: none; } +""" + +LINK = re.compile(r'href="(\d\d-[\w-]+|README)\.md(#[^"]*)?"') + + +def chapter_id(filename): + return "ch-" + os.path.splitext(os.path.basename(filename))[0].lower() + + +def to_html(path): + text = open(path, encoding="utf-8").read() + body = markdown.markdown(text, extensions=["tables", "fenced_code", "sane_lists"]) + # chapter links -> anchors inside the PDF + return LINK.sub(lambda m: 'href="#%s"' % chapter_id(m.group(1)), body) + + +def build(lang_dir, out_dir): + lang = os.path.basename(lang_dir) + readme = os.path.join(lang_dir, "README.md") + chapters = sorted(f for f in glob.glob(os.path.join(lang_dir, "*.md")) if os.path.basename(f) != "README.md") + parts = [] + if os.path.isfile(readme): + parts.append('
%s

%s

' % ( + chapter_id(readme), to_html(readme).replace("

", "

", 1), + html.escape(datetime.date.today().isoformat()))) + for f in chapters: + parts.append('
%s
' % (chapter_id(f), to_html(f))) + document = "%s" % (CSS, "\n".join(parts)) + os.makedirs(out_dir, exist_ok=True) + target = os.path.join(out_dir, "OpenSkinDesigner-Guide-%s.pdf" % lang) + # base_url = the language folder, so ../images/x.png works as in the Markdown + HTML(string=document, base_url=lang_dir + os.sep).write_pdf(target) + print("written", target, "(%d chapters)" % len(chapters)) + return target + + +def main(): + ap = argparse.ArgumentParser() + ap.add_argument("--lang", help="language folder, e.g. en") + ap.add_argument("--out", default=os.path.join(HERE, "out")) + a = ap.parse_args() + langs = [os.path.join(HERE, a.lang)] if a.lang else sorted( + d for d in glob.glob(os.path.join(HERE, "*")) if os.path.isdir(d) and os.path.isfile(os.path.join(d, "README.md"))) + for d in langs: + build(d, a.out) + + +if __name__ == "__main__": + main() diff --git a/docs/guide/en/01-getting-started.md b/docs/guide/en/01-getting-started.md new file mode 100644 index 0000000..776d339 --- /dev/null +++ b/docs/guide/en/01-getting-started.md @@ -0,0 +1,46 @@ +# 1. Getting started + +## Install + +1. Download the installer `OpenSkinDesigner_Setup.exe` from the releases of the repository, or the zip with the program files. +2. Run the installer and keep the proposed folder, or choose another one. +3. Start **OpenSkin Designer** from the Start menu. + +OSD runs on **Windows 10 and 11** (64 bit). It needs no extra runtime: everything is inside the program folder. + +The program folder holds, next to `OpenSkinDesigner.exe`: + +| Folder or file | What it is | +| --- | --- | +| `skins` | The skins you open with **File → Open** | +| `fonts` | Fonts used to draw the screens | +| `templates` | XML templates of the **Template** menu | +| `languages` | Translations (`*.lng`) | +| `catalogs` | Image catalogs downloaded with **Image Catalog** | +| `skin_components` | Renderers and converters copied from the receiver | +| `license.lic` | Your premium license, after activation | + +Your settings are saved in `%AppData%\OpenSkinDesigner\settings.json`. + +## First start + +1. OSD opens with an empty designer. +2. Choose the language in **Settings → Preferences → Language**. The menus change at once. +3. Open a skin with **File → Open** (skins inside the `skins` folder) or **File → Open skin from folder...** (any folder, also on the network). +4. Choose the image the skin is made for in **Tools → Image Catalog...** (see [chapter 9](09-image-catalog.md)). It is optional, but autocomplete, the skin check and the premium tools use it. + +## Free and premium + +Most of OSD is free. Some tools need a premium license: Screen Coverage, Color Profiles, Color Buttons, Telnet, import and export to the receiver, Skin Information and the Skin Converter. The full list is in the [contents](README.md#free-and-premium-at-a-glance). + +To activate a license: + +1. Open **Tools → License**. +2. Fill in **Name**, **Email** and **Activation Key**, then press **Activate**. +3. The About window (**? → Information**) then shows *License: Premium*. + +For a key, contact the author (the address is shown in the License window). + +## Updates + +**? → Check for updates** compares your version with the latest one on GitHub. When a new version exists, OSD asks before updating, and it first copies `settings.json` and `license.lic` to a backup folder in your temporary folder. diff --git a/docs/guide/en/02-main-window.md b/docs/guide/en/02-main-window.md new file mode 100644 index 0000000..733473a --- /dev/null +++ b/docs/guide/en/02-main-window.md @@ -0,0 +1,49 @@ +# 2. The main window + +The window has four parts. + +| Part | Where | What it does | +| --- | --- | --- | +| **Skin tree** | left | Every element of the skin: screens, panels, includes, colors, fonts, widgets | +| **Designer** | centre, *Designer* tab | The selected screen drawn as on the receiver; move and resize with the mouse | +| **Code** | centre, *Code* tab | The XML of the selected element, with highlighting and folding | +| **Properties** | left, under the tree | The attributes of the selected element (position, size, colors, font...) | + +## Toolbars + +The main toolbar, from left to right: + +| Button | Action | +| --- | --- | +| Exit | Close OSD | +| New / Open / Save | Create, open and save a skin | +| Add Label / Add Pixmap / Add Widget | Add an element to the selected screen | +| Delete Element | Delete the selected element | +| Undo / Redo | Take back or repeat the last change | +| Hide Root | Hide or show the tree panel, to give the designer more room | +| Edit Root | Show the whole file in the Code tab, with the screens folded | +| Add Include | Add an `` to the skin | +| Add Screen / Add Panel | Create a new screen or panel | +| Move Up / Move Down | Move the selected screen one place | +| Sort Screens | Sort the screens alphabetically (see **Sort** menu) | +| Telnet | Open the Telnet window *(premium)* | + +The designer toolbar (above the designer) is explained in [chapter 5](05-designer.md). + +## Menus + +| Menu | Contents | +| --- | --- | +| **File** | New, Open, Open skin from folder, Open other XML from same folder, Open Screen, Import Screen, Save, Save As | +| **Edit** | Undo, Redo, delete | +| **Element** | Add screen, panel, label, pixmap, widget, include; Add OpenATV Element; Create New Include File | +| **Template** | Insert ready-made XML from the `templates` folder | +| **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 (for the rulers and properties) | +| **?** | Information (About), Check for updates, Keyboard Shortcuts, User guide | + +## Status bar + +The bar at the bottom shows the grid size (*Grid: Off* or the step in pixels) and short messages about the last action. diff --git a/docs/guide/en/03-skins-and-files.md b/docs/guide/en/03-skins-and-files.md new file mode 100644 index 0000000..2210ba9 --- /dev/null +++ b/docs/guide/en/03-skins-and-files.md @@ -0,0 +1,56 @@ +# 3. Opening, creating and saving skins + +## Open a skin + +| Command | Use it for | +| --- | --- | +| **File → Open** | A skin inside the `skins` folder of OSD | +| **File → Open skin from folder...** | A skin anywhere: another disk, a network share, a cloned repository | +| **File → Open other XML from same folder...** | Another XML of the same skin, for example `skin_alt.xml` | +| **File → Open Screen** | A single screen saved as its own XML file | +| **File → Import Screen** | Copy the screens of an XML file into the open skin (all screens of the file are imported) | + +When a skin opens, OSD reads `skin.xml` and every file it includes, and shows them in the tree. The title bar shows the skin name and its resolution, for example *Aglare-FHD – 1920x1080*. + +## Create a new skin + +1. **File → New** (or the *Create new skin* button). +2. Choose the resolution: 1280x720 (HD), 1366x768, 1920x1080 (FHD), 2560x1440 (WQHD), 3840x2160 (UHD) or 1920x2160. +3. Give the skin a name. OSD creates the folder `skins\` with a basic `skin.xml` and opens it. If the folder exists, it asks before overwriting. + +## Include files + +Big skins split their screens over several files: + +```xml + + + ... + +``` + +- An include shows in the tree as **include : file name**, with its screens below it. +- Select an include node to see its content in the Code tab; **Sync** writes the change to the include file. +- **Element → Create New Include File** creates an empty include and adds it to the skin. +- **Right-click a screen → Create Include** moves the selected screens into a new include file. +- **Right-click → Expand all** opens every include node. + +Changes to includes stay in memory until you save, like changes to `skin.xml`. + +## Save + +- **File → Save** (or the Save button) writes `skin.xml` **and every include file** that is open in the tree. +- **File → Save As** saves the skin under a new name. +- When you close or open another skin with unsaved changes, OSD asks: **Yes** = save and continue, **No** = continue without saving, **Cancel** = stay. +- **Auto-save** (Preferences) can save every few minutes. + +OSD also keeps backup copies of the files it rewrites in the skin folder; old backups can be cleaned up. + +## Files OSD adds to a skin folder + +| File | Written by | Used by Enigma2? | +| --- | --- | --- | +| `osd_colors.json` | Color Profiles | No, ignored | +| `osd_buttons.json` | Color Buttons | No, ignored | + +You can delete them; you only lose the saved profiles or button style. diff --git a/docs/guide/en/04-skin-tree.md b/docs/guide/en/04-skin-tree.md new file mode 100644 index 0000000..1fef989 --- /dev/null +++ b/docs/guide/en/04-skin-tree.md @@ -0,0 +1,57 @@ +# 4. The skin tree + +The tree on the left shows the skin as it is in the files: the root `skin`, then comments, `colors`, `fonts`, `windowstyle`, the screens, and each include with its own screens. + +| Icon / text | Meaning | +| --- | --- | +| `screen - InfoBar` | A screen; its widgets are below it | +| `include : skin_templates.xml` | An include file; its screens are below it | +| `#comment ...` | An XML comment | +| `colors`, `fonts`, `parameters` | Skin sections | + +Click a node to select it: the designer draws its screen, the Properties panel shows its attributes, the Code tab shows its XML. Double-click: + +- a **color** or **font** node opens the Colors or Fonts editor; +- a **convert** node opens the Convert wizard; +- a **widget** or **screen** switches to the Code tab. + +## Search + +Type in the **Search...** box above the tree to show only the nodes whose text matches. Clear the box to see the whole tree again. + +## Add screens and panels + +- **Add Screen** (or **Element → Screen**) creates `NewScreen` at the size of the skin. +- The new screen goes into the file you are working in: in the root of `skin.xml` when the `skin` row (or one of its screens) is selected, in an include when the include (or one of its screens) is selected. A screen is never created inside another screen. +- Rename it in the Properties panel (`name`). + +## Move screens + +**Drag and drop:** + +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. +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. + +**Move Up / Move Down** move the selected screen one place, in the root or inside an include. + +## Sort + +- **Sort Screens** with the `skin` row selected sorts the screens of `skin.xml`; with an include selected, the screens of that include; with a screen selected, its child elements that have a name. +- **Sort → Case sensitive / Case insensitive** chooses how names are compared. +- **Sort → Restore original** puts back the order the screens had when the skin was opened. + +## Delete + +Select an element and press **Delete** (or **Delete Element**). With **Settings → Experimental delete mode** the tree shows check boxes: tick several elements and press **Delete** to remove them all at once. + +## Undo and Redo + +**Ctrl+Z** (Undo) and **Ctrl+Y** (Redo) work for moves, resizes, property changes, additions, deletions, drag and drop between files, and the big premium operations (Apply to skin, Use roles in screens, Write the buttons), which count as one step each. + +After one of those big operations the tree is rebuilt: the same screen is selected again, and the changes made *before* it can no longer be undone one by one. diff --git a/docs/guide/en/05-designer.md b/docs/guide/en/05-designer.md new file mode 100644 index 0000000..fe97d7a --- /dev/null +++ b/docs/guide/en/05-designer.md @@ -0,0 +1,43 @@ +# 5. The designer + +The designer draws the selected screen with the skin's colors, fonts, images and window style, at the skin resolution. + +## Select, move, resize + +- Click an element to select it; its frame shows handles. +- Drag to move, drag a handle to resize. +- Arrow keys move the selected element by 5 px, **Shift+Arrow** by 10 px, **Ctrl+Arrow** by 1 px. +- **Right-click** in the designer selects the parent screen. + +## Zoom + +- The slider and the number box at the top right set the zoom. +- **Ctrl +** and **Ctrl −**, or the mouse wheel over the designer, zoom in and out. +- When a skin opens, the zoom fits the whole screen in the window. + +## Grid and snap + +- **G** cycles the grid: off, 5, 10, 20, 50 px. The status bar shows the current step. +- **M** turns magnetic snap on and off: elements snap to the grid while you move them. + +## Designer toolbar + +| Button | What it does | +| --- | --- | +| **Marker** | Frames around the elements | +| **Show all** | Show or hide all elements | +| Screen / Label / Pixmap / Widget / Panel buttons | Show or hide one type of element | +| **Alpha** | Draw transparency as on the receiver | +| **Fading** | Fade the elements you are not hovering | +| **Conditional widgets** | Widgets that appear only in some cases: **All**, **Default**, **None** or **random** | +| **Crosshair** | Guide lines that follow the mouse, for exact placing | +| **Rulers** | Rulers with coordinates on the top and left | + +## Units + +**Units** chooses how the rulers and sizes are shown: pixels (default), millimeters, centimeters or inches. The skin itself always stores pixels. + +## Full screen + +- **F11** shows OSD full screen. +- **F10** shows the designer preview full screen. diff --git a/docs/guide/en/06-editing-elements.md b/docs/guide/en/06-editing-elements.md new file mode 100644 index 0000000..3395a0e --- /dev/null +++ b/docs/guide/en/06-editing-elements.md @@ -0,0 +1,52 @@ +# 6. Editing elements + +## Add an element + +Select a screen, then: + +| Command | Adds | +| --- | --- | +| **Add Label** | `` – fixed text or a colored rectangle | +| **Add Pixmap** | `` – a fixed image | +| **Add Widget** | `` – content filled by the code (`name=` or `source=` + `render=`) | +| **Add Panel** | `` – a reusable group, or a reference to another screen | +| **Element → Add OpenATV Element** | Ready-made openATV elements | +| **Template** menu | Your own XML snippets from the `templates` folder | + +### Templates + +Put `.xml` files in the `templates` folder of OSD (the folder can be changed in Preferences). Each file appears in the **Template** menu; choosing it inserts its XML into the selected screen. Good uses: a clock, a progress bar, a list with your usual style. + +## The Properties panel + +Under the tree, the Properties panel lists the attributes of the selected element. Change a value and press Enter: the designer updates at once. + +- **position** and **size**: numbers (`100,50`), or Enigma2 forms such as `center`, `e-20` (20 from the right/bottom edge), `fill`. +- **Colors**: a color name from `` or `#aarrggbb`. +- **Fonts**: `Name;size`, for example `Regular;24`. + +### Autocomplete + +Attribute names and values are offered from a list: + +- With an image chosen in **Image Catalog**, the list is exactly what that image accepts: attribute names, renderer and converter names, accepted values (for example the `scrollbarMode` values differ between openATV and OpenPLi). The skin's own renderers and converters ([chapter 10](10-check-skin.md)) are offered too. +- Without an image, OSD uses its built-in openATV list, extended by a local `skin.py` if found. +- **Preferences → Show attribute list** and **Use full attribute list** control this list. + +## Useful attributes + +| Attribute | Example | Effect | +| --- | --- | --- | +| `shadowColor`, `shadowOffset` | `shadowColor="#00000000" shadowOffset="2,2"` | Text shadow | +| `wrap` | `wrap="ellipsis"` | Cut long text with … | +| `fontScale` | `fontScale="size;30"` | Override the font size | +| `lineHeight` | `lineHeight="1.8"` | Line spacing | +| `entryFontScale` | `entryFontScale="size;30"` | Font size of list entries | +| `separatorLineColor`, `separatorLineSize` | | Lines between list items | +| `sliderPixmap` | | Image for the slider thumb | + +Not every image supports every attribute: [Check Skin Against Image](10-check-skin.md) tells you which ones the chosen image does not know. + +## The Convert wizard + +Double-click a `` node to edit the converter type and its argument with a list of the values the converter accepts. diff --git a/docs/guide/en/07-code-tab.md b/docs/guide/en/07-code-tab.md new file mode 100644 index 0000000..d44ae71 --- /dev/null +++ b/docs/guide/en/07-code-tab.md @@ -0,0 +1,31 @@ +# 7. The Code tab + +The **Code** tab shows the XML of the selected element in an editor with highlighting, line numbers and folding. + +## Edit and apply + +1. Select an element in the tree; its XML appears in the Code tab. +2. Edit the XML. +3. Press **Sync** to apply it. The tree and the designer update. + +If you select another node with unapplied changes, OSD asks first (option **Show notification of unsaved changes in editor** in Preferences). + +**Edit Root** shows the whole file with every screen folded: useful to paste a block between screens or to see the structure. + +## Search + +Type in the **Search...** box above the editor to find text in the code. + +## Folding + +The fold buttons open or close all blocks, or only the elements inside screens. + +## Pasting screens from another skin + +When you paste a screen that is bigger than the skin (for example an FHD screen into an HD skin), OSD warns you with the screen name and its size. The screen is applied anyway, but parts of it will be outside the visible area. Use **Tools → Convert Skin** ([chapter 15](15-converter.md)) to scale whole skins. + +Screens that declare their own `resolution="..."` (openATV) are checked against it. + +## Word wrap + +**Preferences → Word Wrap** wraps long lines in the editor. diff --git a/docs/guide/en/08-colors-fonts-windowstyles.md b/docs/guide/en/08-colors-fonts-windowstyles.md new file mode 100644 index 0000000..3c1f4ee --- /dev/null +++ b/docs/guide/en/08-colors-fonts-windowstyles.md @@ -0,0 +1,42 @@ +# 8. Colors, fonts and window styles + +## Colors (Settings → Colors) + +The Colors editor lists the `` of `skin.xml`: + +- **Add**: name + value; the name may not exist yet. +- **Change**: update the selected color. +- **Rename**: rename the color; OSD can replace the name in the skin. +- **Remove**: delete the color. +- **Palette**: pick the color in the Windows color picker. +- Red / Green / Blue / Alpha boxes and sliders set the value. + +### Transparency in Enigma2 + +Enigma2 colors are written `#aarrggbb`, where **aa is the transparency**: `00` is opaque and `FF` is fully transparent. This is the opposite of graphics programs. + +| Value | Result | +| --- | --- | +| `#00ffffff` | White, opaque | +| `#80000000` | Black, half transparent | +| `#ff000000` | Invisible | + +Six digits (`#rrggbb`) mean opaque. + +**Preferences → Add undefined color with '#'** adds colors written by hand to the list; **Do not replace colors beginning with '#'** leaves them as they are. **Fallback color** is used when a color name is not defined. + +For colors that change together (a dark and a light version of the skin), see [Color Profiles](12-color-profiles.md). + +## Fonts (Settings → Fonts) + +The Fonts editor lists the `` of the skin: the font file, its name and scale. OSD looks for font files in its `fonts` folder; absolute receiver paths (`/usr/share/fonts/...`) are mapped there too, and small differences in file names (case, `_`, `-`) are tolerated. **Preferences → Fallback font** is used when a font is missing. + +## Window styles (Settings → WindowStyles) + +The window style draws the frame and title of screens that have one, and gives the colors of menus and lists drawn by the image itself (`Background`, `LabelForeground`, `ListboxSelectedBackground`...). Edit its borders, title font and colors here. + +Names differ between images: openATV uses new names (`Foreground`, `ListboxBackgroundSelected`), OpenPLi, OpenViX, OpenBH and teamBlue the old ones (`LabelForeground`, `ListboxSelectedBackground`). Color Profiles write the right names for the chosen image. + +## Resolution (Settings → Resolution) + +Shows and changes the `` resolution of the skin. If the skin has no `` section, OSD creates it. diff --git a/docs/guide/en/09-image-catalog.md b/docs/guide/en/09-image-catalog.md new file mode 100644 index 0000000..07bab4b --- /dev/null +++ b/docs/guide/en/09-image-catalog.md @@ -0,0 +1,51 @@ +# 9. Image Catalog + +Every Enigma2 image (openATV, OpenPLi, ...) has its own list of screens, widgets, renderers, converters and skin attributes. A **catalog** is that list, read from the image's source code on GitHub. With a catalog, OSD knows what the receiver will accept. + +## Choose the image + +1. Open **Tools → Image Catalog...**. +2. The first time, press **Download / Update**: the catalogs are saved in the `catalogs` folder of OSD. +3. Choose the image in the list and press **OK**. + +The choice is remembered. Choose **(none – use local Enigma2 sources)** to go back to the built-in lists. + +Available images: + +| Image | Sources | +| --- | --- | +| openATV | openatv/enigma2 + oe-alliance-plugins | +| OpenPLi | OpenPLi/enigma2 + enigma2-plugins | +| OpenViX | OpenViX/enigma2 | +| OpenBH | BlackHole/enigma2 | +| teamBlue | teamblue-e2/enigma2 | +| HD Satelit | monea-software/hdsatelit-enigma2 | +| OpenSPA | OpenSPA/dvbapp2 | + +The catalogs are rebuilt automatically on GitHub twice a month. Press **Download / Update** now and then to get the new ones. + +## What the catalog changes + +| Where | With a catalog | +| --- | --- | +| Autocomplete | Only the attributes, renderers, converters and values of that image | +| Check Skin Against Image | Errors and warnings for that image ([chapter 10](10-check-skin.md)) | +| Screen Coverage | Which screens of that image the skin defines ([chapter 11](11-screen-coverage.md)) | +| Color Profiles | Window style color names of that image ([chapter 12](12-color-profiles.md)) | +| Color Buttons | The right form of each button for each screen ([chapter 13](13-color-buttons.md)) | + +## Catalogs address + +The **Catalogs address** box holds the web address the catalogs come from. Leave the proposed one unless you publish your own catalogs. + +## Suggest an image + +An image is missing? + +1. Press **Suggest an image...**. +2. Fill in the name, the GitHub repository, the branch and, if the enigma2 sources are in a subfolder, its name. You can paste a link like `https://github.com/OpenSPA/dvbapp2/tree/master/lib/python/Screens`: branch and subfolder are filled in for you. +3. Press **Open the request**: a request opens on GitHub in your browser, ready to send. + +The maintainer adds the image and the next catalog build publishes it for everyone. + +> Why not read the catalog from the receiver? Receivers usually have only compiled Python files (`.pyc`), which cannot be read. The team sources on GitHub can. diff --git a/docs/guide/en/10-check-skin.md b/docs/guide/en/10-check-skin.md new file mode 100644 index 0000000..e084c5b --- /dev/null +++ b/docs/guide/en/10-check-skin.md @@ -0,0 +1,40 @@ +# 10. Checking a skin + +**Tools → Check Skin Against Image...** reads the whole skin (main file and includes, with unsaved changes) and lists what the chosen image will not accept. It changes nothing. + +## Read the list + +| Type | Meaning | What to do | +| --- | --- | --- | +| **Error** | A renderer or converter that does not exist on the image: the screen will not open | Fix it, unless a plugin installs it | +| **Warning** | An attribute the image does not know: it may be ignored or stop the screen | Look at it: often a typo or an attribute of another image | +| **Hint** | An old attribute name, or colors written by hand | Optional clean-up | + +- **Double-click** a row (or **Go to element**) to select that element in the tree and the designer. +- The window stays open while you fix the skin; run the check again when done. +- **Copy list** copies the whole list as text. +- Hover over a row to read the full message. + +Hints are grouped: "*'alphatest' is an old name: use 'alphaTest'*" appears once per file with a count. + +## Skin components + +Many skins install their **own** renderers and converters, for example Aglare (`AglarePosterX`, `AglareServName2`...). They are not in the image catalog, so the check would call them missing. Tell OSD where they are: + +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. +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. + +### Example: Aglare on openATV + +| Situation | Errors | Warnings | +| --- | --- | --- | +| Without skin components | 357 | 357 | +| With the copy from the box | 45 | 322 | +| Plus the Aglare package | 21 | 322 | + +The 21 errors left come from plugins (`BP_PKT`, `FNCpuUge`, `EGPosterVod`...): if those plugins are not installed, those screens really will not open. diff --git a/docs/guide/en/11-screen-coverage.md b/docs/guide/en/11-screen-coverage.md new file mode 100644 index 0000000..7fb9a7a --- /dev/null +++ b/docs/guide/en/11-screen-coverage.md @@ -0,0 +1,37 @@ +# 11. Screen Coverage *(premium)* + +**Tools → Screen Coverage...** answers: *which screens of the image does my skin draw, and which ones would appear with the default look or with no skin at all?* It needs an image chosen in the Image Catalog. + +## The summary + +The top line gives the percentage of the image's screens the skin defines, and how many are done, use the image's default look, or have no skin at all. + +## Filters + +| Filter | Shows | +| --- | --- | +| To do | Screens not in the skin (default look + no skin) | +| No skin at all | Screens that would show with no graphics | +| Default look of the image | Screens that work but do not have your style | +| Done | Screens the skin defines | +| Not used | Screens in the skin that this image never looks up (helper screens, other images, plugins) | +| All | Everything | + +**Include plugin screens** and **Include front panel (LCD) screens** add those screens to the count. + +## States + +- **Done**: the skin has a screen with one of the names the code looks up. +- **Default look**: the image has its own default skin for it. +- **No skin**: nothing at all. + +A screen often has several names: enigma2 tries them in order (for example `ChannelSelection_PIG`, then `ChannelSelection`). The list shows them all, in that order. + +## Skeletons and Add to skin + +Select a screen to see a **skeleton** on the right: a `` with the right name, a size that fits your skin, and every widget the code expects, laid out in a simple grid, with the color buttons at the bottom. + +- **Add to skin** puts it at the end of the skin root and selects it in the tree; the list moves to the next screen. You can press it several times in a row. Move the screen afterwards where you want it (drag and drop). +- **Copy skeleton** copies the XML, if you prefer to paste it yourself. + +Undo removes an added screen. diff --git a/docs/guide/en/12-color-profiles.md b/docs/guide/en/12-color-profiles.md new file mode 100644 index 0000000..3c0866b --- /dev/null +++ b/docs/guide/en/12-color-profiles.md @@ -0,0 +1,58 @@ +# 12. Color Profiles *(premium)* + +Color Profiles let you decide the colors of the whole skin in one place, and switch between versions (Dark, Light, Blue...) without touching the screens. + +## Three ideas + +| | What it is | Example | +| --- | --- | --- | +| **Palette** | Named colors | `grey950 = #10151b23`, `blue500 = #001e88e5` | +| **Roles** | What a color is for | Screen background, Text, Selected row, Red button... | +| **Profiles** | Which color each role gets | Dark: Background = grey950; Light: Background = grey100 | + +The screens use the **role names** (`foregroundColor="Foreground"`), so changing profile changes the whole skin. + +## Open and edit + +1. Open the skin, then **Tools → Color Profiles...**. +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 ``. +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). +5. **Save** keeps the profiles in `osd_colors.json` next to `skin.xml`. + +## Roles + +| Group | Roles (color name written in the skin) | +| --- | --- | +| Screen | Background, Foreground, ForegroundSecondary, TitleForeground, TitleBackground | +| List | ListBackground, ListForeground, ListSelectedBackground, ListSelectedForeground, ListMarkedBackground, ListMarkedForeground | +| Lines | Border, ScrollbarForeground, ScrollbarBackground | +| Buttons | key_red, key_green, key_yellow, key_blue, key_text, key_back | +| Status | StatusOk, StatusWarning, StatusError | + +## Apply to skin + +**Apply to skin** writes the selected profile: + +- one `` per role in ``; +- the window style colors pointed at the roles, with the names of the chosen image (new names on openATV, old names elsewhere; on openATV old names that would clash are removed). + +Before overwriting colors that already exist with another value, OSD lists them and asks. Undo takes the whole operation back in one step. Save the skin to keep it. + +## Use roles in an existing skin + +An existing skin (for example Aglare) uses its own names (`black1`, `white1`, `#101010`) in the screens, so a profile alone changes nothing there. **Use roles in screens...** migrates it: + +1. The window lists every color the screens use, how often, and the attribute it appears in most. +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. + +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. + +Tip: try it on a copy of the skin first. diff --git a/docs/guide/en/13-color-buttons.md b/docs/guide/en/13-color-buttons.md new file mode 100644 index 0000000..32b9079 --- /dev/null +++ b/docs/guide/en/13-color-buttons.md @@ -0,0 +1,38 @@ +# 13. Color Buttons *(premium)* + +The red, green, yellow and blue buttons appear in most screens. **Tools → Color Buttons...** defines their look once and writes it into the screens. + +## Why OSD has to be careful + +The code of each screen creates the buttons in different ways: + +| Created in the code as | Must be written in the skin as | +| --- | --- | +| StaticText | `` | +| Label or Button | `` | + +The wrong form stops the screen. OSD reads the right form for each screen from the image catalog, and writes only the buttons that screen's code creates. + +## Steps + +1. Choose the image in the Image Catalog. +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**. +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. +8. Press **Write the buttons**. + +**Save style** keeps the style in `osd_buttons.json`. + +## Good to know + +- The generated elements sit between two comments, `` and ``. Writing again replaces them and nothing else. +- The colors are role names (`key_red`, `key_text`, `key_back`): a color profile recolors the buttons. +- Screens that use a `` for their buttons (Aglare does) would get doubled buttons: OSD tells you how many screens use panels, check them. +- Undo takes the whole operation back in one step. diff --git a/docs/guide/en/14-receiver.md b/docs/guide/en/14-receiver.md new file mode 100644 index 0000000..bea0ee5 --- /dev/null +++ b/docs/guide/en/14-receiver.md @@ -0,0 +1,55 @@ +# 14. Working with the receiver + +Some tools talk to the receiver over the network. Set them up once. + +## Network settings + +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. + +On most receivers the user is `root`. The network share must be enabled on the receiver (Samba). + +## Open skins from the receiver *(premium)* + +With a network path set, the skins on the receiver appear in the **File → Open** list next to the local ones. + +## Import and export *(premium)* + +| Command | What it does | +| --- | --- | +| **Tools → Import Skin from Enigma2** | Copies a skin folder from the receiver to the `skins` folder of OSD | +| **Tools → Export Skin to Enigma2** | Copies the open skin to the receiver | + +After an export, restart the GUI on the receiver to see the change (see Telnet below). + +## Telnet *(premium)* + +**Tools → Telnet Commands** (or the Telnet button) opens a terminal to the receiver. + +1. Press **Connect**. +2. Double-click a command of the list to run or edit it, or type your own. +3. **Add Command** saves your own commands. + +Ready-made commands: + +| Command | Runs | +| --- | --- | +| Enigma2 Restart | `init 4 && killall -9 enigma2 && init 3` | +| Systemctl Restart | `systemctl stop enigma2 && systemctl start enigma2` | +| Take Screenshot | `grab /tmp/screenshot.png` | +| Show Log | `tail -20 /var/log/messages` | +| Show Processes | `top -b -n 1 \| head -20` | +| Free Memory | `free -h` | +| Network Info | `ifconfig` | +| Reboot Box / Shutdown | `reboot` / `halt` | + +## Skin components from the receiver + +**Check Skin Against Image → Skin components... → Download from the box** copies the receiver's renderers and converters with FTP ([chapter 10](10-check-skin.md)). + +## Skin Information *(premium)* + +**Tools → Skin Information** shows an analysis of the open skin: name, author, version, resolution, number of screens, panels, includes, colors, fonts and attributes, with diagnostics. **Export** saves it as a file. diff --git a/docs/guide/en/15-converter.md b/docs/guide/en/15-converter.md new file mode 100644 index 0000000..7d0c9a8 --- /dev/null +++ b/docs/guide/en/15-converter.md @@ -0,0 +1,25 @@ +# 15. Converting a skin *(premium)* + +**Tools → Convert Skin...** makes a copy of the skin at another resolution: HD 1280x720, FHD 1920x1080, WQHD 2560x1440 or UHD 3840x2160. + +## Steps + +1. Open the skin. +2. **Tools → Convert Skin...**. +3. Choose the **target resolution** and give the converted skin a name. +4. Tick **Rescale images** to resize PNG, JPG, BMP and GIF images too. +5. Choose the **files to convert**: all XML files of the skin folder are listed; `skin.xml` is always converted. With no file ticked, all files are converted. +6. Start. The status bar shows the step, the file and the progress; **Cancel** stops at any time. + +The conversion: copies the skin files → converts `skin.xml` → converts the selected includes → rescales the images. The converted skin opens when done. + +## Rules and categories + +What is scaled is decided by **rules**, grouped in **categories** (Fonts, Borders, Corner radius, ...). + +- Tick or untick a **category** to switch all its rules on or off. +- **Add Category** / **Edit Category** / **Remove Category**: your own categories (the default ones are protected). +- **Add Rule**: name, XML attribute and **scale mode**. **Edit Rule** / **Remove Rule** work on your own rules. +- **Select All** / **Deselect All** switch every rule. + +Example: a rule for the attribute `itemHeight` with the vertical scale mode makes list rows taller when going from HD to FHD. diff --git a/docs/guide/en/16-preferences.md b/docs/guide/en/16-preferences.md new file mode 100644 index 0000000..bdd7111 --- /dev/null +++ b/docs/guide/en/16-preferences.md @@ -0,0 +1,25 @@ +# 16. Preferences + +**Settings → Preferences**. + +| Setting | What it does | +| --- | --- | +| **Language** | Language of the program | +| **Auto-save (minutes)** | Save the skin every N minutes (0 = off) | +| **Grid size (pixels)** | Grid step at start (also changed with **G**) | +| **Templates folder** | Folder of the **Template** menu (default `templates`) | +| **Network skin path (UNC)** | Skins folder of the receiver ([chapter 14](14-receiver.md)) | +| **Rootfs folder** | A copy of a receiver file system; OSD looks there for `skin.py` and images | +| **Enigma2 source folder** | Local Enigma2 sources, used when no image catalog is chosen | +| **Fallback font** | Font used when a skin font is missing | +| **Fallback color** | Color used when a color name is not defined | +| **Add undefined color with '#'** | Colors written by hand are added to the color list | +| **Do not replace colors beginning with '#'** | Leave hand-written colors as they are | +| **Word Wrap** | Wrap long lines in the Code tab | +| **Show notification of unsaved changes** | Ask before losing unsaved changes | +| **Show notification of unsaved changes in editor** | Ask before leaving unapplied edits in the Code tab | +| **Use full attribute list** | Offer every known attribute in autocomplete | +| **Show attribute list** | Show the autocomplete list | +| **Experimental delete mode** | Check boxes in the tree to delete several elements | + +The catalog address and the image chosen in Image Catalog, the skin component folders and the FTP and Telnet settings are saved in the same settings file (`%AppData%\OpenSkinDesigner\settings.json`). diff --git a/docs/guide/en/17-shortcuts.md b/docs/guide/en/17-shortcuts.md new file mode 100644 index 0000000..f1ad956 --- /dev/null +++ b/docs/guide/en/17-shortcuts.md @@ -0,0 +1,22 @@ +# 17. Keyboard shortcuts + +The same list is in **? → Keyboard Shortcuts**. + +| Keys | Action | +| --- | --- | +| **Ctrl+Z** | Undo | +| **Ctrl+Y** | Redo | +| **Delete** | Delete the selected element | +| **Arrow keys** | Move the selected element by 5 px | +| **Shift+Arrow** | Move by 10 px | +| **Ctrl+Arrow** | Move by 1 px | +| **G** | Grid: off, 5, 10, 20, 50 px | +| **M** | Magnetic snap on/off | +| **Ctrl +** / **Ctrl −** | Zoom in / out | +| Mouse wheel over the designer | Zoom | +| **F10** | Designer preview full screen | +| **F11** | Program full screen | +| Double-click a color or font node | Colors or Fonts editor | +| Double-click a convert node | Convert wizard | +| Double-click a widget or screen | Code tab | +| Enter in the check list | Go to the element | diff --git a/docs/guide/en/18-troubleshooting.md b/docs/guide/en/18-troubleshooting.md new file mode 100644 index 0000000..ed51a66 --- /dev/null +++ b/docs/guide/en/18-troubleshooting.md @@ -0,0 +1,29 @@ +# 18. Troubleshooting + +| What you see | What to do | +| --- | --- | +| "No catalogs on this PC yet" | **Tools → Image Catalog... → Download / Update** | +| "This catalog cannot be read" | The file is damaged: **Download / Update** again | +| "Choose the image first in Tools > Image Catalog" | Choose the image in Image Catalog | +| Download failed | Check the internet connection and the catalogs address; try later | +| Many errors for renderers or converters of the skin (e.g. Aglare*) | **Skin components...** in the check window ([chapter 10](10-check-skin.md)) | +| Errors for `BP_PKT`, `EGPosterVod`... | They belong to plugins: fine if the plugin is installed on the receiver | +| "This element is no longer in the skin" | You changed it after the check: run the check again | +| A screen is drawn without background | The background image is missing: OSD draws a dark background instead; check the image path | +| An image is not shown | Check the path: absolute receiver paths (`/usr/share/...`) are looked up in the `skins` folder and in the skin folder | +| A font looks wrong | Copy the font file into the `fonts` folder, or set a **Fallback font** | +| Resolution warning when pasting | The screen is bigger than the skin; resize it or use **Convert Skin** | +| The new screen went into an include | The include (or one of its screens) was selected: select the `skin` row, or drag the screen to the root | +| Drag and drop does not start | Only screens in the root or in an include can be dragged, not widgets | +| Color buttons doubled | The screen uses a `` for its buttons: remove one of the two, or press Undo | +| A premium menu says "requires a premium license" | **Tools → License** | +| The program behaves strangely after an update | Settings and license were saved in a backup folder in `%TEMP%` before the update | + +## Log + +OSD writes what it does to a log (lines start with `[SKIN]`, `[COLORS]`, `[BUTTONS]`, `[COVERAGE]`...). When you report a problem, attach the log and the skin. + +## Where to get help + +- Issues on the GitHub repository of OpenSkin Designer. +- The Linuxsat-support.com forum. diff --git a/docs/guide/en/19-maintainers.md b/docs/guide/en/19-maintainers.md new file mode 100644 index 0000000..f806e70 --- /dev/null +++ b/docs/guide/en/19-maintainers.md @@ -0,0 +1,65 @@ +# 19. For maintainers + +This chapter is for whoever maintains OpenSkin Designer: catalogs, translations, this guide and the build. + +## Catalogs + +The catalogs are built by GitHub Actions in the public repository `OwnerPlugins/OpenSkin-Designer` and published to the **`catalogs`** branch. OSD downloads them from +`https://raw.githubusercontent.com/OwnerPlugins/OpenSkin-Designer/catalogs/`. + +| File | Role | +| --- | --- | +| `catalogs/images.json` | The images: `id`, `name`, `repo`, `branch`, optional `path`, `plugins` | +| `catalogs/e2catalog.py` | Reads one enigma2 source tree and writes its catalog (JSON + Markdown) | +| `catalogs/build_catalogs.py` | Clones the sources listed in `images.json` and builds every catalog | +| `catalogs/e2compare.py` | Compares the catalogs (`compare.md`, `compare.json`) | +| `.github/workflows/catalogs.yml` | Runs the build on a schedule, by hand, and on pull requests | + +**Add an image:** copy an entry of `images.json` and change `id`, `name`, `repo`, `branch`. If enigma2 is in a subfolder of the repository, set `path` (HD Satelit: `"path": "enigma2"`). Open a pull request: the workflow builds without publishing; after the merge it publishes. + +```json +{"id": "openspa", "name": "OpenSPA", "enabled": true, + "repo": "https://github.com/OpenSPA/dvbapp2.git", "branch": "master", "plugins": []} +``` + +**Schedule:** the line `- cron: "17 3 1,15 * *"` in `catalogs.yml` runs the build on the 1st and 15th of each month at 03:17 UTC. Run it by hand from **Actions → catalogs → Run workflow**. + +**Locally:** `python catalogs/build_catalogs.py --only openatv` builds into `catalogs/out`. + +Requests from **Suggest an image...** arrive as issues titled *Add image to the catalogs: ...*. + +## Translations + +Each language is a file `e2skinner2/languages/.lng` with one line per text: + +``` +English text::Translated text +``` + +A new line inside a text is written `\n`. A key may end with `:` (`Error:::Errore:`). + +`tools/update_languages.py` (development repository) finds the texts used in the sources (`GetTranslation("...")`, `T("...")`, color profile roles), adds the missing ones to every `.lng` file, and translates them with the cache `translation_cache.json` or Google Translate: + +``` +python tools/update_languages.py --dry-run # what is missing +python tools/update_languages.py # update all languages +python tools/update_languages.py --only Deutsch.lng # one language +``` + +Existing lines are never changed. Texts whose placeholders (`{0}`) would change are left in English and listed at the end. + +## This guide + +The guide is Markdown in `docs/guide//` 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. + +To translate: copy `docs/guide/en` to `docs/guide/it` and translate the files; the workflow builds the Italian PDF too. + +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. +- The version is in `OpenSkinDesigner.csproj` and `Properties/AssemblyInfo.cs`; the changelog shown in About is in `Frames/fAbout.cs`. diff --git a/docs/guide/en/20-changelog.md b/docs/guide/en/20-changelog.md new file mode 100644 index 0000000..617a172 --- /dev/null +++ b/docs/guide/en/20-changelog.md @@ -0,0 +1,38 @@ +# 20. Changelog + +## 5.2.0.0 + +**New** + +- Image Catalog: choose the image the skin is made for (openATV, OpenPLi, OpenViX, OpenBH, teamBlue, HD Satelit, OpenSPA). Catalogs are built from the teams' GitHub sources and downloaded with Download / Update. +- Autocomplete and value lists follow the chosen image. +- Check Skin Against Image: errors, warnings and hints; double-click goes to the element. +- Skin components: the skin's own renderers and converters from local folders or from the receiver (FTP), several folders together. +- Screen Coverage *(premium)*: which screens of the image the skin defines; skeletons and Add to skin. +- Color Profiles *(premium)*: palette, roles and profiles; Apply to skin writes `` and the window style for the image; Use roles in screens migrates existing colors. +- Color Buttons *(premium)*: one button style written into the screens in the form each screen's code needs. +- Drag and drop of screens in the tree; Move Up / Down also inside includes, with Undo. +- Suggest an image: opens a ready-made request on GitHub. +- User guide (this document) online and as PDF from the **?** menu. + +**Fixed** + +- New screen is never created inside another screen; inside an include it is added in memory, with Undo. +- Undo no longer reloads includes from disk: unsaved include edits are kept. +- One-step Undo for Apply to skin, Use roles in screens and Write the buttons; after Undo the same screen is selected and redrawn. +- Warning when a pasted screen is bigger than the skin resolution; Save / Continue / Cancel prompt for unsaved changes. +- Translations for texts with new lines. + +## 5.1.1.6 + +- Background fallback: solid dark background when the background image is missing. +- Border paths: also looked up in `./skins/skin_default/screens/`. +- Missing or corrupt images no longer stop the drawing. +- Empty border names are skipped. + +## 5.1.1.5 + +- The tree rebuilds after XML changes in the Code tab. +- Include file editing: the tree rebuilds after saving include files, keeping the selection. + +Older versions: see the About window of the program. diff --git a/docs/guide/en/README.md b/docs/guide/en/README.md new file mode 100644 index 0000000..3f29cb6 --- /dev/null +++ b/docs/guide/en/README.md @@ -0,0 +1,48 @@ +# OpenSkin Designer – User Guide + +OpenSkin Designer (OSD) is a Windows editor for Enigma2 skins. You see every screen of a skin as it will look on the receiver, change it with the mouse or in XML, and check it against the image (openATV, OpenPLi, OpenViX, ...) it is made for. + +This guide covers version **5.2.0.0**. You do not need to be a skinner: each chapter starts with what the feature is for, then gives the steps. + +## Contents + +1. [Getting started](01-getting-started.md) – install, first start, language, free and premium +2. [The main window](02-main-window.md) – tree, designer, Code tab, properties +3. [Opening, creating and saving skins](03-skins-and-files.md) – folders, includes, other XML files, backups +4. [The skin tree](04-skin-tree.md) – screens, panels, includes, search, sort, drag and drop, undo +5. [The designer](05-designer.md) – zoom, rulers, grid, markers, conditional widgets, units +6. [Editing elements](06-editing-elements.md) – labels, pixmaps, widgets, panels, templates, properties +7. [The Code tab](07-code-tab.md) – XML editor, search, applying changes, resolution warning +8. [Colors, fonts and window styles](08-colors-fonts-windowstyles.md) – the classic editors, transparency +9. [Image Catalog](09-image-catalog.md) – choose the image, download catalogs, suggest a new image +10. [Checking a skin](10-check-skin.md) – errors, warnings, hints, skin components +11. [Screen Coverage](11-screen-coverage.md) *(premium)* – what is missing, skeletons, Add to skin +12. [Color Profiles](12-color-profiles.md) *(premium)* – palette, roles, profiles, migrating a skin +13. [Color Buttons](13-color-buttons.md) *(premium)* – one button style for every screen +14. [Working with the receiver](14-receiver.md) – FTP, Telnet, import and export +15. [Converting a skin](15-converter.md) – HD, FHD, WQHD, UHD +16. [Preferences](16-preferences.md) – every setting explained +17. [Keyboard shortcuts](17-shortcuts.md) +18. [Troubleshooting](18-troubleshooting.md) +19. [For maintainers](19-maintainers.md) – catalogs, translations, guide, build +20. [Changelog](20-changelog.md) + +## Free and premium at a glance + +| Feature | Free | Premium | +| --- | --- | --- | +| Designer, tree, Code tab, colors, fonts, window styles | Yes | Yes | +| Image Catalog, autocomplete for the chosen image | Yes | Yes | +| Check Skin Against Image, skin components | Yes | Yes | +| Drag and drop of screens, undo | Yes | Yes | +| Screen Coverage, skeletons, Add to skin | – | Yes | +| Color Profiles, migrating colors to roles | – | Yes | +| Color Buttons | – | Yes | +| Telnet, import and export to the receiver, Skin Information, Skin Converter | – | Yes | + +## A word on terms + +- **Skin**: the folder with `skin.xml`, its include files, images and fonts. +- **Screen**: one `` of the skin, for example `InfoBar` or `ChannelSelection`. +- **Image**: the Enigma2 distribution on the receiver (openATV, OpenPLi, ...). Each image has slightly different screens, widgets and attributes. +- **Include**: an XML file loaded by `skin.xml` with ``. diff --git a/docs/guide/images/.gitkeep b/docs/guide/images/.gitkeep new file mode 100644 index 0000000..e69de29 From 1c4b6dfc676d376225949728db955d261b5818e7 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 14:57:19 +0000 Subject: [PATCH 2/3] Guide: credit Lululla as author and maintainer Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EVc11N8zrA7gm5kdSWgpH9 --- docs/guide/en/20-changelog.md | 6 +++--- docs/guide/en/README.md | 10 +++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/guide/en/20-changelog.md b/docs/guide/en/20-changelog.md index 617a172..71323aa 100644 --- a/docs/guide/en/20-changelog.md +++ b/docs/guide/en/20-changelog.md @@ -1,6 +1,6 @@ # 20. Changelog -## 5.2.0.0 +## 5.2.0.0 – by Lululla **New** @@ -23,14 +23,14 @@ - Warning when a pasted screen is bigger than the skin resolution; Save / Continue / Cancel prompt for unsaved changes. - Translations for texts with new lines. -## 5.1.1.6 +## 5.1.1.6 – by Lululla - Background fallback: solid dark background when the background image is missing. - Border paths: also looked up in `./skins/skin_default/screens/`. - Missing or corrupt images no longer stop the drawing. - Empty border names are skipped. -## 5.1.1.5 +## 5.1.1.5 – by Lululla - The tree rebuilds after XML changes in the Code tab. - Include file editing: the tree rebuilds after saving include files, keeping the selection. diff --git a/docs/guide/en/README.md b/docs/guide/en/README.md index 3f29cb6..89d2eb5 100644 --- a/docs/guide/en/README.md +++ b/docs/guide/en/README.md @@ -2,7 +2,7 @@ OpenSkin Designer (OSD) is a Windows editor for Enigma2 skins. You see every screen of a skin as it will look on the receiver, change it with the mouse or in XML, and check it against the image (openATV, OpenPLi, OpenViX, ...) it is made for. -This guide covers version **5.2.0.0**. You do not need to be a skinner: each chapter starts with what the feature is for, then gives the steps. +OpenSkin Designer is developed and maintained by **Lululla**, who wrote most of the program, on the base of e2skinner by schischu65. This guide covers version **5.2.0.0**. You do not need to be a skinner: each chapter starts with what the feature is for, then gives the steps. ## Contents @@ -46,3 +46,11 @@ This guide covers version **5.2.0.0**. You do not need to be a skinner: each cha - **Screen**: one `` of the skin, for example `InfoBar` or `ChannelSelection`. - **Image**: the Enigma2 distribution on the receiver (openATV, OpenPLi, ...). Each image has slightly different screens, widgets and attributes. - **Include**: an XML file loaded by `skin.xml` with ``. + +## Credits + +- **Lululla** – author and maintainer of OpenSkin Designer (mod by Lululla), most of the program and its features. +- **schischu65** – e2skinner, the original base of the program. +- Open-store.net – original OpenSkin Designer (© 2014). +- The Enigma2 teams (openATV, OpenPLi, OpenViX, OpenBH, teamBlue, HD Satelit, OpenSPA) – the public sources the catalogs are built from. +- The users of Linuxsat-support.com – tests and feedback. From 9e7f0d611c2b8086f5ad80a2ab7040f409f9c996 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 29 Nov 2026 15:03:55 +0000 Subject: [PATCH 3/3] README 5.2.0.0, guide links and full credits - README: release badge 5.2.0.0, "User guide" section (online, PDF, ? menu) and the 5.2.0.0 changelog. - Guide: credits for everyone in the project history (Lululla, odem2014 / popking159, Humaxx, Scrounger, Jason Hood, kitte888, schischu65) and a link to the full changelog in the README. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EVc11N8zrA7gm5kdSWgpH9 --- README.md | 33 ++++++++++++++++++++++++++++++++- docs/guide/en/20-changelog.md | 2 +- docs/guide/en/README.md | 14 ++++++++++---- 3 files changed, 43 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 21c7f3c..39f9edc 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

OpenSkin Designer

- Release + Release .NET 10 @@ -46,6 +46,14 @@ It includes a couple of new features i.e.: * bugfixes * etc. +## User guide + +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)` + ## Screenshots @@ -107,6 +115,29 @@ It includes a couple of new features i.e.: ### Changelog +## Version 5.2.0.0 by Lululla – 2026-11-29 + +### Added +- **Image Catalog** – choose the image the skin is made for (openATV, OpenPLi, OpenViX, OpenBH, teamBlue, HD Satelit, OpenSPA). Catalogs are built from the teams' GitHub sources by GitHub Actions and downloaded with *Download / Update*; *Suggest an image* opens a ready-made request for a new one. +- **Autocomplete per image** – attributes, renderers, converters and values follow the chosen image. +- **Check Skin Against Image** – errors (missing renderers/converters), warnings (unknown attributes) and hints (old names, colors written by hand); double-click goes to the element. +- **Skin components** – the skin's own renderers and converters (e.g. Aglare*) from local folders or from the box (FTP), several folders together. +- **Screen Coverage** *(premium)* – which screens of the image the skin defines; skeletons and *Add to skin*. +- **Color Profiles** *(premium)* – palette, roles and profiles; *Apply to skin* writes `` and the windowstyle with the names of the image; *Use roles in screens* migrates an existing skin. +- **Color Buttons** *(premium)* – one button style written into the screens, in the form (`source=` or `name=`) each screen's code needs. +- **Drag and drop of screens** in the tree (reorder, move between root and includes); Move Up / Down also inside includes. +- **User guide** – complete guide online and as PDF, from the `?` menu. + +### Fixed +- New screen is never created inside another screen; inside an include it is added in memory, with Undo. +- Undo no longer reloads includes from disk (unsaved include edits are kept); one-step Undo for profiles, buttons and color migration, with the screen selected again. +- Warning when a pasted screen is bigger than the skin resolution; Save / Continue / Cancel prompt for unsaved changes. +- Translations for texts with new lines; `tools/update_languages.py` fills the missing texts of every language. +- About shows the color logo; build warning AD0001 removed. + +--- + + ## Version 5.1.1.6 by Lululla – 2026-08-04 ### Fixed diff --git a/docs/guide/en/20-changelog.md b/docs/guide/en/20-changelog.md index 71323aa..f7088ae 100644 --- a/docs/guide/en/20-changelog.md +++ b/docs/guide/en/20-changelog.md @@ -35,4 +35,4 @@ - The tree rebuilds after XML changes in the Code tab. - Include file editing: the tree rebuilds after saving include files, keeping the selection. -Older versions: see the About window of the program. +Older versions, back to e2skinner by schischu65 (2009): see the [repository README](../../../README.md#changelog). diff --git a/docs/guide/en/README.md b/docs/guide/en/README.md index 89d2eb5..33b21d3 100644 --- a/docs/guide/en/README.md +++ b/docs/guide/en/README.md @@ -2,7 +2,7 @@ OpenSkin Designer (OSD) is a Windows editor for Enigma2 skins. You see every screen of a skin as it will look on the receiver, change it with the mouse or in XML, and check it against the image (openATV, OpenPLi, OpenViX, ...) it is made for. -OpenSkin Designer is developed and maintained by **Lululla**, who wrote most of the program, on the base of e2skinner by schischu65. This guide covers version **5.2.0.0**. You do not need to be a skinner: each chapter starts with what the feature is for, then gives the steps. +OpenSkin Designer MOD is developed by **odem2014 (popking159)** and **Lululla**, who made most of the development since version 4.2.1. It is based on OpenSkin Designer, a further development of e2skinner by schischu65. This guide covers version **5.2.0.0**. You do not need to be a skinner: each chapter starts with what the feature is for, then gives the steps. ## Contents @@ -49,8 +49,14 @@ OpenSkin Designer is developed and maintained by **Lululla**, who wrote most of ## Credits -- **Lululla** – author and maintainer of OpenSkin Designer (mod by Lululla), most of the program and its features. -- **schischu65** – e2skinner, the original base of the program. -- Open-store.net – original OpenSkin Designer (© 2014). +- **Lululla** – maintainer of OpenSkin Designer MOD; most of the development from 4.2.1 to 5.2 (.NET 10, converter, includes, templates, Telnet, license, image catalogs and the tools of this guide). +- **odem2014 / popking159** – OpenSkin Designer MOD, gradients and corner-radius masks (4.2.0). +- **Humaxx** – versions 3.2.3 to 3.3 (languages, delete mode, notifications, many fixes). +- **Scrounger** – versions 3.2.0 to 3.2.2 (converters, fonts, list boxes, images). +- **Jason Hood** – MOD 3.1 (include and panel support, alias fonts). +- **kitte888** – 3.2.6.6 (gradients, corner radius). +- **schischu65** – e2skinner, the original program (2009). - The Enigma2 teams (openATV, OpenPLi, OpenViX, OpenBH, teamBlue, HD Satelit, OpenSPA) – the public sources the catalogs are built from. - The users of Linuxsat-support.com – tests and feedback. + +The full history of every version is in the [repository README](../../../README.md#changelog).