mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
DockTab: add show/hide speed slider
This commit is contained in:
@@ -1574,6 +1574,10 @@
|
||||
"description": "Gesamtgröße des Docks anpassen.",
|
||||
"label": "Dock-Größe"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Geschwindigkeit der Ein-/Ausblend-Animation des Docks anpassen.",
|
||||
"label": "Ein-/Ausblend-Geschwindigkeit"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Anzeige von Indikator-Pillen für alle Apps, nicht nur für die aktuell aktive.",
|
||||
"label": "Laufende Indikatoren"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Adjust the overall size of the dock.",
|
||||
"label": "Dock size"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Adjust the speed of the dock hide/show animation.",
|
||||
"label": "Hide/Show Speed"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Display indicatator pills for all apps, not just the currently active one.",
|
||||
"label": "Running Indicators"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Ajusta el tamaño general del Dock.",
|
||||
"label": "Tamaño del Dock"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Ajusta la velocidad de la animación de ocultar/mostrar del dock.",
|
||||
"label": "Velocidad de Ocultar/Mostrar"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Mostrar indicadores en forma de pastillas para todas las aplicaciones, no solo para la que está activa actualmente.",
|
||||
"label": "Indicadores de ejecución"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Ajuster la taille globale du Dock.",
|
||||
"label": "Taille du Dock"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Ajustez la vitesse de l'animation d'affichage/masquage du dock.",
|
||||
"label": "Vitesse d'affichage/masquage"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Afficher les pastilles d'indicateur pour toutes les applications, pas seulement celle qui est active.",
|
||||
"label": "Indicateurs de fonctionnement"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "ドック全体のサイズを調整します。",
|
||||
"label": "ドックのサイズ"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "ドックの表示/非表示アニメーションの速度を調整します。",
|
||||
"label": "表示/非表示の速度"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "現在アクティブなアプリだけでなく、すべてのアプリのインジケーターピルを表示する。",
|
||||
"label": "実行指標"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Pas de algehele grootte van de dock aan.",
|
||||
"label": "Grootte van de dock"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Pas de snelheid van de verberg/weergeef animatie van de dock aan.",
|
||||
"label": "Verberg/Weergeef Snelheid"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Toon indicatorpillen voor alle apps, niet alleen de actieve.",
|
||||
"label": "Lopende indicatoren"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Ajustar o tamanho geral do Dock.",
|
||||
"label": "Tamanho do Dock"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Ajuste a velocidade da animação de ocultar/mostrar da dock.",
|
||||
"label": "Velocidade de Ocultar/Mostrar"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Exibir indicadores de pílula para todos os aplicativos, não apenas para o aplicativo ativo no momento.",
|
||||
"label": "Indicadores de execução"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Настройка общего размера панели приложений.",
|
||||
"label": "Размер панели"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Настройте скорость анимации скрытия/показа панели приложений.",
|
||||
"label": "Скорость скрытия/показа"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Отображать индикаторы для всех приложений, а не только для активного.",
|
||||
"label": "Бегущие индикаторы"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Rıhtımın genel boyutunu ayarlayın.",
|
||||
"label": "Rıhtım boyutu"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Rıhtımın gizle/göster animasyonunun hızını ayarlayın.",
|
||||
"label": "Gizle/Göster Hızı"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Tüm uygulamalar için, sadece etkin olan için değil, gösterge haplarını göster.",
|
||||
"label": "Çalışan Göstergeler"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "Налаштуйте загальний розмір дока.",
|
||||
"label": "Розмір дока"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "Налаштуйте швидкість анімації приховування/відображення дока.",
|
||||
"label": "Швидкість приховування/відображення"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "Відображати індикатори-пігулки для всіх програм, а не лише для поточної активної.",
|
||||
"label": "Індикатори бігу"
|
||||
|
||||
@@ -1574,6 +1574,10 @@
|
||||
"description": "调整 Dock 的整体大小。",
|
||||
"label": "Dock 大小"
|
||||
},
|
||||
"hide-show-speed": {
|
||||
"description": "调整 Dock 隐藏/显示动画的速度。",
|
||||
"label": "隐藏/显示速度"
|
||||
},
|
||||
"inactive-indicators": {
|
||||
"description": "为所有应用显示指示器小药丸,而不仅仅是当前活跃的应用。",
|
||||
"label": "运行指标"
|
||||
|
||||
@@ -467,6 +467,7 @@ Singleton {
|
||||
property bool pinnedStatic: false
|
||||
property bool inactiveIndicators: false
|
||||
property double deadOpacity: 0.6
|
||||
property real animationSpeed: 1.0 // Speed multiplier for hide/show animations (0.1 = slowest, 2.0 = fastest)
|
||||
}
|
||||
|
||||
// network
|
||||
|
||||
@@ -63,8 +63,8 @@ Loader {
|
||||
readonly property bool exclusive: displayMode === "exclusive"
|
||||
readonly property int hideDelay: 500
|
||||
readonly property int showDelay: 100
|
||||
readonly property int hideAnimationDuration: Style.animationFast
|
||||
readonly property int showAnimationDuration: Style.animationFast
|
||||
readonly property int hideAnimationDuration: Math.max(0, Math.round(Style.animationFast / (Settings.data.dock.animationSpeed || 1.0)))
|
||||
readonly property int showAnimationDuration: Math.max(0, Math.round(Style.animationFast / (Settings.data.dock.animationSpeed || 1.0)))
|
||||
readonly property int peekHeight: 1
|
||||
readonly property int iconSize: Math.round(12 + 24 * (Settings.data.dock.size ?? 1))
|
||||
readonly property int floatingMargin: Settings.data.dock.floatingRatio * Style.marginL
|
||||
|
||||
@@ -140,6 +140,25 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
visible: Settings.data.dock.enabled && Settings.data.dock.displayMode === "auto_hide"
|
||||
spacing: Style.marginXXS
|
||||
Layout.fillWidth: true
|
||||
NLabel {
|
||||
label: I18n.tr("settings.dock.appearance.hide-show-speed.label")
|
||||
description: I18n.tr("settings.dock.appearance.hide-show-speed.description")
|
||||
}
|
||||
NValueSlider {
|
||||
Layout.fillWidth: true
|
||||
from: 0.1
|
||||
to: 2.0
|
||||
stepSize: 0.01
|
||||
value: Settings.data.dock.animationSpeed
|
||||
onMoved: value => Settings.data.dock.animationSpeed = value
|
||||
text: (Settings.data.dock.animationSpeed * 100).toFixed(0) + "%"
|
||||
}
|
||||
}
|
||||
|
||||
NToggle {
|
||||
visible: Settings.data.dock.enabled
|
||||
label: I18n.tr("settings.dock.appearance.inactive-indicators.label")
|
||||
|
||||
Reference in New Issue
Block a user