mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-11 16:08:29 -04:00
feat(clipboard): add overlay layer option (#3037)
This commit is contained in:
@@ -108,6 +108,7 @@ Singleton {
|
|||||||
property bool clipboardClickToPaste: false
|
property bool clipboardClickToPaste: false
|
||||||
property bool clipboardEnterToPaste: false
|
property bool clipboardEnterToPaste: false
|
||||||
property bool clipboardRememberTypeFilter: false
|
property bool clipboardRememberTypeFilter: false
|
||||||
|
property bool clipboardUseOverlayLayer: false
|
||||||
property string clipboardTypeFilter: "all"
|
property string clipboardTypeFilter: "all"
|
||||||
property var clipboardVisibleEntryActions: ["pin", "edit", "delete"]
|
property var clipboardVisibleEntryActions: ["pin", "edit", "delete"]
|
||||||
|
|
||||||
|
|||||||
@@ -678,6 +678,7 @@ var SPEC = {
|
|||||||
clipboardClickToPaste: { def: false },
|
clipboardClickToPaste: { def: false },
|
||||||
clipboardEnterToPaste: { def: false },
|
clipboardEnterToPaste: { def: false },
|
||||||
clipboardRememberTypeFilter: { def: false },
|
clipboardRememberTypeFilter: { def: false },
|
||||||
|
clipboardUseOverlayLayer: { def: false },
|
||||||
clipboardTypeFilter: { def: "all" },
|
clipboardTypeFilter: { def: "all" },
|
||||||
clipboardVisibleEntryActions: { def: ["pin", "edit", "delete"] },
|
clipboardVisibleEntryActions: { def: ["pin", "edit", "delete"] },
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ DankModal {
|
|||||||
|
|
||||||
visible: false
|
visible: false
|
||||||
keepContentLoaded: true
|
keepContentLoaded: true
|
||||||
|
useOverlayLayer: SettingsData.clipboardUseOverlayLayer
|
||||||
modalWidth: ClipboardConstants.modalWidth
|
modalWidth: ClipboardConstants.modalWidth
|
||||||
modalHeight: ClipboardConstants.modalHeight
|
modalHeight: ClipboardConstants.modalHeight
|
||||||
backgroundColor: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
|
backgroundColor: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
|
||||||
|
|||||||
@@ -483,6 +483,16 @@ Item {
|
|||||||
onToggled: checked => SettingsData.set("clipboardRememberTypeFilter", checked)
|
onToggled: checked => SettingsData.set("clipboardRememberTypeFilter", checked)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SettingsToggleRow {
|
||||||
|
tab: "clipboard"
|
||||||
|
tags: ["clipboard", "fullscreen", "overlay", "layer", "behavior"]
|
||||||
|
settingKey: "clipboardUseOverlayLayer"
|
||||||
|
text: I18n.tr("Use Overlay Layer", "clipboard layer toggle: use Wayland overlay layer")
|
||||||
|
description: I18n.tr("Place clipboard history on the Wayland overlay layer")
|
||||||
|
checked: SettingsData.clipboardUseOverlayLayer
|
||||||
|
onToggled: checked => SettingsData.set("clipboardUseOverlayLayer", checked)
|
||||||
|
}
|
||||||
|
|
||||||
SettingsButtonGroupRow {
|
SettingsButtonGroupRow {
|
||||||
tab: "clipboard"
|
tab: "clipboard"
|
||||||
tags: ["clipboard", "actions", "buttons", "hide", "density", "copy", "paste", "pin", "edit", "delete"]
|
tags: ["clipboard", "actions", "buttons", "hide", "density", "copy", "paste", "pin", "edit", "delete"]
|
||||||
|
|||||||
@@ -8510,6 +8510,29 @@
|
|||||||
],
|
],
|
||||||
"description": "Keep the clipboard type filter when reopening history"
|
"description": "Keep the clipboard type filter when reopening history"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"section": "clipboardUseOverlayLayer",
|
||||||
|
"label": "Use Overlay Layer",
|
||||||
|
"tabIndex": 23,
|
||||||
|
"category": "System",
|
||||||
|
"keywords": [
|
||||||
|
"behavior",
|
||||||
|
"clipboard",
|
||||||
|
"cliphist",
|
||||||
|
"copy",
|
||||||
|
"fullscreen",
|
||||||
|
"history",
|
||||||
|
"layer",
|
||||||
|
"linux",
|
||||||
|
"os",
|
||||||
|
"overlay",
|
||||||
|
"paste",
|
||||||
|
"place",
|
||||||
|
"system",
|
||||||
|
"wayland"
|
||||||
|
],
|
||||||
|
"description": "Place clipboard history on the Wayland overlay layer"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"section": "clipboardVisibleEntryActions",
|
"section": "clipboardVisibleEntryActions",
|
||||||
"label": "Visible Entry Actions",
|
"label": "Visible Entry Actions",
|
||||||
|
|||||||
Reference in New Issue
Block a user