diff --git a/packages/frontend/src/components/MkMediaAudio.vue b/packages/frontend/src/components/MkMediaAudio.vue index d3dbab6404..611c6eb652 100644 --- a/packages/frontend/src/components/MkMediaAudio.vue +++ b/packages/frontend/src/components/MkMediaAudio.vue @@ -143,7 +143,7 @@ function showMenu(ev: MouseEvent) { { type: 'switch', text: i18n.ts._mediaControls.loop, - icon: 'ph ph-repeat', + icon: 'ti ti-repeat', ref: loop, }, { diff --git a/packages/frontend/src/components/MkMediaVideo.vue b/packages/frontend/src/components/MkMediaVideo.vue index 690b7ad804..ab92d9f763 100644 --- a/packages/frontend/src/components/MkMediaVideo.vue +++ b/packages/frontend/src/components/MkMediaVideo.vue @@ -177,7 +177,7 @@ function showMenu(ev: MouseEvent) { { type: 'switch', text: i18n.ts._mediaControls.loop, - icon: 'ph ph-repeat', + icon: 'ti ti-repeat', ref: loop, }, { diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index e2bf7a7b78..caa8c1e35b 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- + diff --git a/packages/frontend/src/pages/gallery/post.vue b/packages/frontend/src/pages/gallery/post.vue index 6e03c0d33f..7e4fafd3bd 100644 --- a/packages/frontend/src/pages/gallery/post.vue +++ b/packages/frontend/src/pages/gallery/post.vue @@ -28,7 +28,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
diff --git a/packages/frontend/src/pages/settings/mute-block.vue b/packages/frontend/src/pages/settings/mute-block.vue index 91cbe0fe71..6b95e84205 100644 --- a/packages/frontend/src/pages/settings/mute-block.vue +++ b/packages/frontend/src/pages/settings/mute-block.vue @@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index ca3f8b62a3..23e40dad69 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -557,7 +557,7 @@ export function getRenoteMenu(props: { if (appearNote.channel) { channelRenoteItems.push(...[{ text: i18n.ts.inChannelRenote, - icon: 'ph ph-repeat', + icon: 'ti ti-repeat', action: () => { const el = props.renoteButton.value; if (el) { @@ -593,7 +593,7 @@ export function getRenoteMenu(props: { if (!appearNote.channel || appearNote.channel.allowRenoteToExternal) { normalRenoteItems.push(...[{ text: i18n.ts.renote, - icon: 'ph ph-repeat', + icon: 'ti ti-repeat', action: () => { const el = props.renoteButton.value; if (el) { @@ -634,7 +634,7 @@ export function getRenoteMenu(props: { normalExternalChannelRenoteItems.push({ type: 'parent', - icon: 'ph ph-repeat', + icon: 'ti ti-repeat', text: appearNote.channel ? i18n.ts.renoteToOtherChannel : i18n.ts.renoteToChannel, children: async () => { const channels = await favoritedChannelsCache.fetch(); diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 10bb3c216c..e485e610fd 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -320,7 +320,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter text: user.isMuted ? i18n.ts.unmute : i18n.ts.mute, action: toggleMute, }, { - icon: user.isRenoteMuted ? 'ph-repeat ph-bold ph-lg' : 'ph-repeat ph-bold ph-lg-off', + icon: user.isRenoteMuted ? 'ti ti-repeat' : 'ti ti-repeat-off', text: user.isRenoteMuted ? i18n.ts.renoteUnmute : i18n.ts.renoteMute, action: toggleRenoteMute, }, { diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index 1e8c5cdbe6..fc7f224aa0 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -142,6 +142,26 @@ export function getConfig(): UserConfig { '**/pages/admin-user.*', ], }), + iconsReplace({ + values: { + 'ti ti-repeat': 'ph-rocket-launch ph-bold ph-lg', + }, + exclude: [ + '**/components/MkMedia*', + '**/scripts/get-user-menu.*', + '**/pages/gallery/post.*', + ], + }), + iconsReplace({ + values: { + 'ti ti-repeat': 'ph ph-repeat ph-bold ph-lg', + }, + include: [ + '**/components/MkMedia*', + '**/scripts/get-user-menu.*', + '**/pages/gallery/post.*', + ], + }), iconsReplace({ values: { 'ti ti-terminal-2': 'ph-terminal-window ph-bold ph-lg', @@ -223,6 +243,9 @@ export function getConfig(): UserConfig { 'ti ti-player-eject': 'ph-eject ph-bold ph-lg', 'ti ti-player-stop': 'ph-stop ph-bold ph-lg', 'ti ti-player-track-next': 'ph-skip-forward ph-bold ph-lg', + 'ti ti-rocket': 'ph-rocket-launch ph-bold ph-lg', + 'ti ti-rocket-off': 'ph-rocket ph-bold ph-lg', + 'ti ti-repeat-off': 'ph-repeat ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'