diff --git a/.npmrc b/.npmrc index b3566efca..5104ca4e6 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,2 @@ save-exact=true strict-peer-deps=true -fund=false diff --git a/.vscode/settings.json b/.vscode/settings.json index fce62f60e..39bcc4903 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { - // vite+ (linting and formatting) + // vite+ "editor.codeActionsOnSave": { "source.fixAll.oxc": "always" }, @@ -7,6 +7,8 @@ "editor.formatOnSave": true, "editor.formatOnSaveMode": "file", "oxc.typeAware": true, + "oxc.configPath": "vite.config.ts", + "vitest.shellType": "terminal", // others "files.watcherExclude": { "**/.git/objects/**": true, diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index ece0d0e20..2812cc96c 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -126,11 +126,11 @@ fn main() { // TODO: Windows drag-n-drop on windows does not work :| // https://github.com/tauri-apps/wry/issues/904 #[cfg(target_os = "windows")] - window_builder.disable_drag_drop_handler().build()?; + let window = window_builder.disable_drag_drop_handler().build()?; // On macOS, we hide the native frame and use overlay controls as they're nicer #[cfg(target_os = "macos")] - window_builder + let window = window_builder .hidden_title(true) .title_bar_style(tauri::TitleBarStyle::Overlay) .traffic_light_position(tauri::Position::Logical(tauri::LogicalPosition { @@ -142,7 +142,10 @@ fn main() { .build()?; #[cfg(target_os = "linux")] - window_builder.build()?; + let window = window_builder.build()?; + + // Should probably be on the builder, but the API is not there yet + window.set_zoom(conf.ui_zoom_level)?; info!("Main window built"); diff --git a/src-tauri/src/plugins/config.rs b/src-tauri/src/plugins/config.rs index b506f87b5..ff3555614 100644 --- a/src-tauri/src/plugins/config.rs +++ b/src-tauri/src/plugins/config.rs @@ -60,6 +60,7 @@ pub struct Config { pub language: String, pub theme: String, pub ui_accent_color: Option, + pub ui_zoom_level: f64, pub audio_volume: f32, pub audio_playback_rate: Option, pub audio_follow_playing_track: bool, @@ -87,6 +88,7 @@ impl Default for Config { language: "en".to_owned(), theme: SYSTEM_THEME.to_owned(), ui_accent_color: None, + ui_zoom_level: 1.0, audio_volume: 1.0, audio_playback_rate: Some(1.0), audio_follow_playing_track: false, diff --git a/src/components/Setting.tsx b/src/components/Setting.tsx index 7b85b92c1..224a110b6 100644 --- a/src/components/Setting.tsx +++ b/src/components/Setting.tsx @@ -100,7 +100,7 @@ export function Select( return (
- {props.children} {description != null && {description}} @@ -153,31 +153,12 @@ const styles = stylex.create({ settingLabelNoMargin: { marginBottom: 0, }, - settingSelect: { - appearance: 'none', - display: 'block', - backgroundColor: 'var(--input-bg)', - color: 'var(--input-color)', - borderWidth: '1px', - borderStyle: 'solid', - borderColor: { - default: 'var(--border-color-softer)', - ':focus': 'var(--main-color)', - }, - borderRadius: 'var(--border-radius)', - padding: '8px', - width: '100%', - fontSize: '1rem', - opacity: { - ':disabled': 0.6, - }, - cursor: { - ':disabled': 'not-allowed', - }, - }, settingInput: { + boxSizing: 'border-box', + height: '32px', appearance: 'none', display: 'block', + lineHeight: 1, backgroundColor: 'var(--input-bg)', color: 'var(--input-color)', borderWidth: '1px', diff --git a/src/generated/typings.ts b/src/generated/typings.ts index 7bafdd480..d48be82a5 100644 --- a/src/generated/typings.ts +++ b/src/generated/typings.ts @@ -1,6 +1,6 @@ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. -export type Config = { language: string, theme: string, ui_accent_color: string | null, audio_volume: number, audio_playback_rate: number | null, audio_follow_playing_track: boolean, audio_muted: boolean, audio_shuffle: boolean, audio_repeat: Repeat, audio_stream_server: boolean, default_view: DefaultView, library_sort_by: SortBy, library_sort_order: SortOrder, library_folders: Array, library_autorefresh: boolean, sleepblocker: boolean, auto_update_checker: boolean, notifications: boolean, track_view_density: TrackViewDensity, wayland_compat: boolean, }; +export type Config = { language: string, theme: string, ui_accent_color: string | null, ui_zoom_level: number, audio_volume: number, audio_playback_rate: number | null, audio_follow_playing_track: boolean, audio_muted: boolean, audio_shuffle: boolean, audio_repeat: Repeat, audio_stream_server: boolean, default_view: DefaultView, library_sort_by: SortBy, library_sort_order: SortOrder, library_folders: Array, library_autorefresh: boolean, sleepblocker: boolean, auto_update_checker: boolean, notifications: boolean, track_view_density: TrackViewDensity, wayland_compat: boolean, }; export type DefaultView = "Library" | "Artists" | "Playlists"; diff --git a/src/routes/settings.audio.tsx b/src/routes/settings.audio.tsx index 632ac3be5..f357e12c2 100644 --- a/src/routes/settings.audio.tsx +++ b/src/routes/settings.audio.tsx @@ -27,7 +27,7 @@ function ViewSettingsAudio() { value={config.audio_playback_rate ?? ''} onChange={(e) => player - .setPlaybackRate(Number.parseFloat(e.currentTarget.value)) + .setPlaybackRate(e.currentTarget.valueAsNumber) .then(invalidate) .catch(logAndNotifyError) } diff --git a/src/routes/settings.ui.tsx b/src/routes/settings.ui.tsx index 37476376a..b4a60c5f2 100644 --- a/src/routes/settings.ui.tsx +++ b/src/routes/settings.ui.tsx @@ -3,7 +3,7 @@ import { Trans, useLingui } from '@lingui/react/macro'; import { createFileRoute, useLoaderData } from '@tanstack/react-router'; import { relaunch } from '@tauri-apps/plugin-process'; import { debounce } from 'lodash-es'; -import { useMemo } from 'react'; +import { useEffect, useMemo, useState } from 'react'; import * as Setting from '../components/Setting'; import CheckboxSetting from '../components/SettingCheckbox'; @@ -108,6 +108,22 @@ function ViewSettingsUI() { })} + + { + SettingsAPI.setUIZoomLevel(e.currentTarget.valueAsNumber) + .then(invalidate) + .catch(logAndNotifyError); + }} + /> + { document.documentElement.style.setProperty('--main-color', mainColor); }; +const setUIZoomLevel = async (zoomLevel: number): Promise => { + await getCurrentWebview().setZoom(zoomLevel); + await ConfigBridge.set( + 'ui_zoom_level' as keyof Config, + zoomLevel as Config[keyof Config], + ); +}; + /** * Check if a new release is available */ @@ -226,6 +235,7 @@ const SettingsAPI = { applyThemeToUI, setUIMainColor, applyUIMainColorToUI, + setUIZoomLevel, setTracksDensity, checkForUpdate, toggleLibraryAutorefresh, diff --git a/src/translations/en.po b/src/translations/en.po index 2f56d89d1..5f0a9d23d 100644 --- a/src/translations/en.po +++ b/src/translations/en.po @@ -82,13 +82,13 @@ msgstr "Library" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "Artists" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "Playlists" @@ -490,62 +490,70 @@ msgid "Language" msgstr "Language" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "Zoom level" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "Scale the interface size (for example 1, 1.1, or 1.25)" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "Tracks density" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "Change the tracks spacing" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "Normal (default)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "Compact" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "Default view" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "Change the default view when starting the application" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "Library (default)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "Display Notifications" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "Send notifications when the playing track changes" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "Sleep mode blocker" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "Prevent the computer from going into sleep mode when playing" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[Beta] Wayland compatibility enhancements" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "If you face issues using Wayland, try out this option" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "Light" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "Dark" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "The playlist \"{name}\" was created" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} is available, check https://museeks.io!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} is the latest version available." diff --git a/src/translations/es.po b/src/translations/es.po index e43476e2e..924415811 100644 --- a/src/translations/es.po +++ b/src/translations/es.po @@ -82,13 +82,13 @@ msgstr "Biblioteca" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "Artistas" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "Listas de reproducción" @@ -490,62 +490,70 @@ msgid "Language" msgstr "Idioma" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "Densidad de pistas" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "Cambiar el espaciado de las pistas" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "Normal (por defecto)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "Compacto" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "Vista por defecto" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "Cambiar la vista por defecto al iniciar la aplicación" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "Biblioteca (por defecto)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "Mostrar Notificaciones" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "Enviar notificaciones cuando cambie la pista" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "Bloqueador de suspensión" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "Evitar que el equipo se suspenda mientras reproduce" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[Beta] Mejoras de compatibilidad con Wayland" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "Si tienes problemas usando Wayland, prueba esta opción" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "Claro" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "Oscuro" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "La lista \"{name}\" fue creada" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} está disponible, ¡comprueba https://museeks.io!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} es la última versión disponible." diff --git a/src/translations/fr.po b/src/translations/fr.po index e1790a837..1ffde9df7 100644 --- a/src/translations/fr.po +++ b/src/translations/fr.po @@ -82,13 +82,13 @@ msgstr "Bibliothèque" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "Artistes" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "Playlists" @@ -490,62 +490,70 @@ msgid "Language" msgstr "Langue" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "Densité visuelle des pistes" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "Adapter l'espace entre les pistes" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "Normal (par défaut)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "Compact" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "Vue par défaut" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "Changer la vue par défaut au démarrage de l'application" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "Bibliothèque (par défaut)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "Afficher les notifications" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "Envoyer des notifications lorsque la piste en cours change" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "Bloqueur de mode veille" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "Empêcher l'ordinateur de passer en mode veille lors de la lecture" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[Beta] Améliorations de la compatibilité Wayland" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "Si vous rencontrez des problèmes avec Wayland, essayez cette option" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "Clair" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "Sombre" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "La playlist \"{name}\" a été créée" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} est disponible, consultez https://museeks.io !" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} est la dernière version disponible." diff --git a/src/translations/ja.po b/src/translations/ja.po index d67d07d39..031988383 100644 --- a/src/translations/ja.po +++ b/src/translations/ja.po @@ -82,13 +82,13 @@ msgstr "ライブラリ" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "アーティスト" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "プレイリスト" @@ -490,62 +490,70 @@ msgid "Language" msgstr "言語" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "トラック密度" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "トラックの間隔を変更" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "標準(デフォルト)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "コンパクト" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "デフォルトビュー" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "アプリケーション起動時のデフォルトビューを変更" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "ライブラリ(デフォルト)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "通知を表示" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "再生中のトラックが変更された時に通知を送信" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "スリープモード防止" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "再生中にコンピューターがスリープモードに入るのを防ぐ" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[ベータ] Wayland互換性強化" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "Waylandの使用で問題が発生した場合は、このオプションをお試しください" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "ライト" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "ダーク" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "プレイリスト「{name}」が作成されました" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} が利用可能です。https://museeks.io をご確認ください!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} が利用可能な最新バージョンです。" diff --git a/src/translations/ru.po b/src/translations/ru.po index 2253f171d..ef3790eb1 100644 --- a/src/translations/ru.po +++ b/src/translations/ru.po @@ -82,13 +82,13 @@ msgstr "Библиотека" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "Исполнители" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "Плейлисты" @@ -490,62 +490,70 @@ msgid "Language" msgstr "Язык" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "Плотность треков" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "Изменить расстояние между треками" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "Номральная (по умолчанию)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "Компатная" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "Представление по умолчанию" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "Изменить представление по умолчанию при запуске приложения" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "Библиотека (по умолчанию)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "Отображать уведомления" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "Посылать уведомления при смене проигрываемого трека" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "Блокировать режим сна" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "Предпятствовать переходу компьютера в режим сна во время проигрывания" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[Beta] Улучшения совместимости с Wayland" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "Если у вас возникли проблемы с Wayland, попробуйте эту опцию" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "Светлая" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "Тёмная" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "Создан плейлист \"{name}\"" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Доступна версия Museeks {0}, проверьте https://museeks.io!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} является самой последней доступной версией." diff --git a/src/translations/zh-CN.po b/src/translations/zh-CN.po index 57f3176dc..eba7e2140 100644 --- a/src/translations/zh-CN.po +++ b/src/translations/zh-CN.po @@ -82,13 +82,13 @@ msgstr "音乐库" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "艺术家" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "播放列表" @@ -490,62 +490,70 @@ msgid "Language" msgstr "语言" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "音轨密度" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "更改音轨间距" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "正常(默认)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "紧凑" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "默认视图" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "更改启动应用程序时的默认视图" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "音乐库(默认)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "显示通知" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "播放音轨更改时发送通知" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "睡眠模式阻止器" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "播放时防止计算机进入睡眠模式" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[测试版] Wayland 兼容性增强" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "如果您在使用 Wayland 时遇到问题,请尝试此选项" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "浅色" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "深色" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "播放列表 \"{name}\" 已创建" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} 可用,请查看 https://museeks.io!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} 是可用的最新版本。" diff --git a/src/translations/zh-TW.po b/src/translations/zh-TW.po index 7ab09bee2..0f958900f 100644 --- a/src/translations/zh-TW.po +++ b/src/translations/zh-TW.po @@ -82,13 +82,13 @@ msgstr "音樂庫" #: src/components/Navigation.tsx:61 #: src/routes/artists.tsx:64 -#: src/routes/settings.ui.tsx:147 +#: src/routes/settings.ui.tsx:163 msgid "Artists" msgstr "藝術家" #: src/components/Navigation.tsx:68 #: src/routes/playlists.tsx:165 -#: src/routes/settings.ui.tsx:150 +#: src/routes/settings.ui.tsx:166 msgid "Playlists" msgstr "播放清單" @@ -490,62 +490,70 @@ msgid "Language" msgstr "語言" #: src/routes/settings.ui.tsx:113 +msgid "Zoom level" +msgstr "" + +#: src/routes/settings.ui.tsx:114 +msgid "Scale the interface size (for example 1, 1.1, or 1.25)" +msgstr "" + +#: src/routes/settings.ui.tsx:129 msgid "Tracks density" msgstr "音軌密度" -#: src/routes/settings.ui.tsx:114 +#: src/routes/settings.ui.tsx:130 msgid "Change the tracks spacing" msgstr "變更音軌間距" -#: src/routes/settings.ui.tsx:125 +#: src/routes/settings.ui.tsx:141 msgid "Normal (default)" msgstr "正常(預設)" -#: src/routes/settings.ui.tsx:128 +#: src/routes/settings.ui.tsx:144 msgid "Compact" msgstr "緊湊" -#: src/routes/settings.ui.tsx:134 +#: src/routes/settings.ui.tsx:150 msgid "Default view" msgstr "預設檢視" -#: src/routes/settings.ui.tsx:136 +#: src/routes/settings.ui.tsx:152 msgid "Change the default view when starting the application" msgstr "變更啟動應用程式時的預設檢視" -#: src/routes/settings.ui.tsx:144 +#: src/routes/settings.ui.tsx:160 msgid "Library (default)" msgstr "音樂庫(預設)" -#: src/routes/settings.ui.tsx:156 +#: src/routes/settings.ui.tsx:172 msgid "Display Notifications" msgstr "顯示通知" -#: src/routes/settings.ui.tsx:157 +#: src/routes/settings.ui.tsx:173 msgid "Send notifications when the playing track changes" msgstr "播放音軌變更時發送通知" -#: src/routes/settings.ui.tsx:166 +#: src/routes/settings.ui.tsx:182 msgid "Sleep mode blocker" msgstr "睡眠模式阻止器" -#: src/routes/settings.ui.tsx:167 +#: src/routes/settings.ui.tsx:183 msgid "Prevent the computer from going into sleep mode when playing" msgstr "播放時防止電腦進入睡眠模式" -#: src/routes/settings.ui.tsx:177 +#: src/routes/settings.ui.tsx:193 msgid "[Beta] Wayland compatibility enhancements" msgstr "[測試版] Wayland 相容性強化" -#: src/routes/settings.ui.tsx:178 +#: src/routes/settings.ui.tsx:194 msgid "If you face issues using Wayland, try out this option" msgstr "如果您在使用 Wayland 時遇到問題,請嘗試此選項" -#: src/routes/settings.ui.tsx:201 +#: src/routes/settings.ui.tsx:217 msgid "Light" msgstr "淺色" -#: src/routes/settings.ui.tsx:203 +#: src/routes/settings.ui.tsx:219 msgid "Dark" msgstr "深色" @@ -612,11 +620,11 @@ msgid "The playlist \"{name}\" was created" msgstr "播放清單 \"{name}\" 已建立" #. placeholder {0}: newRelease.tag_name -#: src/stores/SettingsAPI.ts:167 +#: src/stores/SettingsAPI.ts:176 msgid "Museeks {0} is available, check https://museeks.io!" msgstr "Museeks {0} 可用,請查看 https://museeks.io!" -#: src/stores/SettingsAPI.ts:169 +#: src/stores/SettingsAPI.ts:178 msgid "Museeks {currentVersion} is the latest version available." msgstr "Museeks {currentVersion} 是可用的最新版本。"