[calamares] Give QML-progress-panel an about-button

This commit is contained in:
Adriaan de Groot 2022-05-29 16:12:10 +02:00
parent ce74d2fdfc
commit 1b2d12b9a1

View File

@ -62,11 +62,19 @@ Rectangle {
} }
Rectangle { Rectangle {
id: aboutArea id: metaArea
Layout.fillWidth: true; Layout.fillWidth: true;
height: 35 height: 35
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
color: Branding.styleString( mouseAreaAbout.containsMouse ? Branding.SidebarTextHighlight : Branding.SidebarBackground); color: Branding.styleString( Branding.SidebarTextHighlight );
visible: true;
Rectangle {
id: aboutArea
height: 35
width: parent.width / 2;
anchors.left: parent.left
color: Branding.styleString( Branding.SidebarTextHighlight );
visible: true; visible: true;
MouseArea { MouseArea {
@ -76,21 +84,23 @@ Rectangle {
hoverEnabled: true hoverEnabled: true
Text { Text {
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
anchors.horizontalCenter: parent.horizontalCenter;
x: parent.x + 4; x: parent.x + 4;
text: qsTr("About Calamares") text: qsTr("About")
color: Branding.styleString( mouseAreaAbout.containsMouse ? Branding.SidebarTextSelect : Branding.SidebarBackground ); color: Branding.styleString( Branding.SidebarTextSelect );
font.pointSize : 9 font.pointSize : 9
} }
onClicked: debug.about() onClicked: debug.about()
} }
} }
Rectangle { Rectangle {
id: debugArea id: debugArea
Layout.fillWidth: true;
height: 35 height: 35
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom width: parent.width / 2;
color: Branding.styleString( mouseAreaDebug.containsMouse ? Branding.SidebarTextHighlight : Branding.SidebarBackground); anchors.right: parent.right
color: Branding.styleString( Branding.SidebarTextHighlight );
visible: debug.enabled visible: debug.enabled
MouseArea { MouseArea {
@ -100,9 +110,10 @@ Rectangle {
hoverEnabled: true hoverEnabled: true
Text { Text {
anchors.verticalCenter: parent.verticalCenter; anchors.verticalCenter: parent.verticalCenter;
anchors.horizontalCenter: parent.horizontalCenter;
x: parent.x + 4; x: parent.x + 4;
text: qsTr("Show debug information") text: qsTr("Debug")
color: Branding.styleString( mouseAreaDebug.containsMouse ? Branding.SidebarTextSelect : Branding.SidebarBackground ); color: Branding.styleString( Branding.SidebarTextSelect );
font.pointSize : 9 font.pointSize : 9
} }
@ -110,4 +121,5 @@ Rectangle {
} }
} }
} }
}
} }