Refactor to remove some duplicated functiosn

This commit is contained in:
James Babcock committed 2026-07-26 11:33:16 -07:00
1 parent 797682a386
commit 205d393415
17 files changed
+57 -223

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import { getDefaultSmallFont } from "../../graphics/bdffont";
import type { GrayImage } from "../../graphics/image";
import { getDashboardLogo } from "../../graphics/logo";
import { shell } from "../shell/shell";
import {
@@ -109,7 +110,7 @@ function settingsSections(): SettingsSection[] {
];
}
function renderAbout(args: { image: import("../../graphics/image").GrayImage; x: number; y: number; width: number }): void {
function renderAbout(args: { image: GrayImage; x: number; y: number; width: number }): void {
const { image, x, y, width } = args;
const font = getDefaultSmallFont();
const logo = getDashboardLogo();