Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exelix11/SwitchThemeInjector
Create custom themes for the nintendo switch !
https://github.com/exelix11/SwitchThemeInjector
customization homebrew nintendo-switch nx nxtheme switch
Last synced: 6 days ago
JSON representation
Create custom themes for the nintendo switch !
- Host: GitHub
- URL: https://github.com/exelix11/SwitchThemeInjector
- Owner: exelix11
- License: gpl-2.0
- Created: 2018-09-24T15:27:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-13T23:20:39.000Z (4 months ago)
- Last Synced: 2024-10-25T03:46:49.335Z (18 days ago)
- Topics: customization, homebrew, nintendo-switch, nx, nxtheme, switch
- Language: C
- Homepage:
- Size: 25 MB
- Stars: 968
- Watchers: 39
- Forks: 60
- Open Issues: 23
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-switch-homebrew - NXThemes Installer - Switch theme manager (Homebrew / Utilities)
README
# Switch theme injector
[![Discord](https://img.shields.io/discord/643436008452521984.svg?logo=discord&logoColor=white&label=Discord&color=7289DA
)](https://discord.gg/rqU5Tf8)
[![Latest release](https://img.shields.io/github/v/release/exelix11/SwitchThemeInjector)](https://github.com/exelix11/SwitchThemeInjector/releases)
[![Download](https://img.shields.io/github/downloads/exelix11/SwitchThemeInjector/total)](https://github.com/exelix11/SwitchThemeInjector/releases)
[![ko-fi](https://img.shields.io/badge/supporting-ko--fi-f96854)](https://ko-fi.com/exelix11)![ThemeScreenshot](ThemeScreenshot.jpg)
The Switch theme injector project is split into three parts:
- Switch theme injector (Windows app): An app to create and edit custom themes
- NXThemes installer: An homebrew app that runs on the switch itself and can be used to install and manage themes.
- [Switch theme injector online](http://exelix11.github.io/SwitchThemeInjector/v2) (also called WebInjector): A port of the windows injector as a web app, it lacks some features like custom applet icons and common.szs layouts support.The main objective is to develop a complete toolset to create and install custom themes on the switch. As the console os doesn't implement custom themes natively most of this is done by patching system SZS files to get the desidered aspect.\
\
Unfortunately SZS files from the switch os contain copyrighted data and can't be shared online that's why the **nxtheme format** has been developed, it contains only differential info and can be freely shared. Unless you're dealing with making your own patches and custom layouts you should only use nxtheme files.# Getting started
To use custom themes you need an hacked switch that's at least on firmware 5.0## Installing themes
This is the most common scenario, you just need the theme installer homebrew. \
Make a folder called `themes` in the root of your sd card and copy your themes in either nxtheme or szs format in it. Then launch the theme installer and you should be able to select and install them. \
Reboot and your theme should be applied.Note that each file is a single home menu part (eg just the lockscreen or just the main menu), a full home menu theme is composed by multiple nxtheme files.
**To remove a theme** just select uninstall in the theme installer. You can just install a different theme to overwrite the currently installed one.
When a new firmware comes out **before upgrading (or downgrading) remember to uninstall any theme you have installed** to avoid compatibility issues, if you forget your console may not boot untill the theme is removed as explained next.
**In case your console doesn't boot anymore due to a bad theme** (mostly with szs themes) delete the `\atmosphere\contents\01000000001000` folder from your sd (it's `\\titles\01000000001000` for old atmosphere and other CFWs), now your console should be booting, launch the theme installer and select uninstall theme to finish the cleanup process.
## Making themes
To make themes you need either the Theme injector application or the web version.
### Format differences
In the past themes have been distributed as szs files, this is not supported anymore as these szs files also contain copyrighted data, now you should only use the **nxtheme** format.
### Making an nxtheme
Open the injector and go to the NXThemes builder tab, open any **720p JPG image** (1280x720 pixels), select a custom layout and click on build nxtheme.For making themes you can only use JPG images or DXT1-encoded DDS images. For best quality it's better to manually encode the image to DDS so you can have a preview of how will it look like with the compression applied.
### Linux Support
The GUI only works on windows, on linux you can use the CLI through mono, you will need the `mono-complete` package.\
Then you should be able to launch the app by running `mono SwitchThemes.exe help`.### Command line usage (CLI)
#### Building nxthemes
```
SwitchThemes.exe buildNX home "" "" "name=" "author=" "out=.nxtheme"
```
this will build a theme for the home menu, instead of `home` you can use: `lock` for lockscreen, `apps` for the all apps screen, `set` for the settings applet, `user` for the user page applet and `news` for the news applet. Only the image and out file args are needed. \
Other options specific to the theme target such as applet icons are availbale as well, run `SwitchThemes.exe help` for more info
#### Remote install
Launch the theme installer and select remote install, then run the following command:
```
SwitchThemes.exe install 192.168.X.Y ""
```
Where `192.168.X.Y` is your console IP address.# Custom layouts
Custom layouts are JSON files that allow changing the appearence of the home menu by moving the UI components. \
To create a custom layout you will need the original home menu szs files found in `/themes/systemData` on your sd (if you ever used the theme installer) and a tool capable of editing them like the [switch layout editor](https://github.com/FuryBaguette/SwitchLayoutEditor).[Here](https://github.com/exelix11/SwitchThemeInjector/blob/master/CustomLayouts.md) you can find more info about layouts and the supported properties.
For layout editing read the [Layout editor wiki](https://github.com/FuryBaguette/SwitchLayoutEditor/wiki) to get started, parts of the main home menu layout are documented in this repo [wiki](https://github.com/exelix11/SwitchThemeInjector/wiki/ResidentMenu.szs).