Introduction to Themes
Playnite's user interface is implemented using Windows Presentation Framework (WPF) and UI definition is done using XAML files. Custom themes in Playnite are implemented using standard template and styling support that WPF provides, therefore any tutorial that applies to styling in WPF also applies to Playnite.
Fullscreen and Desktop modes
Playnite offers two separate modes of operation. Standard
Desktop mode designed for keyboard and mouse and
Fullscreen mode designed to be controlled with gamepad. These two modes are implemented completely separately and therefore themes are also completely separate.
Since Playnite themes are essentially just set of template and style files, general editing rules and tutorials that apply to WPF also apply to Playnite.
Recommended WPF resources:
Creating Playnite themes
There are generally two approaches to theme creation in Playnite.
Option #1 doesn't require installation of any additional applications and themes can be generally created even using Notepad. However this approach has major disadvantages:
- You don't get live preview of changes your are making.
- You have to restart Playnite every time a change is made to theme files.
- There's not autocompletion or error checking for XAML syntax.
Option #2 requires installation of Visual Studio IDE, Community edition is free to download and includes Blend editor. This approach takes some time to set up, but offers all advantages that manual editing lacks, like live preview, autocompletion of XAML properties, visual editor etc.
Using Blend editor is recommended option.