diff --git a/Assets/Translations/de.json b/Assets/Translations/de.json index d03a9e12d..1770b7c47 100644 --- a/Assets/Translations/de.json +++ b/Assets/Translations/de.json @@ -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": { diff --git a/Assets/Translations/en.json b/Assets/Translations/en.json index d9b64ccd3..4464c6562 100644 --- a/Assets/Translations/en.json +++ b/Assets/Translations/en.json @@ -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": { diff --git a/Assets/Translations/es.json b/Assets/Translations/es.json index 3b723a672..17735056f 100644 --- a/Assets/Translations/es.json +++ b/Assets/Translations/es.json @@ -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": { diff --git a/Assets/Translations/fr.json b/Assets/Translations/fr.json index 9c01afc09..1231ff949 100644 --- a/Assets/Translations/fr.json +++ b/Assets/Translations/fr.json @@ -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": { diff --git a/Assets/Translations/hu.json b/Assets/Translations/hu.json index 88334f06f..3ff2966f8 100644 --- a/Assets/Translations/hu.json +++ b/Assets/Translations/hu.json @@ -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": { diff --git a/Assets/Translations/ja.json b/Assets/Translations/ja.json index 486adf9e6..aa39b25a8 100644 --- a/Assets/Translations/ja.json +++ b/Assets/Translations/ja.json @@ -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": { diff --git a/Assets/Translations/nl.json b/Assets/Translations/nl.json index 79710593d..1345545bb 100644 --- a/Assets/Translations/nl.json +++ b/Assets/Translations/nl.json @@ -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": { diff --git a/Assets/Translations/pl.json b/Assets/Translations/pl.json index b48977131..858d5bd17 100644 --- a/Assets/Translations/pl.json +++ b/Assets/Translations/pl.json @@ -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": { diff --git a/Assets/Translations/pt.json b/Assets/Translations/pt.json index a13ea2f56..b04376562 100644 --- a/Assets/Translations/pt.json +++ b/Assets/Translations/pt.json @@ -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": { diff --git a/Assets/Translations/ru.json b/Assets/Translations/ru.json index 6f7f6d65b..99f88b57e 100644 --- a/Assets/Translations/ru.json +++ b/Assets/Translations/ru.json @@ -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": { diff --git a/Assets/Translations/tr.json b/Assets/Translations/tr.json index 012b68acb..e24441973 100644 --- a/Assets/Translations/tr.json +++ b/Assets/Translations/tr.json @@ -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": { diff --git a/Assets/Translations/uk-UA.json b/Assets/Translations/uk-UA.json index ce4b9c668..baee2caf1 100644 --- a/Assets/Translations/uk-UA.json +++ b/Assets/Translations/uk-UA.json @@ -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": { diff --git a/Assets/Translations/zh-CN.json b/Assets/Translations/zh-CN.json index bd2329250..82e4a33fb 100644 --- a/Assets/Translations/zh-CN.json +++ b/Assets/Translations/zh-CN.json @@ -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": { diff --git a/Assets/settings-default.json b/Assets/settings-default.json index cdb6e0f69..304fdfd80 100644 --- a/Assets/settings-default.json +++ b/Assets/settings-default.json @@ -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": [] } -} +} \ No newline at end of file diff --git a/Assets/settings-widgets-default.json b/Assets/settings-widgets-default.json index ff78ba1cb..999601467 100644 --- a/Assets/settings-widgets-default.json +++ b/Assets/settings-widgets-default.json @@ -152,6 +152,7 @@ "showApplications": false, "showLabelsOnlyWhenOccupied": true, "colorizeIcons": false, + "unfocusedIconsOpacity": 1, "enableScrollWheel": true }, "Volume": { diff --git a/Commons/Migrations/Migration35.qml b/Commons/Migrations/Migration35.qml new file mode 100644 index 000000000..f8a6b56f8 --- /dev/null +++ b/Commons/Migrations/Migration35.qml @@ -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; + } +} diff --git a/Commons/Migrations/MigrationRegistry.qml b/Commons/Migrations/MigrationRegistry.qml index ad3190724..88f092fe7 100644 --- a/Commons/Migrations/MigrationRegistry.qml +++ b/Commons/Migrations/MigrationRegistry.qml @@ -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 {} } diff --git a/Commons/Settings.qml b/Commons/Settings.qml index 54c63337e..f7304e49c 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -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 + "/"