1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-10 15:38:31 -04:00

feat(clipboard): add overlay layer option (#3037)

This commit is contained in:
Huỳnh Thiện Lộc
2026-08-11 01:57:14 +07:00
committed by GitHub
parent db1ab5b7b4
commit ed4cc1da7b
5 changed files with 36 additions and 0 deletions
+1
View File
@@ -108,6 +108,7 @@ Singleton {
property bool clipboardClickToPaste: false
property bool clipboardEnterToPaste: false
property bool clipboardRememberTypeFilter: false
property bool clipboardUseOverlayLayer: false
property string clipboardTypeFilter: "all"
property var clipboardVisibleEntryActions: ["pin", "edit", "delete"]
@@ -678,6 +678,7 @@ var SPEC = {
clipboardClickToPaste: { def: false },
clipboardEnterToPaste: { def: false },
clipboardRememberTypeFilter: { def: false },
clipboardUseOverlayLayer: { def: false },
clipboardTypeFilter: { def: "all" },
clipboardVisibleEntryActions: { def: ["pin", "edit", "delete"] },
@@ -73,6 +73,7 @@ DankModal {
visible: false
keepContentLoaded: true
useOverlayLayer: SettingsData.clipboardUseOverlayLayer
modalWidth: ClipboardConstants.modalWidth
modalHeight: ClipboardConstants.modalHeight
backgroundColor: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
@@ -483,6 +483,16 @@ Item {
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 {
tab: "clipboard"
tags: ["clipboard", "actions", "buttons", "hide", "density", "copy", "paste", "pin", "edit", "delete"]
@@ -8510,6 +8510,29 @@
],
"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",
"label": "Visible Entry Actions",