Skip to content

Commit 7fd9b5d

Browse files
committed
rename exclusionZoneOffset to enableExclusionZoneInset
1 parent 56d91dd commit 7fd9b5d

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

Assets/Translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@
811811
"appearance-density-label": "Bar density",
812812
"appearance-desc": "Customize the bar's appearance and position.",
813813
"appearance-display-mode-description": "Choose when the bar is visible.",
814-
"appearance-exclusion-zone-offset-description": "Reduce the exclusion zone by 1px so flush windows bleed perfectly under the bar edge.",
815-
"appearance-exclusion-zone-offset-label": "Bleed exclusion zone",
814+
"appearance-enable-Exclusion-Zone-Inset-description": "Reduce the exclusion zone by 1px so flush windows bleed perfectly under the bar edge.",
815+
"appearance-enable-Exclusion-Zone-Inset-label": "Bleed exclusion zone",
816816
"appearance-floating-description": "Display the bar as a floating 'pill'.",
817817
"appearance-floating-label": "Floating bar",
818818
"appearance-font-scale-description": "Adjust the font size scale for text displayed in the bar.",

Assets/settings-default.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"backgroundOpacity": 0.93,
1616
"useSeparateOpacity": false,
1717
"floating": false,
18-
"exclusionZoneOffset": true,
18+
"enableExclusionZoneInset": true,
1919
"marginVertical": 4,
2020
"marginHorizontal": 4,
2121
"frameThickness": 8,

Assets/settings-search-index.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@
252252
"subTabLabel": "common.appearance"
253253
},
254254
{
255-
"labelKey": "panels.bar.appearance-exclusion-zone-offset-label",
256-
"descriptionKey": "panels.bar.appearance-exclusion-zone-offset-description",
255+
"labelKey": "panels.bar.appearance-enable-Exclusion-Zone-Inset-label",
256+
"descriptionKey": "panels.bar.appearance-enable-Exclusion-Zone-Inset-description",
257257
"widget": "NToggle",
258258
"tab": 4,
259259
"tabLabel": "panels.bar.title",

Commons/Settings.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Singleton {
184184
property int widgetSpacing: 6
185185
property int contentPadding: 2
186186
property real fontScale: 1.0
187-
property bool exclusionZoneOffset: true
187+
property bool enableExclusionZoneInset: true
188188

189189
// Bar background opacity settings
190190
property real backgroundOpacity: 0.93

Modules/MainScreen/BarExclusionZone.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PanelWindow {
2424
readonly property real barMarginH: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginHorizontal) : 0
2525
readonly property real barMarginV: (barFloating && edge === Settings.getBarPositionForScreen(screen?.name)) ? Math.ceil(Settings.data.bar.marginVertical) : 0
2626
// Allow users to enable a 1-physical-pixel inset for the exclusion zone so window borders can bleed under the bar
27-
readonly property real bleedOffset: Settings.data.bar.exclusionZoneOffset ? 1.0 : 0.0
27+
readonly property real bleedOffset: Settings.data.bar.enableExclusionZoneInset ? 1.0 : 0.0
2828
readonly property real bleedInset: bleedOffset / (CompositorService.getDisplayScale(screen?.name) || 1.0)
2929

3030
// Invisible - just reserves space

Modules/Panels/Settings/Tabs/Bar/AppearanceSubTab.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,11 @@ ColumnLayout {
228228

229229
NToggle {
230230
Layout.fillWidth: true
231-
label: I18n.tr("panels.bar.appearance-exclusion-zone-offset-label")
232-
description: I18n.tr("panels.bar.appearance-exclusion-zone-offset-description")
233-
checked: Settings.data.bar.exclusionZoneOffset
234-
defaultValue: Settings.getDefaultValue("bar.exclusionZoneOffset")
235-
onToggled: checked => Settings.data.bar.exclusionZoneOffset = checked
231+
label: I18n.tr("panels.bar.appearance-enable-Exclusion-Zone-Inset-label")
232+
description: I18n.tr("panels.bar.appearance-enable-Exclusion-Zone-Inset-description")
233+
checked: Settings.data.bar.enableExclusionZoneInset
234+
defaultValue: Settings.getDefaultValue("bar.enableExclusionZoneInset")
235+
onToggled: checked => Settings.data.bar.enableExclusionZoneInset = checked
236236
}
237237

238238
NToggle {

0 commit comments

Comments
 (0)