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
60 changes: 60 additions & 0 deletions .github/workflows/guide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: User guide

# Builds the PDF of the user guide (docs/guide/<language>/*.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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Source/e2skinner2/obj/
catalogs/cache/
catalogs/out/
__pycache__/
docs/guide/out/
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center">OpenSkin Designer</h1>

<p align="center">
<img src="https://img.shields.io/badge/release-v5.1.1.6-blue" alt="Release">
<img src="https://img.shields.io/badge/release-v5.2.0.0-blue" alt="Release">
<a href="https://dotnet.microsoft.com/">
<img src="https://img.shields.io/badge/.NET-10.0-purple" alt=".NET 10">
</a>
Expand Down Expand Up @@ -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

<table align="center">
Expand Down Expand Up @@ -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 `<colors>` 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
Expand Down
93 changes: 93 additions & 0 deletions docs/guide/build_pdf.py
Original file line number Diff line number Diff line change
@@ -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('<section class="cover" id="%s">%s<p class="meta">%s</p></section>' % (
chapter_id(readme), to_html(readme).replace("<h1>", "<h1>", 1),
html.escape(datetime.date.today().isoformat())))
for f in chapters:
parts.append('<section class="chapter" id="%s">%s</section>' % (chapter_id(f), to_html(f)))
document = "<html><head><meta charset='utf-8'><style>%s</style></head><body>%s</body></html>" % (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()
46 changes: 46 additions & 0 deletions docs/guide/en/01-getting-started.md
Original file line number Diff line number Diff line change
@@ -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.
49 changes: 49 additions & 0 deletions docs/guide/en/02-main-window.md
Original file line number Diff line number Diff line change
@@ -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 `<include>` 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.
56 changes: 56 additions & 0 deletions docs/guide/en/03-skins-and-files.md
Original file line number Diff line number Diff line change
@@ -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\<name>` 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
<skin>
<include filename="skin_templates.xml"/>
<screen name="InfoBar" ...> ... </screen>
</skin>
```

- 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.
Loading
Loading