WIP
This commit is contained in:
@@ -6,19 +6,22 @@ import QtQuick
|
|||||||
import QtQuick.Controls.Basic
|
import QtQuick.Controls.Basic
|
||||||
|
|
||||||
import clide.module 1.0
|
import clide.module 1.0
|
||||||
|
import Logger 1.0
|
||||||
|
|
||||||
ApplicationWindow {
|
ApplicationWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
color: RustColors.gutter
|
color: RustColors.gutter
|
||||||
// Create the window with no frame and keep it on top.
|
// Create the window with no frame and keep it on top.
|
||||||
flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint
|
flags: Qt.Tool | Qt.FramelessWindowHint
|
||||||
height: 350
|
height: 350
|
||||||
width: 450
|
width: 450
|
||||||
|
visible: root.active
|
||||||
|
|
||||||
// Hide the window when it loses focus.
|
// Hide the window when it loses focus.
|
||||||
onActiveChanged: {
|
onActiveChanged: {
|
||||||
if (!active) {
|
Logger.debug("Setting active: " + root.active)
|
||||||
|
if (!root.active) {
|
||||||
root.visible = false;
|
root.visible = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user