Skip to content

Commit

Permalink
Make the accept audio recording button valid state much more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 29, 2023
1 parent 98e12b8 commit 0f3663b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/qml/imports/QFieldControls/+Qt5/QFieldAudioRecorder.qml
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,13 @@ Popup {

QfToolButton {
id: acceptButton
enabled: audioRecorder.hasRecordedClip
opacity: enabled ? 1 : 0.2
Layout.alignment: Qt.AlignVCenter
round: true
iconSource: Theme.getThemeIcon( 'ic_check_black_48dp' )
iconColor: Theme.mainTextColor
bgcolor: "transparent"
enabled: audioRecorder.hasRecordedClip
opacity: enabled ? 1 : 0.25
iconColor: enabled ? "white" : Theme.mainTextColor
bgcolor: enabled ? Theme.mainColor : "transparent"
round: true

onClicked: {
var path = recorder.actualLocation.toString()
Expand Down
10 changes: 5 additions & 5 deletions src/qml/imports/QFieldControls/+Qt6/QFieldAudioRecorder.qml
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ Popup {

QfToolButton {
id: acceptButton
enabled: audioRecorder.hasRecordedClip
opacity: enabled ? 1 : 0.2
Layout.alignment: Qt.AlignVCenter
round: true
iconSource: Theme.getThemeIcon( 'ic_check_black_48dp' )
iconColor: Theme.mainTextColor
bgcolor: "transparent"
enabled: audioRecorder.hasRecordedClip
opacity: enabled ? 1 : 0.25
iconColor: enabled ? "white" : Theme.mainTextColor
bgcolor: enabled ? Theme.mainColor : "transparent"
round: true

onClicked: {
var path = recorder.actualLocation.toString()
Expand Down

0 comments on commit 0f3663b

Please sign in to comment.