adding better footer information and styling

This commit is contained in:
Chris Cochrun 2023-04-19 09:42:13 -05:00
parent 7c2eeb5aa4
commit 1dc08d212c
2 changed files with 40 additions and 16 deletions

View file

@ -23,7 +23,8 @@ Kirigami.ApplicationWindow {
property bool editMode: false property bool editMode: false
property string soundEffect property string soundEffect
property string footerLeftString property string footerSecondText
property string footerFirstText
signal edit() signal edit()
@ -60,28 +61,51 @@ Kirigami.ApplicationWindow {
} }
footer: RowLayout { footer: RowLayout {
height: Kirigami.Units.gridUnit * 1.3
Controls.Label { Controls.Label {
id: presentingLabel id: presentingLabel
Layout.alignment: Qt.AlignLeft Layout.alignment: Qt.AlignLeft
Layout.leftMargin: Kirigami.Units.smallSpacing * 2 Layout.leftMargin: Kirigami.Units.smallSpacing * 2
text: activeServiceItem text: activeServiceItem
} }
Controls.TextArea { Rectangle {
id: filePathLabel Layout.fillWidth: true
Layout.alignment: Qt.AlignLeft Layout.fillHeight: true
/* height: Kirigami.Units.gridUnit */
Layout.leftMargin: Kirigami.Units.smallSpacing * 2 Layout.leftMargin: Kirigami.Units.smallSpacing * 2
text: footerLeftString Layout.rightMargin: Kirigami.Units.smallSpacing * 2
background: Item{} Layout.topMargin: 0
readOnly: true
HoverHandler { Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
id: hoverHandler color: Kirigami.Theme.alternateBackgroundColor
enabled: false
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor Controls.Label {
id: footerPrefixLabel
anchors.left: parent.left
anchors.top: parent.top
anchors.leftMargin: Kirigami.Units.smallSpacing * 2
text: footerFirstText
}
Controls.TextField {
id: footerFilePathLabel
anchors.verticalCenter: footerPrefixLabel.verticalCenter
anchors.left: footerPrefixLabel.right
anchors.right: parent.right
anchors.rightMargin: Kirigami.Units.smallSpacing * 2
leftInset: 0
text: footerSecondText
background: Item{}
readOnly: true
HoverHandler {
id: hoverHandler
enabled: false
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
}
} }
} }
Item { /* Item { */
Layout.fillWidth: true /* Layout.fillWidth: true */
} /* } */
RowLayout { RowLayout {
id: rightFooterItems id: rightFooterItems
spacing: 10 spacing: 10

View file

@ -252,7 +252,7 @@ Controls.Page {
currentWindow = presentation; currentWindow = presentation;
editMode = false; editMode = false;
refocusPresentation(); refocusPresentation();
footerLeftString = presenting ? "Presenting..." : "Presentation Preview" /* footerLeftString = presenting ? "Presenting..." : "Presentation Preview" */
} }
} else { } else {
videoEditor.visible = false; videoEditor.visible = false;
@ -264,7 +264,7 @@ Controls.Page {
currentWindow = presentation; currentWindow = presentation;
editMode = false; editMode = false;
refocusPresentation(); refocusPresentation();
footerLeftString = presenting ? "Presenting..." : "Presentation Preview" /* footerLeftString = presenting ? "Presenting..." : "Presentation Preview" */
} }
} }