You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e967f7e
Browse filesBrowse the repository at this point in the historyBrowse files
Files in the icon folder must be named `NNN-ICON_Name.jpg` with a unique 3-digit index. Other files are ignored. Duplicate indexes and progressive JPEGs are errors, and the tools exit with a non-zero status on any error.
136
+
137
+
## Building the unified DWIN_SET
138
+
139
+
`make_dwin_set.py` builds Marlin's unified `DWIN_SET` for Ender-3 V2 family DWIN displays. One flash of this set serves every DWIN UI: Creality UI, JyersUI, ProUI, and MarlinUI (portrait and landscape). The contents are described in `dwin_set.toml`:
140
+
141
+
- `DWIN_SET/` holds files copied as-is: Creality's boot and text images, font, and display configuration.
142
+
- `icons-3`, `icons-4`, and `icons-7` are combined into `3.ICO`, `4.ICO`, and `7.ICO`.
143
+
- Icons 0-92 of `7.ICO` are Creality's stock icons. Marlin's own icons are drawn as SVG in `icons-svg/` and listed under `[render]`.
-`--render` re-renders the `[render]` icons from `icons-svg/` before building. This needs `rsvg-convert` (librsvg). Icons are saved as baseline JPEGs with no chroma subsampling and no metadata.
152
+
-`--out` sets the output folder (default `build/`, which Git ignores).
153
+
-`--compare` lists the files and icon indexes that differ from an existing `DWIN_SET.tar.gz`.
154
+
155
+
The script checks that every numbered file fits in the display's 16 banks of 32KB and that no two files of the same kind overlap. It writes `build/DWIN_SET/` (copy this folder to the root of the display's SD card) and a reproducible `build/DWIN_SET.tar.gz` for the Configurations repository: the same sources always give the same bytes.
156
+
157
+
To add an icon, draw it as an SVG in `icons-svg/`, add an entry under `[render]` with its index, size, and background, give it a name in `common/dwin_set.h` and `bin/DWIN_ICO.py`, then run `bin/make_dwin_set.py --render`.
0 commit comments