mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #109] [MERGED] Faster time-to-theme #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/109
Author: @gschier
Created: 9/25/2024
Status: ✅ Merged
Merged: 9/25/2024
Merged by: @gschier
Base:
master← Head:theme-refactor📝 Commits (3)
e021ce3Refactor how themes work534e5c7Add back decorations hackbbe340cMove some stuff around📊 Changes
14 files changed (+132 additions, -93 deletions)
View changed files
📝
src-web/components/DefaultLayout.tsx(+2 -6)📝
src-web/components/GlobalHooks.tsx(+5 -7)📝
src-web/components/ResponsePane.tsx(+4 -2)📝
src-web/components/Settings/SettingsAppearance.tsx(+6 -4)📝
src-web/components/Settings/SettingsDesign.tsx(+3 -3)📝
src-web/hooks/usePreferredAppearance.ts(+2 -11)📝
src-web/hooks/useResolvedAppearance.ts(+2 -7)📝
src-web/hooks/useResolvedTheme.ts(+9 -15)➖
src-web/hooks/useSyncThemeToDocument.ts(+0 -23)➖
src-web/hooks/useThemes.ts(+0 -13)📝
src-web/index.html(+1 -0)📝
src-web/lib/theme/appearance.ts(+17 -1)📝
src-web/lib/theme/themes.ts(+36 -1)➕
src-web/theme.ts(+45 -0)📄 Description
This PR moves the theme handling logic into a separate JS entrypoint so it can load as fast as possible.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.