From 5e5abc1141eab70df6eb91125206c99e92b1df3a Mon Sep 17 00:00:00 2001 From: pa Date: Sat, 17 Jan 2026 19:42:55 +0900 Subject: [PATCH] custom fonts --- package-lock.json | 12 +- package.json | 3 +- src/app.css | 1 + src/components/AvatarInfo.vue | 9 +- src/components/NavMenu.vue | 5 +- .../dialogs/AvatarDialog/AvatarDialog.vue | 18 ++- .../dialogs/GroupDialog/GroupDialog.vue | 4 +- .../GroupMemberModerationDialog.vue | 20 +--- .../dialogs/UserDialog/UserDialog.vue | 14 +-- .../dialogs/WorldDialog/WorldDialog.vue | 11 +- src/components/ui/dialog/DialogContent.vue | 3 +- src/localization/en.json | 4 + src/shared/constants/fonts.js | 21 ++++ src/shared/constants/index.js | 1 + src/shared/utils/base/ui.js | 55 ++++++++- src/stores/settings/appearance.js | 32 ++++- src/styles/fonts.css | 1 + src/styles/globals.css | 18 ++- src/styles/noty.css | 2 - .../components/FavoritesAvatarItem.vue | 4 +- .../components/FavoritesFriendItem.vue | 2 +- .../components/FavoritesWorldItem.vue | 4 +- src/views/FriendLog/columns.jsx | 4 +- .../FriendsLocations/FriendsLocations.vue | 113 +++++------------- .../components/FriendsLocationsCard.vue | 5 +- src/views/Layout/AuthenticatedLayout.vue | 2 - src/views/Moderation/columns.jsx | 4 +- .../components/Tabs/AppearanceTab.vue | 27 ++++- src/views/Sidebar/components/FriendItem.vue | 5 +- 29 files changed, 251 insertions(+), 153 deletions(-) create mode 100644 src/shared/constants/fonts.js diff --git a/package-lock.json b/package-lock.json index ebe1efcd..5bd81051 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "name": "VRCX", "license": "MIT", "dependencies": { + "@fontsource-variable/noto-sans": "^5.2.10", "hazardous": "^0.3.0", "node-api-dotnet": "^0.9.18" }, @@ -2075,6 +2076,15 @@ "url": "https://github.com/sponsors/ayuhito" } }, + "node_modules/@fontsource-variable/noto-sans": { + "version": "5.2.10", + "resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans/-/noto-sans-5.2.10.tgz", + "integrity": "sha512-wyFgKkFu7jki5kEL8qv7avjQ8rxHX0J/nhLWvbR9T0hOH1HRKZEvb9EW9lMjZfWHHfEzKkYf5J+NadwgCS7TXA==", + "license": "OFL-1.1", + "funding": { + "url": "https://github.com/sponsors/ayuhito" + } + }, "node_modules/@fontsource-variable/noto-sans-jp": { "version": "5.2.10", "resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans-jp/-/noto-sans-jp-5.2.10.tgz", @@ -18487,4 +18497,4 @@ } } } -} \ No newline at end of file +} diff --git a/package.json b/package.json index ed386f50..83aee8da 100644 --- a/package.json +++ b/package.json @@ -178,7 +178,8 @@ } }, "dependencies": { + "@fontsource-variable/noto-sans": "^5.2.10", "hazardous": "^0.3.0", "node-api-dotnet": "^0.9.18" } -} \ No newline at end of file +} diff --git a/src/app.css b/src/app.css index cea60488..23ec274d 100644 --- a/src/app.css +++ b/src/app.css @@ -20,6 +20,7 @@ html { padding: 10px; overflow: hidden auto; box-sizing: border-box; + background: var(--sidebar); height: 100%; } diff --git a/src/components/AvatarInfo.vue b/src/components/AvatarInfo.vue index 9e647273..f5a2ee2b 100644 --- a/src/components/AvatarInfo.vue +++ b/src/components/AvatarInfo.vue @@ -1,17 +1,16 @@