-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bb6647
commit a8822e4
Showing
12 changed files
with
175 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# FramelessHelper | ||
|
||
Qt based frameless window class, full features. | ||
Qt based frameless window class, full features. Requires: Qt 5.9.6 + | ||
|
||
![](window.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import QtQuick 2.9 | ||
import QtQuick.Controls 2.2 | ||
|
||
Button { | ||
id: control | ||
|
||
width: 45 | ||
height: 26 | ||
|
||
ToolTip.visible: hovered && !down | ||
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval | ||
ToolTip.text: qsTr("Close") | ||
|
||
contentItem: Item { | ||
Image { | ||
anchors.centerIn: parent | ||
source: control.down || control.hovered ? "qrc:/res/close-button2.png" : "qrc:/res/close-button1.png" | ||
} | ||
} | ||
|
||
background: Rectangle { | ||
visible: control.down || control.hovered | ||
color: control.down ? "#8c0a15" : (control.hovered ? "#e81123" : "transparent") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import QtQuick 2.9 | ||
import QtQuick.Controls 2.2 | ||
|
||
Button { | ||
id: control | ||
|
||
width: 45 | ||
height: 26 | ||
|
||
ToolTip.visible: hovered && !down | ||
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval | ||
ToolTip.text: qsTr("Maximize") | ||
|
||
property bool isMaximized: false | ||
|
||
contentItem: Item { | ||
Image { | ||
anchors.centerIn: parent | ||
source: isMaximized ? "qrc:/res/maximize-button2.png" : "qrc:/res/maximize-button1.png" | ||
} | ||
} | ||
|
||
background: Rectangle { | ||
visible: control.down || control.hovered | ||
color: control.down ? "#80808080" : (control.hovered ? "#80c7c7c7" : "transparent") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import QtQuick 2.9 | ||
import QtQuick.Controls 2.2 | ||
|
||
Button { | ||
id: control | ||
|
||
width: 45 | ||
height: 26 | ||
|
||
ToolTip.visible: hovered && !down | ||
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval | ||
ToolTip.text: qsTr("Minimize") | ||
|
||
contentItem: Item { | ||
Image { | ||
anchors.centerIn: parent | ||
source: "qrc:/res/minimize-button1.png" | ||
} | ||
} | ||
|
||
background: Rectangle { | ||
visible: control.down || control.hovered | ||
color: control.down ? "#80808080" : (control.hovered ? "#80c7c7c7" : "transparent") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.