Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugin-display/qml/ScreenIndicator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Loader {
screen: root.screen
color: "#2ca7f8"

flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint
flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.X11BypassWindowManagerHint
DS.DLayerShellWindow.layer: DS.DLayerShellWindow.LayerOverlay
DS.DLayerShellWindow.exclusionZone: -1
Component.onCompleted: show()
Expand Down
12 changes: 9 additions & 3 deletions src/plugin-display/qml/ScreenRecognize.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ Window {
property string name: "screen"
signal escPressed

flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint
D.DWindow.enabled: true
color: D.DTK.palette.window
flags: Qt.WindowStaysOnTopHint | Qt.FramelessWindowHint | Qt.Tool

// 使用 DLayerShellWindow 定位窗口:X轴居中,Y轴锚定底部偏上1/4处
DS.DLayerShellWindow.anchors: DS.DLayerShellWindow.AnchorBottom
DS.DLayerShellWindow.layer: DS.DLayerShellWindow.LayerOverlay
Expand All @@ -22,6 +21,13 @@ Window {
width: control.implicitWidth
height: control.implicitHeight
onClosing: destroy(10)

Rectangle {
anchors.fill: parent
radius: D.DTK.platformTheme.windowRadius(8)
color: D.DTK.palette.window
}

Text {
id: control
leftPadding: 22
Expand Down
Loading