rename exclusionZoneOffset to enableExclusionZoneInset

This commit is contained in:
SpeakingPNG
2026-03-04 17:28:54 +01:00
parent 56d91dd9a5
commit 7fd9b5d7de
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -811,8 +811,8 @@
"appearance-density-label": "Bar density",
"appearance-desc": "Customize the bar's appearance and position.",
"appearance-display-mode-description": "Choose when the bar is visible.",
"appearance-exclusion-zone-offset-description": "Reduce the exclusion zone by 1px so flush windows bleed perfectly under the bar edge.",
"appearance-exclusion-zone-offset-label": "Bleed exclusion zone",
"appearance-enable-Exclusion-Zone-Inset-description": "Reduce the exclusion zone by 1px so flush windows bleed perfectly under the bar edge.",
"appearance-enable-Exclusion-Zone-Inset-label": "Bleed exclusion zone",
"appearance-floating-description": "Display the bar as a floating 'pill'.",
"appearance-floating-label": "Floating bar",
"appearance-font-scale-description": "Adjust the font size scale for text displayed in the bar.",
+1 -1
View File
@@ -15,7 +15,7 @@
"backgroundOpacity": 0.93,
"useSeparateOpacity": false,
"floating": false,
"exclusionZoneOffset": true,
"enableExclusionZoneInset": true,
"marginVertical": 4,
"marginHorizontal": 4,
"frameThickness": 8,
+2 -2
View File
@@ -252,8 +252,8 @@
"subTabLabel": "common.appearance"
},
{
"labelKey": "panels.bar.appearance-exclusion-zone-offset-label",
"descriptionKey": "panels.bar.appearance-exclusion-zone-offset-description",
"labelKey": "panels.bar.appearance-enable-Exclusion-Zone-Inset-label",
"descriptionKey": "panels.bar.appearance-enable-Exclusion-Zone-Inset-description",
"widget": "NToggle",
"tab": 4,
"tabLabel": "panels.bar.title",
+1 -1
View File
@@ -184,7 +184,7 @@ Singleton {
property int widgetSpacing: 6
property int contentPadding: 2
property real fontScale: 1.0
property bool exclusionZoneOffset: true
property bool enableExclusionZoneInset: true
// Bar background opacity settings
property real backgroundOpacity: 0.93
+1 -1
View File
@@ -24,7 +24,7 @@ PanelWindow {
readonly property real barMarginH: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginHorizontal) : 0
readonly property real barMarginV: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginVertical) : 0
// Allow users to enable a 1-physical-pixel inset for the exclusion zone so window borders can bleed under the bar
readonly property real bleedOffset: Settings.data.bar.exclusionZoneOffset ? 1.0 : 0.0
readonly property real bleedOffset: Settings.data.bar.enableExclusionZoneInset ? 1.0 : 0.0
readonly property real bleedInset: bleedOffset / (CompositorService.getDisplayScale(screen?.name) || 1.0)
// Invisible - just reserves space
@@ -228,11 +228,11 @@ ColumnLayout {
NToggle {
Layout.fillWidth: true
label: I18n.tr("panels.bar.appearance-exclusion-zone-offset-label")
description: I18n.tr("panels.bar.appearance-exclusion-zone-offset-description")
checked: Settings.data.bar.exclusionZoneOffset
defaultValue: Settings.getDefaultValue("bar.exclusionZoneOffset")
onToggled: checked => Settings.data.bar.exclusionZoneOffset = checked
label: I18n.tr("panels.bar.appearance-enable-Exclusion-Zone-Inset-label")
description: I18n.tr("panels.bar.appearance-enable-Exclusion-Zone-Inset-description")
checked: Settings.data.bar.enableExclusionZoneInset
defaultValue: Settings.getDefaultValue("bar.enableExclusionZoneInset")
onToggled: checked => Settings.data.bar.enableExclusionZoneInset = checked
}
NToggle {