From 3aa18011af241c9959511afb7fc4de5b4944dbf8 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:15:54 -0700 Subject: [PATCH 1/3] fix nav patch on latest betas --- src/deckyPatches/NavControllerFinder.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/deckyPatches/NavControllerFinder.tsx b/src/deckyPatches/NavControllerFinder.tsx index f7920e6..7b95239 100644 --- a/src/deckyPatches/NavControllerFinder.tsx +++ b/src/deckyPatches/NavControllerFinder.tsx @@ -1,3 +1,18 @@ import { Module, findModuleChild } from "decky-frontend-lib"; -export const NavController = findModuleChild((m: Module) => m?.CFocusNavNode); +export const NavController = findModuleChild((m: Module) => { + if (typeof m !== "object") return undefined; + + // Pre Chromium-109 + if (m?.CFocusNavNode) { + return m.CFocusNavNode; + } + + for (let prop in m) { + if (m[prop]?.prototype?.FindNextFocusableChildInDirection) { + return m[prop]; + } + } + + return undefined; +}); From 5a988eb71de963ecf69573da2b4536d9e3291bf2 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Thu, 15 Feb 2024 16:16:44 -0700 Subject: [PATCH 2/3] ver bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7372da7..c6ce904 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SDH-CssLoader", - "version": "2.0.5", + "version": "2.0.6", "description": "A css loader", "scripts": { "build": "shx rm -rf dist && rollup -c", From c30575da1f3e25ac77495c556f024ed90d66b499 Mon Sep 17 00:00:00 2001 From: Beebles <102569435+beebls@users.noreply.github.com> Date: Mon, 19 Feb 2024 14:39:40 -0700 Subject: [PATCH 3/3] fix: Display display_name instead of name --- src/components/Modals/ThemeSettingsModal/ThemeSettingsModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Modals/ThemeSettingsModal/ThemeSettingsModal.tsx b/src/components/Modals/ThemeSettingsModal/ThemeSettingsModal.tsx index e5556a2..7fe1ef7 100644 --- a/src/components/Modals/ThemeSettingsModal/ThemeSettingsModal.tsx +++ b/src/components/Modals/ThemeSettingsModal/ThemeSettingsModal.tsx @@ -124,7 +124,7 @@ function ThemeSettingsModal({ <>
- {themeData.name} + {themeData.display_name} {themeData.version} | {themeData.author}