mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
rename exclusionZoneOffset to enableExclusionZoneInset
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
"backgroundOpacity": 0.93,
|
||||
"useSeparateOpacity": false,
|
||||
"floating": false,
|
||||
"exclusionZoneOffset": true,
|
||||
"enableExclusionZoneInset": true,
|
||||
"marginVertical": 4,
|
||||
"marginHorizontal": 4,
|
||||
"frameThickness": 8,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user