Bar: Separate opacity settings migration

This commit is contained in:
Lemmy
2025-12-28 15:05:33 -05:00
parent b57ddc001c
commit 5eb5c4cf50
18 changed files with 171 additions and 51 deletions
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Arbeitsbereichsbezeichnungen nur anzeigen, wenn sie Fenster enthalten.",
"label": "Beschriftungen nur anzeigen, wenn belegt"
},
"unfocused-icons-opacity": {
"description": "Transparenzgrad für nicht fokussierte App-Symbole festlegen",
"label": "Deckkraft unscharfer Symbole"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Lege die Hintergrundtransparenz speziell für die Leiste fest.",
"label": "Balken-Hintergrundtransparenz"
},
"capsule-opacity": {
"description": "Deckkraft der Widget-Hintergründe festlegen, wenn Kapsel angezeigt wird.",
"label": "Kapsel-Deckkraft"
@@ -1077,9 +1085,9 @@
"description": "Zeigt eine sichtbare Umrandung um jedes Widget an.",
"label": "Widget-Umrisse anzeigen"
},
"transparent": {
"description": "Dies verhindert, dass die Panels an der Leiste angeheftet werden können.",
"label": "Transparenter Hintergrund"
"use-separate-opacity": {
"description": "Ermöglicht die Verwendung eines separaten Deckkraftwerts für den Balkenhintergrund.",
"label": "Separate Balken-Deckkraft"
}
},
"monitors": {
+8 -8
View File
@@ -433,10 +433,6 @@
"description": "Choose how workspace labels are displayed.",
"label": "Label mode"
},
"unfocused-icons-opacity": {
"description": "Set the opacity level for unfocused app icons",
"label": "Unfocused icons opacity"
},
"show-applications": {
"description": "Display application icons inside each workspace.",
"label": "Show applications"
@@ -444,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Only show workspace labels when they contain windows.",
"label": "Show labels only when occupied"
},
"unfocused-icons-opacity": {
"description": "Set the opacity level for unfocused app icons",
"label": "Unfocused icons opacity"
}
}
}
@@ -1043,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Set the background opacity specifically for the bar.",
"label": "Bar background opacity"
},
"capsule-opacity": {
"description": "Set the opacity level for widget backgrounds when capsule is shown.",
"label": "Capsule opacity"
@@ -1084,10 +1088,6 @@
"use-separate-opacity": {
"description": "Enable to use a separate opacity value for the bar background.",
"label": "Use separate bar opacity"
},
"background-opacity": {
"description": "Set the background opacity specifically for the bar.",
"label": "Bar background opacity"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Mostrar solo las etiquetas del espacio de trabajo cuando contengan ventanas.",
"label": "Mostrar etiquetas solo cuando esté ocupado."
},
"unfocused-icons-opacity": {
"description": "Establecer el nivel de opacidad para los iconos de aplicaciones no enfocadas.",
"label": "Opacidad de iconos desenfocados"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Establece la opacidad del fondo específicamente para la barra.",
"label": "Opacidad del fondo de la barra"
},
"capsule-opacity": {
"description": "Establecer el nivel de opacidad para los fondos de los widgets cuando se muestra la cápsula.",
"label": "Opacidad de la cápsula"
@@ -1077,9 +1085,9 @@
"description": "Muestra un borde visible alrededor de cada widget.",
"label": "Mostrar contornos de widgets"
},
"transparent": {
"description": "Esto evitará que los paneles se adjunten a la barra.",
"label": "Fondo transparente"
"use-separate-opacity": {
"description": "Permitir usar un valor de opacidad separado para el fondo de la barra.",
"label": "Usar opacidad de barra separada"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Afficher uniquement les étiquettes d'espace de travail lorsqu'elles contiennent des fenêtres.",
"label": "Afficher les étiquettes uniquement lorsque le champ est occupé."
},
"unfocused-icons-opacity": {
"description": "Définir le niveau d'opacité des icônes d'applications non focalisées.",
"label": "Opacité des icônes non ciblées"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Définir l'opacité de l'arrière-plan spécifiquement pour la barre.",
"label": "Opacité de l'arrière-plan de la barre"
},
"capsule-opacity": {
"description": "Définir le niveau d'opacité des arrière-plans des widgets quand la capsule est affichée.",
"label": "Opacité de la capsule"
@@ -1077,9 +1085,9 @@
"description": "Affiche une bordure visible autour de chaque widget.",
"label": "Afficher les contours des widgets"
},
"transparent": {
"description": "Cela empêchera les panneaux de se fixer à la barre.",
"label": "Fond transparent"
"use-separate-opacity": {
"description": "Activer l'utilisation d'une valeur d'opacité distincte pour l'arrière-plan de la barre.",
"label": "Utiliser l'opacité des barres séparément"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Csak akkor jelenítse meg a munkaterület címkéket, ha azok tartalmaznak ablakokat.",
"label": "Címkék megjelenítése csak foglalt állapotban"
},
"unfocused-icons-opacity": {
"description": "Állítsa be a nem fókuszált alkalmazásikonok átlátszóságának szintjét.",
"label": "Fókuszálatlan ikonok átlátszósága"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Állítsa be a sáv háttér átlátszóságát.",
"label": "Sáv háttér átlátszósága"
},
"capsule-opacity": {
"description": "Beállítja a widget hátterének átlátszósági szintjét, amikor a kapszula megjelenik.",
"label": "Kapszula átlátszósága"
@@ -1077,9 +1085,9 @@
"description": "Látható szegély megjelenítése minden widget körül.",
"label": "Widget körvonalak megjelenítése"
},
"transparent": {
"description": "Ez megakadályozza, hogy a panelek rögzüljenek a sávhoz",
"label": "Átlátszó háttér"
"use-separate-opacity": {
"description": "Lehetővé teszi egy külön átlátszatlansági érték használatát a sáv hátteréhez.",
"label": "Külön oszlop átlátszóság használata"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "ウィンドウが開いているワークスペースにのみラベルを表示します。",
"label": "ウィンドウがある時のみラベルを表示"
},
"unfocused-icons-opacity": {
"description": "フォーカスされていないアプリのアイコンの不透明度を設定します。",
"label": "フォーカスされていないアイコンの不透明度"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "バーの背景の不透明度を特に設定します。",
"label": "バーの背景の不透明度"
},
"capsule-opacity": {
"description": "カプセル表示時のウィジェット背景の不透明度を設定します。",
"label": "カプセルの不透明度"
@@ -1077,9 +1085,9 @@
"description": "すべてのウィジェットの周囲に枠線を表示します。",
"label": "ウィジェットの枠線を表示"
},
"transparent": {
"description": "これを有効にすると、パネルはバーに吸着されなくなります。",
"label": "背景の透明化"
"use-separate-opacity": {
"description": "バーの背景に別の不透明度の値を使用できるようにする。",
"label": "バーの不透明度を個別に設定"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Toon alleen werkruimtelabels wanneer ze vensters bevatten.",
"label": "Toon labels alleen wanneer bezet."
},
"unfocused-icons-opacity": {
"description": "Stel het dekkingsniveau in voor app-pictogrammen die niet in focus zijn.",
"label": "Ondoorzichtige, niet-focusseerbare pictogrammen"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Stel de achtergronddoorzichtigheid specifiek in voor de balk.",
"label": "Balk achtergronddoorzichtigheid"
},
"capsule-opacity": {
"description": "Stel het doorzichtigheidsniveau in voor widget-achtergronden wanneer capsule wordt getoond.",
"label": "Capsule-doorzichtigheid"
@@ -1077,9 +1085,9 @@
"description": "Toont een zichtbare rand rondom elke widget.",
"label": "Toon widget-omtrekken"
},
"transparent": {
"description": "Dit voorkomt dat de panelen aan de balk worden bevestigd.",
"label": "Transparante achtergrond"
"use-separate-opacity": {
"description": "Maak het mogelijk om een aparte dekkingswaarde te gebruiken voor de achtergrond van de balk.",
"label": "Gebruik afzonderlijke balkdekking"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Pokazuj etykiety obszarów roboczych tylko wtedy, gdy zawierają okna.",
"label": "Pokaż etykiety tylko gdy obsadzone"
},
"unfocused-icons-opacity": {
"description": "Ustaw poziom przezroczystości dla ikon nieaktywnych aplikacji.",
"label": "Krycie ikon bez ostrości"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Ustaw przezroczystość tła konkretnie dla paska.",
"label": "Krycie tła paska"
},
"capsule-opacity": {
"description": "Ustaw poziom przezroczystości tła widżetów, gdy kapsuła jest widoczna.",
"label": "Przezroczystość kapsuły"
@@ -1077,9 +1085,9 @@
"description": "Wyświetla widoczne obramowanie wokół każdego widżetu.",
"label": "Pokaż obramowanie widżetów"
},
"transparent": {
"description": "To zapobiegnie przypięciu się paneli do paska.",
"label": "Przezroczyste tło"
"use-separate-opacity": {
"description": "Umożliwia użycie oddzielnej wartości krycia dla tła paska.",
"label": "Użyj osobnej przezroczystości słupków."
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Mostrar rótulos de área de trabalho apenas quando contiverem janelas.",
"label": "Mostrar rótulos apenas quando ocupado."
},
"unfocused-icons-opacity": {
"description": "Definir o nível de opacidade para ícones de aplicativos não focados.",
"label": "Opacidade dos ícones desfocados"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Defina a opacidade do fundo especificamente para a barra.",
"label": "Opacidade do fundo da barra"
},
"capsule-opacity": {
"description": "Define o nível de opacidade para fundos dos widgets quando a cápsula é mostrada.",
"label": "Opacidade da cápsula"
@@ -1077,9 +1085,9 @@
"description": "Exibe uma borda visível ao redor de cada widget.",
"label": "Mostrar contornos do widget"
},
"transparent": {
"description": "Isto impedirá que os painéis se fixem à barra.",
"label": "Fundo transparente"
"use-separate-opacity": {
"description": "Permitir usar um valor de opacidade separado para o fundo da barra.",
"label": "Usar opacidade separada para as barras."
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Показывать метки рабочих пространств только тогда, когда они содержат окна.",
"label": "Показывать метки только при наличии содержимого"
},
"unfocused-icons-opacity": {
"description": "Установить уровень прозрачности для неактивных значков приложений.",
"label": "Неактивные значки, прозрачность"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Установите прозрачность фона специально для панели.",
"label": "Прозрачность фона бара"
},
"capsule-opacity": {
"description": "Установить уровень непрозрачности для фона виджетов, когда капсула отображается.",
"label": "Непрозрачность капсулы"
@@ -1077,9 +1085,9 @@
"description": "Отображает видимую границу вокруг каждого виджета.",
"label": "Показать контуры виджетов"
},
"transparent": {
"description": "Это предотвратит прикрепление панелей к панели.",
"label": "Прозрачный фон"
"use-separate-opacity": {
"description": "Включить использование отдельного значения прозрачности для фона полосы.",
"label": "Использовать раздельную прозрачность столбцов"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Yalnızca pencere içeren çalışma alanı etiketlerini göster.",
"label": "Yalnızca dolu olduğunda etiketleri göster"
},
"unfocused-icons-opacity": {
"description": "Odaklanılmamış uygulama simgelerinin opaklık düzeyini ayarlayın",
"label": "Odak dışı simgelerin opaklığı"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Çubuğun arka plan opaklığını özel olarak ayarlayın.",
"label": "Çubuk arka plan opaklığı"
},
"capsule-opacity": {
"description": "Kapsül gösterildiğinde araç takımı arka planlarının saydamlık seviyesini ayarla.",
"label": "Kapsül saydamlığı"
@@ -1077,9 +1085,9 @@
"description": "Her widget'ın etrafında görünür bir kenarlık görüntüler.",
"label": "Araç kutusu ana hatlarını göster"
},
"transparent": {
"description": "Bu, panellerin çubuğa takılmasını engelleyecektir.",
"label": "Şeffaf arka plan"
"use-separate-opacity": {
"description": "Çubuk arka planı için ayrı bir opaklık değeri kullanmayı etkinleştir.",
"label": "Ayrı çubuk opaklığı kullan"
}
},
"monitors": {
+11 -3
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "Показувати мітки робочих просторів лише тоді, коли вони містять вікна.",
"label": "Показувати мітки лише коли поле заповнене"
},
"unfocused-icons-opacity": {
"description": "Встановити рівень непрозорості для неактивних іконок застосунків.",
"label": "Неактивні іконки, непрозорість"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "Встановити прозорість фону спеціально для панелі.",
"label": "Прозорість фону панелі"
},
"capsule-opacity": {
"description": "Встановити рівень непрозорості для фону віджетів, коли показано капсулу.",
"label": "Непрозорість капсули"
@@ -1077,9 +1085,9 @@
"description": "Відображає видиму рамку навколо кожного віджета.",
"label": "Показувати контури віджетів"
},
"transparent": {
"description": "Це завадить панелям прикріплюватися до панелі.",
"label": "Прозорий фон"
"use-separate-opacity": {
"description": "Увімкнути використання окремого значення прозорості для фону панелі.",
"label": "Використовувати окрему прозорість стовпців"
}
},
"monitors": {
+8 -4
View File
@@ -440,6 +440,10 @@
"show-labels-only-when-occupied": {
"description": "仅在工作区包含窗口时显示工作区标签。",
"label": "仅在被占用时显示标签"
},
"unfocused-icons-opacity": {
"description": "设置未聚焦应用图标的不透明度级别",
"label": "未聚焦图标不透明度"
}
}
}
@@ -1039,6 +1043,10 @@
},
"bar": {
"appearance": {
"background-opacity": {
"description": "为任务栏设置背景不透明度。",
"label": "任务栏背景不透明度"
},
"capsule-opacity": {
"description": "设置显示胶囊时小部件背景的不透明度。",
"label": "胶囊不透明度"
@@ -1080,10 +1088,6 @@
"use-separate-opacity": {
"description": "启用后为任务栏背景使用单独的不透明度值。",
"label": "使用单独的任务栏不透明度"
},
"background-opacity": {
"description": "为任务栏设置背景不透明度。",
"label": "任务栏背景不透明度"
}
},
"monitors": {
+9 -4
View File
@@ -4,11 +4,11 @@
"position": "top",
"monitors": [],
"density": "default",
"backgroundOpacity": 0.93,
"useSeparateOpacity": false,
"showOutline": false,
"showCapsule": true,
"capsuleOpacity": 1,
"backgroundOpacity": 0.93,
"useSeparateOpacity": false,
"floating": false,
"marginVertical": 0.25,
"marginHorizontal": 0.25,
@@ -355,7 +355,12 @@
"autoHideMs": 2000,
"overlayLayer": true,
"backgroundOpacity": 1,
"enabledTypes": [0, 1, 2, 4],
"enabledTypes": [
0,
1,
2,
4
],
"monitors": []
},
"audio": {
@@ -432,4 +437,4 @@
"gridSnap": false,
"monitorWidgets": []
}
}
}
+1
View File
@@ -152,6 +152,7 @@
"showApplications": false,
"showLabelsOnlyWhenOccupied": true,
"colorizeIcons": false,
"unfocusedIconsOpacity": 1,
"enableScrollWheel": true
},
"Volume": {
+20
View File
@@ -0,0 +1,20 @@
import QtQuick
QtObject {
id: root
// Migrate bar.transparent to bar.backgroundOpacity + bar.useSeparateOpacity
function migrate(adapter, logger, rawJson) {
logger.i("Settings", "Migrating settings to v34");
if (rawJson?.bar?.transparent !== undefined) {
if (rawJson.bar.transparent === true) {
adapter.bar.backgroundOpacity = 0;
adapter.bar.useSeparateOpacity = true;
logger.i("Settings", "Migrated bar.transparent=true to backgroundOpacity=0, useSeparateOpacity=true");
}
}
return true;
}
}
+3 -1
View File
@@ -12,7 +12,8 @@ QtObject {
29: migration29Component,
32: migration32Component,
33: migration33Component,
34: migration34Component
34: migration34Component,
35: migration35Component
})
// Migration components
@@ -22,4 +23,5 @@ QtObject {
property Component migration32Component: Migration32 {}
property Component migration33Component: Migration33 {}
property Component migration34Component: Migration34 {}
property Component migration35Component: Migration35 {}
}
+1 -1
View File
@@ -24,7 +24,7 @@ Singleton {
- Default cache directory: ~/.cache/noctalia
*/
readonly property alias data: adapter // Used to access via Settings.data.xxx.yyy
readonly property int settingsVersion: 34
readonly property int settingsVersion: 35
readonly property bool isDebug: Quickshell.env("NOCTALIA_DEBUG") === "1"
readonly property string shellName: "noctalia"
readonly property string configDir: Quickshell.env("NOCTALIA_CONFIG_DIR") || (Quickshell.env("XDG_CONFIG_HOME") || Quickshell.env("HOME") + "/.config") + "/" + shellName + "/"