mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
MediaMiniSettings: separate bar widget and panel settings
This commit is contained in:
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Steuert das Verhalten des Widgets, wenn keine Medien abgespielt werden.",
|
||||
"max-width-description": "Stellt die maximale Horizontalgröße des Widgets ein. Das Widget wird sich an kürzere Inhalte anpassen.",
|
||||
"no-active-player": "Kein aktiver Player",
|
||||
"panel-section-description": "Konfigurieren Sie das Aussehen und Verhalten des Media Player Popup-Panels.",
|
||||
"panel-section-label": "Medienwiedergabe-Panel",
|
||||
"scrolling-mode-description": "Steuern, wann Textscrolling für lange Track-Titel aktiviert ist.",
|
||||
"scrolling-mode-label": "Scrollmodus",
|
||||
"show-album-art-description": "Albumcover des aktuell abgespielten Tracks anzeigen.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Controls how the widget behaves when no media is playing.",
|
||||
"max-width-description": "Sets the maximum horizontal size of the widget. The widget will shrink to fit shorter content.",
|
||||
"no-active-player": "No active player",
|
||||
"panel-section-description": "Configure the appearance and behavior of the Media Player popup panel.",
|
||||
"panel-section-label": "Media Player Panel",
|
||||
"scrolling-mode-description": "Control when text scrolling is enabled for long track titles.",
|
||||
"scrolling-mode-label": "Scrolling mode",
|
||||
"show-album-art-description": "Display the album artwork for the currently playing track.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Controla el comportamiento del widget cuando no se está reproduciendo ningún medio.",
|
||||
"max-width-description": "Establece el tamaño horizontal máximo del widget. El widget se reducirá para adaptarse a contenido más corto.",
|
||||
"no-active-player": "Sin reproductor activo",
|
||||
"panel-section-description": "Configurar la apariencia y el comportamiento del panel emergente del reproductor multimedia.",
|
||||
"panel-section-label": "Panel del reproductor multimedia",
|
||||
"scrolling-mode-description": "Controlar cuándo está habilitado el desplazamiento de texto para títulos de pista largos.",
|
||||
"scrolling-mode-label": "Modo de desplazamiento",
|
||||
"show-album-art-description": "Mostrar la portada del álbum de la pista que se está reproduciendo actualmente.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Contrôle le comportement du widget lorsqu'aucun média n'est en cours de lecture.",
|
||||
"max-width-description": "Définit la taille horizontale maximale du widget. Le widget se rétrécira pour s'adapter à un contenu plus court.",
|
||||
"no-active-player": "Aucun lecteur actif",
|
||||
"panel-section-description": "Configurer l'apparence et le comportement du panneau contextuel du lecteur multimédia.",
|
||||
"panel-section-label": "Panneau du lecteur multimédia",
|
||||
"scrolling-mode-description": "Contrôler quand le défilement de texte est activé pour les titres de piste longs.",
|
||||
"scrolling-mode-label": "Mode de défilement",
|
||||
"show-album-art-description": "Afficher la pochette d'album de la piste en cours de lecture.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Szabályozza a widget viselkedését, ha nincs média lejátszva.",
|
||||
"max-width-description": "Beállítja a widget maximális vízszintes méretét. A widget zsugorodik, hogy illeszkedjen a rövidebb tartalomhoz.",
|
||||
"no-active-player": "Nincs aktív lejátszó",
|
||||
"panel-section-description": "A médialejátszó felugró paneljének megjelenésének és viselkedésének konfigurálása.",
|
||||
"panel-section-label": "Médialejátszó panel",
|
||||
"scrolling-mode-description": "Szabályozza, mikor engedélyezett a szöveggörgetés hosszú zenecímek esetén.",
|
||||
"scrolling-mode-label": "Görgetési mód",
|
||||
"show-album-art-description": "Jelenítse meg a borítóképet az aktuálisan játszott számhoz.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "再生中のメディアがない場合のウィジェットの動作を制御します。",
|
||||
"max-width-description": "ウィジェットの最大幅を設定します。内容が短い場合は自動的に縮小します。",
|
||||
"no-active-player": "アクティブなプレーヤーなし",
|
||||
"panel-section-description": "メディアプレーヤーのポップアップパネルの表示と動作を設定します。",
|
||||
"panel-section-label": "メディアプレーヤーパネル",
|
||||
"scrolling-mode-description": "長いトラックタイトルのスクロール動作を制御します。",
|
||||
"scrolling-mode-label": "スクロールモード",
|
||||
"show-album-art-description": "現在再生中のトラックのアルバムアートを表示します。",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Kontrola ku widget çawa tevdigere dema ku tu medya nayê lîstin.",
|
||||
"max-width-description": "Mezinahiya herî zêde ya horizontî ya widgetê diyar dike. Widget dê bi naveroka kurt re were kurtkirin.",
|
||||
"no-active-player": "Bê lîstikvanê çalak.",
|
||||
"panel-section-description": "Xuyakirina xuyabûn û reftarên panela pop-up a Media Player.",
|
||||
"panel-section-label": "Panela Lîstikvanê Medyayê",
|
||||
"scrolling-mode-description": "Kontrola dema ku geroka nivîsê ji bo sernavên rêyên dirêj tê çalak kirin.",
|
||||
"scrolling-mode-label": "Moda Gerandinê",
|
||||
"show-album-art-description": "Wêneyê albûmê ya strana ku niha lê tê guhdarîkirin nîşan bide.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Bepaalt hoe de widget zich gedraagt wanneer er geen media wordt afgespeeld.",
|
||||
"max-width-description": "Stelt de maximale horizontale grootte van de widget in. De widget krimpt mee met kortere inhoud.",
|
||||
"no-active-player": "Geen actieve speler",
|
||||
"panel-section-description": "Configureer het uiterlijk en gedrag van het pop-upvenster van de Mediaspeler.",
|
||||
"panel-section-label": "Mediaspelerpaneel",
|
||||
"scrolling-mode-description": "Bepaalt wanneer tekstscrollen wordt ingeschakeld voor lange tracktitels.",
|
||||
"scrolling-mode-label": "Scrollmodus",
|
||||
"show-album-art-description": "Toon de albumhoes van het huidige nummer.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Kontroluje zachowanie widżetu, gdy żadne media nie są odtwarzane.",
|
||||
"max-width-description": "Ustawia maksymalną szerokość poziomą widżetu. Widżet skurczy się, aby dopasować się do krótszej zawartości.",
|
||||
"no-active-player": "Brak aktywnego odtwarzacza",
|
||||
"panel-section-description": "Skonfiguruj wygląd i zachowanie wyskakującego panelu Odtwarzacza multimediów.",
|
||||
"panel-section-label": "Panel odtwarzacza multimedialnego",
|
||||
"scrolling-mode-description": "Kontroluje, kiedy włączone jest przewijanie tekstu dla długich tytułów utworów.",
|
||||
"scrolling-mode-label": "Tryb przewijania",
|
||||
"show-album-art-description": "Wyświetl okładkę albumu aktualnie odtwarzanego utworu.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Controla o comportamento do widget quando nenhuma mídia está sendo reproduzida.",
|
||||
"max-width-description": "Define o tamanho horizontal máximo do widget. O widget será reduzido para se adequar a conteúdo mais curto.",
|
||||
"no-active-player": "Nenhum player ativo",
|
||||
"panel-section-description": "Configure a aparência e o comportamento do painel pop-up do Media Player.",
|
||||
"panel-section-label": "Painel do Reprodutor de Mídia",
|
||||
"scrolling-mode-description": "Controlar quando a rolagem de texto está habilitada para títulos de faixa longos.",
|
||||
"scrolling-mode-label": "Modo de rolagem",
|
||||
"show-album-art-description": "Exibir a arte do álbum da faixa atualmente sendo reproduzida.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Управляет поведением виджета, когда медиа не воспроизводится.",
|
||||
"max-width-description": "Устанавливает максимальный горизонтальный размер виджета. Виджет будет сжиматься, чтобы соответствовать более короткому содержимому.",
|
||||
"no-active-player": "Нет активного плеера",
|
||||
"panel-section-description": "Настроить внешний вид и поведение всплывающей панели Медиапроигрывателя.",
|
||||
"panel-section-label": "Панель медиаплеера",
|
||||
"scrolling-mode-description": "Управление включением прокрутки текста для длинных названий треков.",
|
||||
"scrolling-mode-label": "Режим прокрутки",
|
||||
"show-album-art-description": "Отображать обложку альбома для текущего воспроизводимого трека.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Ortam çalınmadığında araç takımının nasıl davrandığını kontrol eder.",
|
||||
"max-width-description": "Araç takımının en fazla yatay boyutunu ayarlar. Araç takımı daha kısa içerik için küçülecektir.",
|
||||
"no-active-player": "Etkin çalar yok",
|
||||
"panel-section-description": "Medya Oynatıcı açılır panelinin görünümünü ve davranışını yapılandırın.",
|
||||
"panel-section-label": "Medya Oynatıcı Paneli",
|
||||
"scrolling-mode-description": "Uzun parça başlıkları için metin kaydırmanın ne zaman etkinleştirileceğini kontrol et.",
|
||||
"scrolling-mode-label": "Kaydırma modu",
|
||||
"show-album-art-description": "Şu anda çalan parçanın albüm kapağını göster.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "Керує поведінкою віджета, коли медіа не відтворюється.",
|
||||
"max-width-description": "Встановлює максимальний горизонтальний розмір віджета. Віджет зменшується для коротшого вмісту.",
|
||||
"no-active-player": "Немає активного плеєра",
|
||||
"panel-section-description": "Налаштуйте зовнішній вигляд та поведінку спливаючої панелі медіаплеєра.",
|
||||
"panel-section-label": "Панель медіаплеєра",
|
||||
"scrolling-mode-description": "Керування, коли увімкнено прокрутку тексту для довгих назв треків.",
|
||||
"scrolling-mode-label": "Режим прокрутки",
|
||||
"show-album-art-description": "Відображати обкладинку альбому для поточного треку.",
|
||||
|
||||
@@ -151,6 +151,8 @@
|
||||
"hide-mode-description": "控制当没有媒体播放时小部件的行为。",
|
||||
"max-width-description": "设置小部件的最大水平尺寸。当内容较短时,小部件会自动收缩以适应内容。",
|
||||
"no-active-player": "无活动播放器",
|
||||
"panel-section-description": "配置媒体播放器弹出面板的外观和行为。",
|
||||
"panel-section-label": "媒体播放器面板",
|
||||
"scrolling-mode-description": "控制何时为长曲目标题启用文本滚动。",
|
||||
"scrolling-mode-label": "滚动模式",
|
||||
"show-album-art-description": "显示当前播放曲目的专辑封面。",
|
||||
|
||||
@@ -98,7 +98,11 @@
|
||||
"showArtistFirst": true,
|
||||
"showVisualizer": false,
|
||||
"showProgressRing": true,
|
||||
"visualizerType": "linear"
|
||||
"visualizerType": "linear",
|
||||
"panelShowAlbumArt": true,
|
||||
"panelShowVisualizer": true,
|
||||
"compactShowAlbumArt": true,
|
||||
"compactShowVisualizer": false
|
||||
},
|
||||
"Microphone": {
|
||||
"displayMode": "onhover"
|
||||
|
||||
@@ -36,7 +36,7 @@ SmartPanel {
|
||||
|
||||
readonly property string visualizerType: (mediaMiniSettings && mediaMiniSettings.visualizerType !== undefined) ? mediaMiniSettings.visualizerType : "linear"
|
||||
readonly property bool showArtistFirst: !!(mediaMiniSettings && mediaMiniSettings.showArtistFirst !== undefined ? mediaMiniSettings.showArtistFirst : true)
|
||||
readonly property bool showAlbumArt: !!(mediaMiniSettings && mediaMiniSettings.showAlbumArt !== undefined ? mediaMiniSettings.showAlbumArt : true)
|
||||
readonly property bool showAlbumArt: !!(mediaMiniSettings && mediaMiniSettings.panelShowAlbumArt !== undefined ? mediaMiniSettings.panelShowAlbumArt : true)
|
||||
readonly property bool showVisualizer: !!(mediaMiniSettings && mediaMiniSettings.showVisualizer !== undefined ? mediaMiniSettings.showVisualizer : true)
|
||||
readonly property bool compactMode: !!(mediaMiniSettings && mediaMiniSettings.compactMode !== undefined ? mediaMiniSettings.compactMode : false)
|
||||
readonly property string scrollingMode: (mediaMiniSettings && mediaMiniSettings.scrollingMode !== undefined) ? mediaMiniSettings.scrollingMode : "hover"
|
||||
|
||||
@@ -15,16 +15,17 @@ ColumnLayout {
|
||||
// Local state
|
||||
property string valueHideMode: "hidden" // Default to 'Hide When Empty'
|
||||
// Deprecated: hideWhenIdle now folded into hideMode = "idle"
|
||||
property bool valueHideWhenIdle: widgetData.hideWhenIdle !== undefined ? widgetData.hideWhenIdle : widgetMetadata.hideWhenIdle
|
||||
property bool valueShowAlbumArt: widgetData.showAlbumArt !== undefined ? widgetData.showAlbumArt : widgetMetadata.showAlbumArt
|
||||
property bool valueShowArtistFirst: widgetData.showArtistFirst !== undefined ? widgetData.showArtistFirst : widgetMetadata.showArtistFirst
|
||||
property bool valueShowVisualizer: widgetData.showVisualizer !== undefined ? widgetData.showVisualizer : widgetMetadata.showVisualizer
|
||||
property string valueVisualizerType: widgetData.visualizerType || widgetMetadata.visualizerType
|
||||
property string valueScrollingMode: widgetData.scrollingMode || widgetMetadata.scrollingMode
|
||||
property int valueMaxWidth: widgetData.maxWidth !== undefined ? widgetData.maxWidth : widgetMetadata.maxWidth
|
||||
property bool valueUseFixedWidth: widgetData.useFixedWidth !== undefined ? widgetData.useFixedWidth : widgetMetadata.useFixedWidth
|
||||
property bool valueShowProgressRing: widgetData.showProgressRing !== undefined ? widgetData.showProgressRing : widgetMetadata.showProgressRing
|
||||
property bool valueCompactMode: widgetData.compactMode !== undefined ? widgetData.compactMode : widgetMetadata.compactMode
|
||||
property bool valueHideWhenIdle: (widgetData && widgetData.hideWhenIdle !== undefined) ? widgetData.hideWhenIdle : (widgetMetadata && widgetMetadata.hideWhenIdle !== undefined ? widgetMetadata.hideWhenIdle : false)
|
||||
property bool valueShowAlbumArt: (widgetData && widgetData.showAlbumArt !== undefined) ? widgetData.showAlbumArt : (widgetMetadata && widgetMetadata.showAlbumArt !== undefined ? widgetMetadata.showAlbumArt : false)
|
||||
property bool valuePanelShowAlbumArt: (widgetData && widgetData.panelShowAlbumArt !== undefined) ? widgetData.panelShowAlbumArt : (widgetMetadata && widgetMetadata.panelShowAlbumArt !== undefined ? widgetMetadata.panelShowAlbumArt : true)
|
||||
property bool valueShowArtistFirst: (widgetData && widgetData.showArtistFirst !== undefined) ? widgetData.showArtistFirst : (widgetMetadata && widgetMetadata.showArtistFirst !== undefined ? widgetMetadata.showArtistFirst : true)
|
||||
property bool valueShowVisualizer: (widgetData && widgetData.showVisualizer !== undefined) ? widgetData.showVisualizer : (widgetMetadata && widgetMetadata.showVisualizer !== undefined ? widgetMetadata.showVisualizer : false)
|
||||
property string valueVisualizerType: (widgetData && widgetData.visualizerType) || (widgetMetadata && widgetMetadata.visualizerType) || "linear"
|
||||
property string valueScrollingMode: (widgetData && widgetData.scrollingMode) || (widgetMetadata && widgetMetadata.scrollingMode) || "hover"
|
||||
property int valueMaxWidth: (widgetData && widgetData.maxWidth !== undefined) ? widgetData.maxWidth : (widgetMetadata && widgetMetadata.maxWidth !== undefined ? widgetMetadata.maxWidth : 145)
|
||||
property bool valueUseFixedWidth: (widgetData && widgetData.useFixedWidth !== undefined) ? widgetData.useFixedWidth : (widgetMetadata && widgetMetadata.useFixedWidth !== undefined ? widgetMetadata.useFixedWidth : false)
|
||||
property bool valueShowProgressRing: (widgetData && widgetData.showProgressRing !== undefined) ? widgetData.showProgressRing : (widgetMetadata && widgetMetadata.showProgressRing !== undefined ? widgetMetadata.showProgressRing : true)
|
||||
property bool valueCompactMode: (widgetData && widgetData.compactMode !== undefined) ? widgetData.compactMode : (widgetMetadata && widgetMetadata.compactMode !== undefined ? widgetMetadata.compactMode : false)
|
||||
|
||||
Component.onCompleted: {
|
||||
if (widgetData && widgetData.hideMode !== undefined) {
|
||||
@@ -37,6 +38,7 @@ ColumnLayout {
|
||||
settings.hideMode = valueHideMode;
|
||||
// No longer store hideWhenIdle separately; kept for backward compatibility only
|
||||
settings.showAlbumArt = valueShowAlbumArt;
|
||||
settings.panelShowAlbumArt = valuePanelShowAlbumArt;
|
||||
settings.showArtistFirst = valueShowArtistFirst;
|
||||
settings.showVisualizer = valueShowVisualizer;
|
||||
settings.visualizerType = valueVisualizerType;
|
||||
@@ -141,13 +143,6 @@ ColumnLayout {
|
||||
onToggled: checked => valueShowProgressRing = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.media-mini.compact-mode-label")
|
||||
description: I18n.tr("bar.media-mini.compact-mode-description")
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => valueCompactMode = checked
|
||||
}
|
||||
|
||||
NComboBox {
|
||||
label: I18n.tr("bar.media-mini.scrolling-mode-label")
|
||||
description: I18n.tr("bar.media-mini.scrolling-mode-description")
|
||||
@@ -169,4 +164,29 @@ ColumnLayout {
|
||||
onSelected: key => valueScrollingMode = key
|
||||
minimumWidth: 200
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: Style.marginS
|
||||
}
|
||||
|
||||
NLabel {
|
||||
label: I18n.tr("bar.media-mini.panel-section-label")
|
||||
description: I18n.tr("bar.media-mini.panel-section-description")
|
||||
labelColor: Color.mPrimary
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.media-mini.show-album-art-label")
|
||||
description: I18n.tr("bar.media-mini.show-album-art-description")
|
||||
checked: valuePanelShowAlbumArt
|
||||
onToggled: checked => valuePanelShowAlbumArt = checked
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.media-mini.compact-mode-label")
|
||||
description: I18n.tr("bar.media-mini.compact-mode-description")
|
||||
checked: valueCompactMode
|
||||
onToggled: checked => valueCompactMode = checked
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,10 @@ Singleton {
|
||||
"showVisualizer": false,
|
||||
"showProgressRing": true,
|
||||
"visualizerType": "linear",
|
||||
"compactMode": false
|
||||
"panelShowAlbumArt": true,
|
||||
"panelShowVisualizer": true,
|
||||
"compactShowAlbumArt": true,
|
||||
"compactShowVisualizer": false
|
||||
},
|
||||
"Microphone": {
|
||||
"displayMode": "onhover"
|
||||
|
||||
Reference in New Issue
Block a user