adding better footer information and styling
This commit is contained in:
parent
7c2eeb5aa4
commit
1dc08d212c
2 changed files with 40 additions and 16 deletions
|
@ -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,17 +61,39 @@ 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
|
||||||
|
Layout.topMargin: 0
|
||||||
|
|
||||||
|
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
|
||||||
|
color: Kirigami.Theme.alternateBackgroundColor
|
||||||
|
|
||||||
|
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{}
|
background: Item{}
|
||||||
readOnly: true
|
readOnly: true
|
||||||
HoverHandler {
|
HoverHandler {
|
||||||
|
@ -79,9 +102,10 @@ Kirigami.ApplicationWindow {
|
||||||
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.IBeamCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
}
|
}
|
||||||
|
/* Item { */
|
||||||
|
/* Layout.fillWidth: true */
|
||||||
|
/* } */
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rightFooterItems
|
id: rightFooterItems
|
||||||
spacing: 10
|
spacing: 10
|
||||||
|
|
|
@ -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" */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue