[calamares] Give QML-progress-panel an about-button
This commit is contained in:
parent
ce74d2fdfc
commit
1b2d12b9a1
@ -62,51 +62,63 @@ 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;
|
visible: true;
|
||||||
|
|
||||||
MouseArea {
|
Rectangle {
|
||||||
id: mouseAreaAbout
|
id: aboutArea
|
||||||
anchors.fill: parent;
|
height: 35
|
||||||
cursorShape: Qt.PointingHandCursor
|
width: parent.width / 2;
|
||||||
hoverEnabled: true
|
anchors.left: parent.left
|
||||||
Text {
|
color: Branding.styleString( Branding.SidebarTextHighlight );
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
visible: true;
|
||||||
x: parent.x + 4;
|
|
||||||
text: qsTr("About Calamares")
|
|
||||||
color: Branding.styleString( mouseAreaAbout.containsMouse ? Branding.SidebarTextSelect : Branding.SidebarBackground );
|
|
||||||
font.pointSize : 9
|
|
||||||
}
|
|
||||||
|
|
||||||
onClicked: debug.about()
|
MouseArea {
|
||||||
|
id: mouseAreaAbout
|
||||||
|
anchors.fill: parent;
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
hoverEnabled: true
|
||||||
|
Text {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
|
x: parent.x + 4;
|
||||||
|
text: qsTr("About")
|
||||||
|
color: Branding.styleString( Branding.SidebarTextSelect );
|
||||||
|
font.pointSize : 9
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: debug.about()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
Rectangle {
|
|
||||||
id: debugArea
|
|
||||||
Layout.fillWidth: true;
|
|
||||||
height: 35
|
|
||||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignBottom
|
|
||||||
color: Branding.styleString( mouseAreaDebug.containsMouse ? Branding.SidebarTextHighlight : Branding.SidebarBackground);
|
|
||||||
visible: debug.enabled
|
|
||||||
|
|
||||||
MouseArea {
|
Rectangle {
|
||||||
id: mouseAreaDebug
|
id: debugArea
|
||||||
anchors.fill: parent;
|
height: 35
|
||||||
cursorShape: Qt.PointingHandCursor
|
width: parent.width / 2;
|
||||||
hoverEnabled: true
|
anchors.right: parent.right
|
||||||
Text {
|
color: Branding.styleString( Branding.SidebarTextHighlight );
|
||||||
anchors.verticalCenter: parent.verticalCenter;
|
visible: debug.enabled
|
||||||
x: parent.x + 4;
|
|
||||||
text: qsTr("Show debug information")
|
MouseArea {
|
||||||
color: Branding.styleString( mouseAreaDebug.containsMouse ? Branding.SidebarTextSelect : Branding.SidebarBackground );
|
id: mouseAreaDebug
|
||||||
font.pointSize : 9
|
anchors.fill: parent;
|
||||||
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
hoverEnabled: true
|
||||||
|
Text {
|
||||||
|
anchors.verticalCenter: parent.verticalCenter;
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter;
|
||||||
|
x: parent.x + 4;
|
||||||
|
text: qsTr("Debug")
|
||||||
|
color: Branding.styleString( Branding.SidebarTextSelect );
|
||||||
|
font.pointSize : 9
|
||||||
|
}
|
||||||
|
|
||||||
|
onClicked: debug.toggle()
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: debug.toggle()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user