Skip to content

Commit

Permalink
feat: Add theme (#614)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: doabackflip <6146689@qq.com>
  • Loading branch information
ci010 and doabackflip committed Apr 10, 2024
1 parent 3199d75 commit ca8d757
Show file tree
Hide file tree
Showing 56 changed files with 1,765 additions and 782 deletions.
2 changes: 2 additions & 0 deletions xmcl-electron-app/main/definedServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { ServerStatusService } from '@xmcl/runtime/serverStatus'
import { InstanceShaderPacksService } from '@xmcl/runtime/shaderPack'
import { OfficialUserService, UserService, YggdrasilService } from '@xmcl/runtime/user'
import { VersionService } from '@xmcl/runtime/version'
import { ThemeService } from '@xmcl/runtime/theme'

export const definedServices = [
VersionMetadataService,
Expand Down Expand Up @@ -58,4 +59,5 @@ export const definedServices = [
InstanceInstallService,
PeerService,
PeerGroupService,
ThemeService,
]
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ setting:
cover: Trimmen
name: Fit
backgroundImageSelect: Wählen Sie
backgroundMusic: Thematische Hintergrundmusik
backgroundType: Hintergrund Typ
backgroundTypeDescription: >-
Einen speziellen Effekt auf dem Hintergrund anzeigen (kann die Leistung
Expand Down Expand Up @@ -1280,6 +1281,12 @@ setting:
dark: Dunkles Thema
light: Thema Licht
system: Verwenden Sie das Systemthema
themeFont: Schriftart
themeFontDescription: Ändern Sie die Schriftart des Launchers.
themeResetFont: Schriftart zurücksetzen
themeSelectFont: Wählen Sie Schriftart aus
themeShare: Thema teilen
themeShareDescription: Sie können das Thema mit Ihrem Freund teilen.
update: Update
useBmclAPI: Verwenden Sie die BMCL-API
useBmclAPIDescription: >-
Expand All @@ -1288,6 +1295,7 @@ setting:
(Funktioniert nicht, wenn Sie sich nicht auf dem chinesischen Festland befinden)
useProxy: HTTP-Proxy
useProxyDescription: Proxy-Server-Adresse für http-Anfrage
viewBackgroundMusic: Musik anzeigen
settingLabel:
global: Global
globalHint: Diese Einstellung entspricht der globalen Einstellung
Expand Down Expand Up @@ -1381,6 +1389,10 @@ task:
nTaskRunning: 'Begonnene Aufgaben: {count}'
name: Aufgaben Aufgabenя
pause: Pause
theme:
selectImage: Bild auswählen
selectMusic: Wählen Sie Musik
selectVideo: Wählen Sie Video
title: X Minecraft Launcher
transportType:
host: Gastgeber-Kandidat
Expand Down
14 changes: 14 additions & 0 deletions xmcl-keystone-ui/locales/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1107,6 +1107,7 @@ setting:
cover: Cover
name: Image Fit
backgroundImageSelect: select
backgroundMusic: Theme Background Music
backgroundType: Background Type
backgroundTypeDescription: Show special effect on background (This may impact performance)
backgroundTypes:
Expand Down Expand Up @@ -1195,13 +1196,22 @@ setting:
dark: Dark Theme
light: Light Theme
system: Use System Theme
themeExport: Export Theme
themeFont: Font
themeFontDescription: Change the font of the launcher.
themeImport: Import Theme
themeResetFont: Reset Font
themeSelectFont: Select Font
themeShare: Share Theme
themeShareDescription: You can share the theme with your friend.
update: Update
useBmclAPI: Use BMCL API
useBmclAPIDescription: >-
Use BMCLAPI to download Minecraft when you are in China Mainland. (This
won't affect if you're not in China mainland)
useProxy: HTTP Proxy
useProxyDescription: The proxy server address for the http request
viewBackgroundMusic: View Musics
settingLabel:
global: Global
globalHint: This setting will follow the global setting
Expand Down Expand Up @@ -1294,6 +1304,10 @@ task:
nTaskRunning: '{count} tasks is running'
name: Task | Tasks
pause: Pause
theme:
selectImage: Select Image
selectMusic: Select Music
selectVideo: Select Video
title: X Minecraft Launcher
transportType:
host: Host Candidate
Expand Down
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/es-ES.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ setting:
contain: Contener
cover: Cubrir
backgroundImageSelect: seleccionar
backgroundMusic: Música de fondo del tema
backgroundType: Tipo de Fondo
backgroundTypeDescription: Muestra efectos especiales en el fondo (esto puede afectar el rendimiento)
backgroundTypes:
Expand Down Expand Up @@ -921,13 +922,20 @@ setting:
dark: Tema Oscuro
light: Tema Claro
system: Usar Tema del Sistema
themeFont: Fuente
themeFontDescription: Cambia la fuente del lanzador.
themeResetFont: Restablecer fuente
themeSelectFont: Seleccionar fuente
themeShare: Compartir tema
themeShareDescription: Puedes compartir el tema con tu amigo.
update: Actualizar
useBmclAPI: Usar API de BMCL
useBmclAPIDescription: >-
Usar BMCLAPI para descargar Minecraft cuando te encuentres en la China
continental. (Esto no afectará si no estás en la China continental)
useProxy: Proxy HTTP
useProxyDescription: La dirección del servidor proxy para las solicitudes HTTP
viewBackgroundMusic: Ver músicas
settingLabel:
global: Global
globalHint: Esta configuración seguirá la configuración global
Expand Down Expand Up @@ -988,6 +996,10 @@ task:
nTaskRunning: '{count} tareas en ejecución'
name: Tarea | Tareas
pause: Pausar
theme:
selectImage: Seleccionar imagen
selectMusic: Seleccionar música
selectVideo: Seleccionar vídeo
title: X Minecraft Launcher
transportType:
host: Candidato de Anfitrión
Expand Down
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,7 @@ setting:
cover: Couvrir
name: S'ajuster
backgroundImageSelect: sélectionner
backgroundMusic: Thème Musique de fond
backgroundType: Type d'arrière-plan
backgroundTypeDescription: >-
Afficher un effet spécial sur l'arrière-plan (cela peut avoir un impact sur
Expand Down Expand Up @@ -1241,6 +1242,12 @@ setting:
dark: Thème sombre
light: Thème clair
system: Utiliser le thème système
themeFont: Police de caractère
themeFontDescription: Changez la police du lanceur.
themeResetFont: Réinitialiser la police
themeSelectFont: Sélectionnez la police
themeShare: Partager le thème
themeShareDescription: Vous pouvez partager le thème avec votre ami.
update: Mettre à jour
useBmclAPI: Utiliser l'API BMCL
useBmclAPIDescription: >-
Expand All @@ -1249,6 +1256,7 @@ setting:
continentale)
useProxy: Proxy HTTP
useProxyDescription: L'adresse du serveur proxy pour la requête http
viewBackgroundMusic: Voir les musiques
settingLabel:
global: Global
globalHint: Ce réglage sera global
Expand Down Expand Up @@ -1341,6 +1349,10 @@ task:
Tâche |
Tâches
pause: Pause
theme:
selectImage: Sélectionnez une image
selectMusic: Sélectionnez la musique
selectVideo: Sélectionnez la vidéo
title: X Minecraft Launcher
transportType:
host: Candidat Hôte
Expand Down
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/gl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ resourcepack:
independent: A instancia utiliza o cartafol do paquete de recursos independente
shared: A instancia utiliza o cartafol do paquete de recursos compartidos
setting:
backgroundMusic: Tema Música de fondo
enableDedicatedGPUOptimization: Asignar GPU dedicada
enableDedicatedGPUOptimizationDescription: Esta opción asignará unha GPU dedicada ao proceso de Minecraft.
maunalUpdateHint: |-
Expand All @@ -258,6 +259,12 @@ setting:
streamerModeDescription: >-
Isto ocultará a túa información privada como o correo electrónico no
launcher.
themeFont: Fonte
themeFontDescription: Cambia o tipo de letra do iniciador.
themeResetFont: Restablecer fonte
themeSelectFont: Seleccione Fonte
themeShare: Compartir tema
themeShareDescription: Podes compartir o tema co teu amigo.
task:
connection:
connected: Conectado
Expand All @@ -267,3 +274,8 @@ task:
running: Conexión en execución
size: reconto total
connections: Conexións de rede
viewBackgroundMusic: Ver músicas
theme:
selectImage: Seleccione Imaxe
selectMusic: Seleccione Música
selectVideo: Seleccione Vídeo
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/hu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ setting:
cover: Elfedje
name: Illeszkedjen
backgroundImageSelect: kiválasztás
backgroundMusic: Téma Háttérzene
backgroundType: Háttérkép típusa
backgroundTypeDescription: >-
Speciális hatás megjelenítése a háttérben (Ez befolyásolhatja a
Expand Down Expand Up @@ -1230,13 +1231,20 @@ setting:
dark: Sötét téma
light: Világos téma
system: Rendszer téma használata
themeFont: Betűtípus
themeFontDescription: Módosítsa az indító betűtípusát.
themeResetFont: Betűtípus visszaállítása
themeSelectFont: Válassza a Betűtípus lehetőséget
themeShare: Téma megosztása
themeShareDescription: Megoszthatja a témát a barátjával.
update: Frissítés
useBmclAPI: BMCL API használata
useBmclAPIDescription: >-
Használd a BMCLAPI-t a Minecraft letöltéséhez, ha a kínai kontinensen
tartózkodsz. (Ez nem befolyásolja, ha nem a kínai kontinensen tartózkodik.)
useProxy: HTTP Proxy
useProxyDescription: A http-kérés proxy-kiszolgálójának címe
viewBackgroundMusic: Zenék megtekintése
settingLabel:
global: Globális
globalHint: Ez a beállítás követi a globális beállítást
Expand Down Expand Up @@ -1330,6 +1338,10 @@ task:
nTaskRunning: '{count} folyamat fut'
name: Folyamat | Folyamatok
pause: Szüneteltetés
theme:
selectImage: Válassza a Kép lehetőséget
selectMusic: Válassza a Zene lehetőséget
selectVideo: Válassza a Videó lehetőséget
title: X Minecraft Launcher
transportType:
host: Kiszolgáló jelölt
Expand Down
12 changes: 12 additions & 0 deletions xmcl-keystone-ui/locales/ru.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ setting:
cover: Обрезать
name: Подогнать
backgroundImageSelect: Выбрать
backgroundMusic: Тематическая фоновая музыка
backgroundType: Тип фона
backgroundTypeDescription: Отображать особый эффект на фоне (Может повлиять на производительность)
backgroundTypes:
Expand Down Expand Up @@ -1162,13 +1163,20 @@ setting:
dark: Тёмная тема
light: Светлая тема
system: Использовать тему системы
themeFont: Шрифт
themeFontDescription: Измените шрифт лаунчера.
themeResetFont: Сбросить шрифт
themeSelectFont: Выберите шрифт
themeShare: Поделиться темой
themeShareDescription: Вы можете поделиться темой со своим другом.
update: Обновить
useBmclAPI: Использовать BMCL API
useBmclAPIDescription: >-
Используйте BMCLAPI для скачивания Minecraft, когда вы находитесь в
материковом Китае. (Не поможет, если вы не находитесь в материковом Китае)
useProxy: HTTP-прокси
useProxyDescription: Адрес прокси-сервера для http-запроса
viewBackgroundMusic: Просмотр музыки
settingLabel:
global: Глобальные
globalHint: Эта настройка будет соответствовать глобальной настройке
Expand Down Expand Up @@ -1257,6 +1265,10 @@ task:
nTaskRunning: 'Запущено задач: {count}'
name: Задача | Задачи
pause: Пауза
theme:
selectImage: Выберите изображение
selectMusic: Выберите музыку
selectVideo: Выберите видео
title: X Minecraft Launcher
transportType:
host: Кандидат Host
Expand Down
Loading

0 comments on commit ca8d757

Please sign in to comment.