aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authormoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-19 14:22:56 +0000
committermoneromooo.monero <moneromooo.monero@users.noreply.github.com>2016-11-29 13:19:55 +0000
commit4e20ad819b15a450b706372a93b3227a3d3efe11 (patch)
tree47ca9ecbe8aebf563448e219d083d722b82e7874 /components
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
downloadmonzero-gui-4e20ad819b15a450b706372a93b3227a3d3efe11.tar.gz
monzero-gui-4e20ad819b15a450b706372a93b3227a3d3efe11.tar.xz
monzero-gui-4e20ad819b15a450b706372a93b3227a3d3efe11.zip
Remove useless black bar buttons
Except the yellow layout change one, which is actually useful The size change buttons don't work. Also tweak the WM hints to make sure there's a close button displayed on all platforms.
Diffstat (limited to 'components')
-rw-r--r--components/TitleBar.qml113
1 files changed, 3 insertions, 110 deletions
diff --git a/components/TitleBar.qml b/components/TitleBar.qml
index c5c9658a..4279c792 100644
--- a/components/TitleBar.qml
+++ b/components/TitleBar.qml
@@ -31,29 +31,12 @@ import QtQuick.Window 2.0
Rectangle {
id: titleBar
- height: 30
color: "#000000"
- y: -height
property int mouseX: 0
- property string title
property bool containsMouse: false
- property alias maximizeButtonVisible: maximizeButton.visible
property alias basicButtonVisible: goToBasicVersionButton.visible
signal goToBasicVersion(bool yes)
- Text {
- anchors.centerIn: parent
- font.family: "Arial"
- font.pixelSize: 15
- font.letterSpacing: -1
- color: "#FFFFFF"
- text: titleBar.title
- }
-
- Behavior on y {
- NumberAnimation { duration: 100; easing.type: Easing.InQuad }
- }
-
Rectangle {
id: goToBasicVersionButton
property bool containsMouse: titleBar.mouseX >= x && titleBar.mouseX <= x + width
@@ -61,8 +44,10 @@ Rectangle {
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
- width: height
+ anchors.right: parent.right
color: containsMouse || checked ? "#FFE00A" : "#000000"
+ width: parent.width
+ height: parent.height
Image {
anchors.centerIn: parent
@@ -79,96 +64,4 @@ Rectangle {
}
}
}
-
- Row {
- id: row
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
-
- Rectangle {
- property bool containsMouse: titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width && titleBar.containsMouse
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- width: height
- color: containsMouse ? "#6B0072" : "#000000"
-
- Image {
- anchors.centerIn: parent
- source: "../images/helpIcon.png"
- }
-
- MouseArea {
- id: whatIsArea
- anchors.fill: parent
- onClicked: {
-
- }
- }
- }
-
- Rectangle {
- property bool containsMouse: titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width && titleBar.containsMouse
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- width: height
- color: containsMouse ? "#3665B3" : "#000000"
-
- Image {
- anchors.centerIn: parent
- source: "../images/minimizeIcon.png"
- }
-
- MouseArea {
- id: minimizeArea
- anchors.fill: parent
- onClicked: {
- appWindow.visibility = Window.Minimized
- }
- }
- }
-
- Rectangle {
- id: maximizeButton
- property bool containsMouse: titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width && titleBar.containsMouse
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- width: height
- color: containsMouse ? "#FF6C3C" : "#000000"
-
- Image {
- anchors.centerIn: parent
- source: appWindow.visibility === Window.FullScreen ? "../images/backToWindowIcon.png" :
- "../images/maximizeIcon.png"
-
- }
-
- MouseArea {
- id: maximizeArea
- anchors.fill: parent
- onClicked: {
- appWindow.visibility = appWindow.visibility !== Window.FullScreen ? Window.FullScreen :
- Window.Windowed
- }
- }
- }
-
- Rectangle {
- property bool containsMouse: titleBar.mouseX >= x + row.x && titleBar.mouseX <= x + row.x + width && titleBar.containsMouse
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- width: height
- color: containsMouse ? "#E04343" : "#000000"
-
- Image {
- anchors.centerIn: parent
- source: "../images/closeIcon.png"
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: appWindow.close();
- }
- }
- }
}