diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-08 15:16:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-09 03:06:04 +0900 |
commit | b9a05e501be9870e01cf27ef23bdea08696d9ad1 (patch) | |
tree | ff88df2e572251c9cb078dfbb866052df60c3f24 /mobile-widgets/qml/DownloadFromDiveComputer.qml | |
parent | 12ac75c7dd2d94075c1b63b4113db3dcf08df935 (diff) | |
download | subsurface-b9a05e501be9870e01cf27ef23bdea08696d9ad1.tar.gz |
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>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 827fcfa1d..574cc95af 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -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() |