mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Workspace: With ShowApplications, allow to control border opacity of the workspaces.
This commit is contained in:
@@ -425,6 +425,10 @@
|
||||
"description": "Zeigt Arbeitsbereiche vom aktuell fokussierten Bildschirm an, statt vom Bildschirm, auf dem sich die Leiste befindet.",
|
||||
"label": "Fokussiertem Bildschirm folgen"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Lege die Deckkraft für Workspace-Container-Rahmen fest.",
|
||||
"label": "Rahmen-Deckkraft"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Arbeitsbereiche ohne Fenster nicht anzeigen.",
|
||||
"label": "Unbesetzte ausblenden"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Display workspaces from the currently focused screen, rather than the screen where the bar is located.",
|
||||
"label": "Follow focused screen"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Set the opacity level for workspace container borders",
|
||||
"label": "Border opacity"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Don't display workspaces without windows.",
|
||||
"label": "Hide unoccupied"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Mostrar espacios de trabajo de la pantalla actualmente enfocada, en lugar de la pantalla donde se encuentra la barra.",
|
||||
"label": "Seguir Pantalla Enfocada"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Establecer el nivel de opacidad para los bordes del contenedor del espacio de trabajo.",
|
||||
"label": "Opacidad del borde"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "No mostrar espacios de trabajo sin ventanas.",
|
||||
"label": "Ocultar desocupados"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Afficher les espaces de travail de l'écran actuellement ciblé, plutôt que de l'écran où se trouve la barre.",
|
||||
"label": "Suivre l'Écran Ciblé"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Définir le niveau d'opacité des bordures des conteneurs d'espace de travail.",
|
||||
"label": "Opacité de la bordure"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Ne pas afficher les espaces de travail sans fenêtres.",
|
||||
"label": "Masquer les inoccupés"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Munkaterületek megjelenítése az aktuálisan fókuszált képernyőről, nem arról a képernyőről, ahol a sáv található.",
|
||||
"label": "Fókuszált képernyő követése"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "A munkaterület-konténerek szegélyeinek átlátszósági szintjének beállítása",
|
||||
"label": "Szegély átlátszósága"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Ne jelenítse meg az ablak nélküli munkaterületeket.",
|
||||
"label": "Foglalatlan elrejtése"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "バーが配置されている画面ではなく、現在フォーカスされている画面のワークスペースを表示します。",
|
||||
"label": "フォーカス中の画面に追従"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "ワークスペースコンテナのボーダーの不透明度を設定します。",
|
||||
"label": "境界線の不透明度"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "ウィンドウがないワークスペースを表示しません。",
|
||||
"label": "空のワークスペースを隠す"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Werkruimten weergeven van het momenteel gefocuste scherm, in plaats van het scherm waar de balk zich bevindt.",
|
||||
"label": "Gefocust Scherm Volgen"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Stel het dekkingsniveau in voor de randen van de werkruimtecontainer.",
|
||||
"label": "Randdekking"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Werkruimten zonder vensters niet weergeven.",
|
||||
"label": "Ongebruikte verbergen"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Wyświetl obszary robocze z aktualnie aktywnego ekranu, zamiast ekranu, na którym znajduje się pasek.",
|
||||
"label": "Podążaj za skupionym ekranem"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Ustaw poziom krycia dla obramowań kontenerów obszaru roboczego.",
|
||||
"label": "Krycie obramowania"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Nie wyświetlaj obszarów roboczych bez okien.",
|
||||
"label": "Ukryj nieobsadzone"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Exibir áreas de trabalho da tela atualmente em foco, em vez da tela onde a barra está localizada.",
|
||||
"label": "Seguir Tela em Foco"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Definir o nível de opacidade para as bordas do contêiner do espaço de trabalho.",
|
||||
"label": "Opacidade da borda"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Não exibir áreas de trabalho sem janelas.",
|
||||
"label": "Ocultar desocupados"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Отображать рабочие пространства с текущего активного экрана, а не с экрана, на котором расположена панель.",
|
||||
"label": "Следовать за Активным Экраном"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Установить уровень прозрачности для границ контейнера рабочей области.",
|
||||
"label": "Прозрачность границы"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Не отображать рабочие пространства без окон.",
|
||||
"label": "Скрыть незанятые"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Çubuğun bulunduğu ekran yerine, şu anda odaklanmış ekrandaki çalışma alanlarını göster.",
|
||||
"label": "Odaklanmış Ekranı Takip Et"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Çalışma alanı kapsayıcı kenarlıklarının opaklık düzeyini ayarlayın",
|
||||
"label": "Kenarlık opaklığı"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Penceresi olmayan çalışma alanlarını gösterme.",
|
||||
"label": "Dolu olmayanları gizle"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "Відображати робочі простори з поточного активного екрана, а не з екрана, на якому розташована панель.",
|
||||
"label": "Слідувати за активним eкраном"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "Встановити рівень непрозорості для меж контейнерів робочої області.",
|
||||
"label": "Прозорість межі"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "Не відображати робочі простори без вікон.",
|
||||
"label": "Приховати незайняті"
|
||||
|
||||
@@ -425,6 +425,10 @@
|
||||
"description": "显示当前焦点屏幕的工作区,而不是任务栏所在屏幕的工作区。",
|
||||
"label": "跟随焦点屏幕"
|
||||
},
|
||||
"grouped-border-opacity": {
|
||||
"description": "设置工作区容器边框的不透明度级别",
|
||||
"label": "边框不透明度"
|
||||
},
|
||||
"hide-unoccupied": {
|
||||
"description": "不显示没有窗口的工作区。",
|
||||
"label": "隐藏未占用"
|
||||
|
||||
@@ -55,6 +55,7 @@ Item {
|
||||
readonly property bool showLabelsOnlyWhenOccupied: (widgetSettings.showLabelsOnlyWhenOccupied !== undefined) ? widgetSettings.showLabelsOnlyWhenOccupied : widgetMetadata.showLabelsOnlyWhenOccupied
|
||||
readonly property bool colorizeIcons: (widgetSettings.colorizeIcons !== undefined) ? widgetSettings.colorizeIcons : widgetMetadata.colorizeIcons
|
||||
readonly property real unfocusedIconsOpacity: (widgetSettings.unfocusedIconsOpacity !== undefined) ? widgetSettings.unfocusedIconsOpacity : widgetMetadata.unfocusedIconsOpacity
|
||||
readonly property real groupedBorderOpacity: (widgetSettings.groupedBorderOpacity !== undefined) ? widgetSettings.groupedBorderOpacity : widgetMetadata.groupedBorderOpacity
|
||||
readonly property bool enableScrollWheel: (widgetSettings.enableScrollWheel !== undefined) ? widgetSettings.enableScrollWheel : widgetMetadata.enableScrollWheel
|
||||
|
||||
readonly property int itemSize: Math.round(Style.capsuleHeight * 0.8)
|
||||
@@ -782,7 +783,7 @@ Item {
|
||||
height: (hasWindows ? groupedIconsFlow.implicitHeight : root.itemSize) + (root.isVertical ? Style.marginL : Style.marginXS)
|
||||
color: Style.capsuleColor
|
||||
radius: Style.radiusS
|
||||
border.color: Settings.data.bar.showOutline ? Style.capsuleBorderColor : (workspaceModel.isFocused ? Color.mPrimary : Color.mOutline)
|
||||
border.color: Settings.data.bar.showOutline ? Style.capsuleBorderColor : Qt.alpha((workspaceModel.isFocused ? Color.mPrimary : Color.mOutline), root.groupedBorderOpacity)
|
||||
border.width: Style.borderS
|
||||
|
||||
MouseArea {
|
||||
|
||||
@@ -22,6 +22,7 @@ ColumnLayout {
|
||||
property bool valueShowLabelsOnlyWhenOccupied: widgetData.showLabelsOnlyWhenOccupied !== undefined ? widgetData.showLabelsOnlyWhenOccupied : widgetMetadata.showLabelsOnlyWhenOccupied
|
||||
property bool valueColorizeIcons: widgetData.colorizeIcons !== undefined ? widgetData.colorizeIcons : widgetMetadata.colorizeIcons
|
||||
property real valueUnfocusedIconsOpacity: widgetData.unfocusedIconsOpacity !== undefined ? widgetData.unfocusedIconsOpacity : widgetMetadata.unfocusedIconsOpacity
|
||||
property real valueGroupedBorderOpacity: widgetData.groupedBorderOpacity !== undefined ? widgetData.groupedBorderOpacity : widgetMetadata.groupedBorderOpacity
|
||||
property bool valueEnableScrollWheel: widgetData.enableScrollWheel !== undefined ? widgetData.enableScrollWheel : widgetMetadata.enableScrollWheel
|
||||
|
||||
function saveSettings() {
|
||||
@@ -34,6 +35,7 @@ ColumnLayout {
|
||||
settings.showLabelsOnlyWhenOccupied = valueShowLabelsOnlyWhenOccupied;
|
||||
settings.colorizeIcons = valueColorizeIcons;
|
||||
settings.unfocusedIconsOpacity = valueUnfocusedIconsOpacity;
|
||||
settings.groupedBorderOpacity = valueGroupedBorderOpacity;
|
||||
settings.enableScrollWheel = valueEnableScrollWheel;
|
||||
return settings;
|
||||
}
|
||||
@@ -103,6 +105,10 @@ ColumnLayout {
|
||||
onToggled: checked => valueEnableScrollWheel = checked
|
||||
}
|
||||
|
||||
NDivider {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
NToggle {
|
||||
label: I18n.tr("bar.widget-settings.workspace.show-applications.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.show-applications.description")
|
||||
@@ -117,22 +123,28 @@ ColumnLayout {
|
||||
onToggled: checked => valueColorizeIcons = checked
|
||||
visible: valueShowApplications
|
||||
}
|
||||
RowLayout {
|
||||
spacing: Style.marginL
|
||||
Layout.fillWidth: true
|
||||
NLabel {
|
||||
label: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.description")
|
||||
}
|
||||
NValueSlider {
|
||||
Layout.fillWidth: true
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
value: valueUnfocusedIconsOpacity
|
||||
visible: valueShowApplications
|
||||
onMoved: value => valueUnfocusedIconsOpacity = value
|
||||
text: Math.floor(valueUnfocusedIconsOpacity * 100) + "%"
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
label: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.unfocused-icons-opacity.description")
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
value: valueUnfocusedIconsOpacity
|
||||
onMoved: value => valueUnfocusedIconsOpacity = value
|
||||
text: Math.floor(valueUnfocusedIconsOpacity * 100) + "%"
|
||||
visible: valueShowApplications
|
||||
}
|
||||
|
||||
NValueSlider {
|
||||
label: I18n.tr("bar.widget-settings.workspace.grouped-border-opacity.label")
|
||||
description: I18n.tr("bar.widget-settings.workspace.grouped-border-opacity.description")
|
||||
from: 0
|
||||
to: 1
|
||||
stepSize: 0.01
|
||||
value: valueGroupedBorderOpacity
|
||||
onMoved: value => valueGroupedBorderOpacity = value
|
||||
text: Math.floor(valueGroupedBorderOpacity * 100) + "%"
|
||||
visible: valueShowApplications
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,6 +223,7 @@ Singleton {
|
||||
"showLabelsOnlyWhenOccupied": true,
|
||||
"colorizeIcons": false,
|
||||
"unfocusedIconsOpacity": 1.0,
|
||||
"groupedBorderOpacity": 1.0,
|
||||
"enableScrollWheel": true
|
||||
},
|
||||
"Volume": {
|
||||
|
||||
Reference in New Issue
Block a user