mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-27 21:02:44 +00:00
Refactor dashboard cards
This commit is contained in:
1 parent
7afb98f7f7
commit
8d99ea97b5
5 files changed
+179
-153
No files matched your search
@@ -0,0 +1,16 @@
|
||||
import { GrayImage } from "./image";
|
||||
import { loadPngAsGrayImage } from "./imagefile";
|
||||
|
||||
let cachedDashboardLogo: GrayImage | null | undefined;
|
||||
|
||||
export function getDashboardLogo(): GrayImage | null {
|
||||
if (cachedDashboardLogo !== undefined) {
|
||||
return cachedDashboardLogo;
|
||||
}
|
||||
try {
|
||||
cachedDashboardLogo = loadPngAsGrayImage("images/faceclaw-logo-dashboard.png");
|
||||
} catch {
|
||||
cachedDashboardLogo = null;
|
||||
}
|
||||
return cachedDashboardLogo;
|
||||
}
|
||||
Reference in new issue
Block a user