aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-08 23:58:49 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-08 23:58:49 +0200
commit35d1e294579e7adffd3beb4a053b3a9a16b8eee5 (patch)
tree6616ba9004c27842b33cfaea7f910b98a2cd106e /components
parent72bc417cca35a5acc3fab02f6131a3807108049f (diff)
parent4e20ad819b15a450b706372a93b3227a3d3efe11 (diff)
downloadmonzero-gui-35d1e294579e7adffd3beb4a053b3a9a16b8eee5.tar.gz
monzero-gui-35d1e294579e7adffd3beb4a053b3a9a16b8eee5.tar.xz
monzero-gui-35d1e294579e7adffd3beb4a053b3a9a16b8eee5.zip
Merge pull request #225
4e20ad8 Remove useless black bar buttons (moneromooo.monero)
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();
- }
- }
- }
}