Skip to content
Snippets Groups Projects
Commit e2e5a0c8 authored by Fadi Shehadeh's avatar Fadi Shehadeh
Browse files

RTL: RecordBox buttons

Adapted radius for RTL.

GitLab: #1967
Change-Id: Ic14b089f12d4a50227036b800353654a54584cc1
parent dd9ed8d5
No related branches found
No related tags found
No related merge requests found
...@@ -145,9 +145,9 @@ Popup { ...@@ -145,9 +145,9 @@ Popup {
height: 300 height: 300
Rectangle { Rectangle {
id: previewWidget
radius: 5 radius: 5
id: previewWidget
anchors.centerIn: parent anchors.centerIn: parent
height: root.isAudio ? 100 : 300 height: root.isAudio ? 100 : 300
width: 300 width: 300
...@@ -258,7 +258,6 @@ Popup { ...@@ -258,7 +258,6 @@ Popup {
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
preferredSize: btnSize preferredSize: btnSize
imageColor: JamiTheme.whiteColor imageColor: JamiTheme.whiteColor
source: JamiResources.record_round_black_24dp_svg source: JamiResources.record_round_black_24dp_svg
...@@ -295,7 +294,6 @@ Popup { ...@@ -295,7 +294,6 @@ Popup {
preferredSize: btnSize preferredSize: btnSize
source: JamiResources.record_black_24dp_svg source: JamiResources.record_black_24dp_svg
imageContainerHeight: 20 imageContainerHeight: 20
imageContainerWidth: 20 imageContainerWidth: 20
imageColor: JamiTheme.whiteColor imageColor: JamiTheme.whiteColor
...@@ -373,7 +371,12 @@ Popup { ...@@ -373,7 +371,12 @@ Popup {
background: RoundedBorderRectangle { background: RoundedBorderRectangle {
opacity: btnRestart.hovered ? 1 : 0.7 opacity: btnRestart.hovered ? 1 : 0.7
fillColor: btnRestart.hovered ? JamiTheme.recordBoxHoverColor : JamiTheme.recordBoxButtonColor fillColor: btnRestart.hovered ? JamiTheme.recordBoxHoverColor : JamiTheme.recordBoxButtonColor
radius: { radius: isRTL ? {
"tl": 0,
"tr": 5,
"br": 5,
"bl": 0
} : {
"tl": 5, "tl": 5,
"tr": 0, "tr": 0,
"br": 0, "br": 0,
...@@ -381,7 +384,6 @@ Popup { ...@@ -381,7 +384,6 @@ Popup {
} }
} }
onClicked: { onClicked: {
if (!root.isPhoto) if (!root.isPhoto)
stopRecording(); stopRecording();
...@@ -415,7 +417,6 @@ Popup { ...@@ -415,7 +417,6 @@ Popup {
} }
} }
JamiPushButton { JamiPushButton {
id: btnSend id: btnSend
...@@ -436,7 +437,12 @@ Popup { ...@@ -436,7 +437,12 @@ Popup {
background: RoundedBorderRectangle { background: RoundedBorderRectangle {
opacity: btnSend.hovered ? 1 : 0.7 opacity: btnSend.hovered ? 1 : 0.7
fillColor: JamiTheme.chatViewFooterSendButtonColor //btnSend.hovered ? JamiTheme.recordBoxHoverColor : JamiTheme.recordBoxButtonColor fillColor: JamiTheme.chatViewFooterSendButtonColor //btnSend.hovered ? JamiTheme.recordBoxHoverColor : JamiTheme.recordBoxButtonColor
radius: { radius: isRTL ? {
"tl": 5,
"tr": 0,
"br": 0,
"bl": 5
} : {
"tl": 0, "tl": 0,
"tr": 5, "tr": 5,
"br": 5, "br": 5,
...@@ -464,7 +470,6 @@ Popup { ...@@ -464,7 +470,6 @@ Popup {
repeat: true repeat: true
onTriggered: updateTimer() onTriggered: updateTimer()
} }
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment