Merge pull request #2 from usetrmnl/update-ui

Update UI
This commit is contained in:
Ryan Kulp
2026-01-27 23:57:35 -05:00
committed by GitHub
4 changed files with 1620 additions and 379 deletions
+3 -5
View File
@@ -59,14 +59,12 @@ function downloadBinaryFile(data, filename) {
}, 100);
}
export async function createBinary() {
export async function createBinary(logoFile, loaderFile) {
const BRAND_NAME = "TRMNL";
const API_URL = "https://trmnl.app";
const logo = document.getElementById('logo-input');
const loader = document.getElementById('loader-input');
const logoBinary = await encodePNG(logo.files[0]);
const loaderBinary = await encodePNG(loader.files[0]);
const logoBinary = await encodePNG(logoFile);
const loaderBinary = await encodePNG(loaderFile);
const totalLength = logoBinary.length + loaderBinary.length;
if (totalLength > IMAGES_SIZE) {
+1351
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+266 -374
View File
File diff suppressed because it is too large Load Diff