mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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 {
|
RowLayout {
|
||||||
Button {
|
Button {
|
||||||
|
id: download
|
||||||
|
background: Rectangle {
|
||||||
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
|
antialiasing: true
|
||||||
|
radius: Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
text: qsTr("Download")
|
text: qsTr("Download")
|
||||||
|
contentItem: Text {
|
||||||
|
text: download.text
|
||||||
|
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||||
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
text = qsTr("Retry")
|
text = qsTr("Retry")
|
||||||
if (downloadThread.deviceData.bluetoothMode) {
|
if (downloadThread.deviceData.bluetoothMode) {
|
||||||
|
@ -117,7 +127,16 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id:quitbutton
|
id:quitbutton
|
||||||
|
background: Rectangle {
|
||||||
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
|
antialiasing: true
|
||||||
|
radius: Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
text: qsTr("Quit")
|
text: qsTr("Quit")
|
||||||
|
contentItem: Text {
|
||||||
|
text: quitbutton.text
|
||||||
|
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||||
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
manager.appendTextToLog("exit DCDownload screen")
|
manager.appendTextToLog("exit DCDownload screen")
|
||||||
stackView.pop();
|
stackView.pop();
|
||||||
|
@ -158,7 +177,16 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
id: acceptButton
|
id: acceptButton
|
||||||
|
background: Rectangle {
|
||||||
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
|
antialiasing: true
|
||||||
|
radius: Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
text: qsTr("Accept")
|
text: qsTr("Accept")
|
||||||
|
contentItem: Text {
|
||||||
|
text: acceptButton.text
|
||||||
|
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||||
|
}
|
||||||
enabled: false
|
enabled: false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
manager.appendTextToLog("Save downloaded dives that were selected")
|
manager.appendTextToLog("Save downloaded dives that were selected")
|
||||||
|
@ -174,14 +202,34 @@ Kirigami.Page {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
|
id: select
|
||||||
|
background: Rectangle {
|
||||||
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
|
antialiasing: true
|
||||||
|
radius: Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
text: qsTr("Select All")
|
text: qsTr("Select All")
|
||||||
|
contentItem: Text {
|
||||||
|
text: select.text
|
||||||
|
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||||
|
}
|
||||||
onClicked : {
|
onClicked : {
|
||||||
selectAll = true
|
selectAll = true
|
||||||
importModel.selectAll()
|
importModel.selectAll()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Button {
|
Button {
|
||||||
|
id: unselect
|
||||||
|
background: Rectangle {
|
||||||
|
color: subsurfaceTheme.darkerPrimaryColor
|
||||||
|
antialiasing: true
|
||||||
|
radius: Kirigami.Units.smallSpacing * 2
|
||||||
|
}
|
||||||
text: qsTr("Unselect All")
|
text: qsTr("Unselect All")
|
||||||
|
contentItem: Text {
|
||||||
|
text: unselect.text
|
||||||
|
color: subsurfaceTheme.darkerPrimaryTextColor
|
||||||
|
}
|
||||||
onClicked : {
|
onClicked : {
|
||||||
selectAll = false
|
selectAll = false
|
||||||
importModel.selectNone()
|
importModel.selectNone()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue