mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
QML UI: Style DC download buttons
Style the button in the DC download dialog so they follow the theme colors. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
12ac75c7dd
commit
b9a05e501b
1 changed files with 48 additions and 0 deletions
|
@ -94,7 +94,17 @@ Kirigami.Page {
|
|||
|
||||
RowLayout {
|
||||
Button {
|
||||
id: download
|
||||
background: Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
antialiasing: true
|
||||
radius: Kirigami.Units.smallSpacing * 2
|
||||
}
|
||||
text: qsTr("Download")
|
||||
contentItem: Text {
|
||||
text: download.text
|
||||
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||
}
|
||||
onClicked: {
|
||||
text = qsTr("Retry")
|
||||
if (downloadThread.deviceData.bluetoothMode) {
|
||||
|
@ -117,7 +127,16 @@ Kirigami.Page {
|
|||
}
|
||||
Button {
|
||||
id:quitbutton
|
||||
background: Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
antialiasing: true
|
||||
radius: Kirigami.Units.smallSpacing * 2
|
||||
}
|
||||
text: qsTr("Quit")
|
||||
contentItem: Text {
|
||||
text: quitbutton.text
|
||||
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||
}
|
||||
onClicked: {
|
||||
manager.appendTextToLog("exit DCDownload screen")
|
||||
stackView.pop();
|
||||
|
@ -158,7 +177,16 @@ Kirigami.Page {
|
|||
}
|
||||
Button {
|
||||
id: acceptButton
|
||||
background: Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
antialiasing: true
|
||||
radius: Kirigami.Units.smallSpacing * 2
|
||||
}
|
||||
text: qsTr("Accept")
|
||||
contentItem: Text {
|
||||
text: acceptButton.text
|
||||
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||
}
|
||||
enabled: false
|
||||
onClicked: {
|
||||
manager.appendTextToLog("Save downloaded dives that were selected")
|
||||
|
@ -174,14 +202,34 @@ Kirigami.Page {
|
|||
Layout.fillWidth: true
|
||||
}
|
||||
Button {
|
||||
id: select
|
||||
background: Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
antialiasing: true
|
||||
radius: Kirigami.Units.smallSpacing * 2
|
||||
}
|
||||
text: qsTr("Select All")
|
||||
contentItem: Text {
|
||||
text: select.text
|
||||
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||
}
|
||||
onClicked : {
|
||||
selectAll = true
|
||||
importModel.selectAll()
|
||||
}
|
||||
}
|
||||
Button {
|
||||
id: unselect
|
||||
background: Rectangle {
|
||||
color: subsurfaceTheme.darkerPrimaryColor
|
||||
antialiasing: true
|
||||
radius: Kirigami.Units.smallSpacing * 2
|
||||
}
|
||||
text: qsTr("Unselect All")
|
||||
contentItem: Text {
|
||||
text: unselect.text
|
||||
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||
}
|
||||
onClicked : {
|
||||
selectAll = false
|
||||
importModel.selectNone()
|
||||
|
|
Loading…
Reference in a new issue