Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-qt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-qt
Commits
6cbda2ce
Commit
6cbda2ce
authored
1 year ago
by
Capucine Berthet
Committed by
Sébastien Blin
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
LinkDeviceDialog: new design
GitLab:
#1417
Change-Id: I8039355efcac28bf6ccc39dea1c785ef7f86b9f4
parent
2656769a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/settingsview/components/LinkDeviceDialog.qml
+102
-119
102 additions, 119 deletions
src/app/settingsview/components/LinkDeviceDialog.qml
with
102 additions
and
119 deletions
src/app/settingsview/components/LinkDeviceDialog.qml
+
102
−
119
View file @
6cbda2ce
...
...
@@ -87,7 +87,6 @@ BaseModalDialog {
function
onExportOnRingEnded
(
status
,
pin
)
{
stackedWidget
.
setExportPage
(
status
,
pin
);
countdownTimer
.
start
();
}
}
...
...
@@ -161,15 +160,16 @@ BaseModalDialog {
id
:
btnConfirm
Layout.alignment
:
Qt
.
AlignCenter
height
:
40
width
:
40
preferredSize
:
60
height
:
36
width
:
36
hoverEnabled
:
false
enabled
:
false
imageColor
:
JamiTheme
.
tintedBlue
source
:
JamiResources
.
check_box_24dp_svg
imageColor
:
JamiTheme
.
secondaryBackgroundColor
hoveredColor
:
JamiTheme
.
buttonTintedBlueHovered
source
:
JamiResources
.
check_black_24dp_svg
normalColor
:
JamiTheme
.
tintedBlue
onClicked
:
stackedWidget
.
setGeneratingPage
()
...
...
@@ -187,7 +187,7 @@ BaseModalDialog {
onHeightChanged
:
{
stackedWidget
.
height
=
spinnerLayout
.
implicitHeight
}
onWidthChanged
:
stackedWidget
.
width
=
exportingLayout
.
implicitWidth
ColumnLayout
{
id
:
spinnerLayout
...
...
@@ -234,6 +234,7 @@ BaseModalDialog {
onHeightChanged
:
{
stackedWidget
.
height
=
exportingLayout
.
implicitHeight
}
onWidthChanged
:
stackedWidget
.
width
=
exportingLayout
.
implicitWidth
ColumnLayout
{
id
:
exportingLayout
...
...
@@ -243,139 +244,120 @@ BaseModalDialog {
Label
{
id
:
instructionLabel
Layout.maximumWidth
:
JamiTheme
.
preferredDialogWidth
Layout.alignment
:
Qt
.
Align
Center
Layout.maximumWidth
:
Math
.
min
(
root
.
maximumPopupWidth
,
root
.
width
)
-
2
*
root
.
popupMargins
Layout.alignment
:
Qt
.
Align
Left
color
:
JamiTheme
.
textColor
padding
:
8
wrapMode
:
Text
.
Wrap
text
:
JamiStrings
.
linkingInstructions
font.pointSize
:
JamiTheme
.
textFontSize
font.kerning
:
true
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
RowLayout
{
spacing
:
10
Layout.maximumWidth
:
Math
.
min
(
root
.
maximumPopupWidth
,
root
.
width
)
-
2
*
root
.
popupMargins
Rectangle
{
Layout.alignment
:
Qt
.
AlignCenter
border.width
:
3
border.color
:
JamiTheme
.
textColor
radius
:
JamiTheme
.
primaryRadius
color
:
darkTheme
?
JamiTheme
.
textColor
:
JamiTheme
.
secondaryBackgroundColor
width
:
170
height
:
170
radius
:
5
color
:
JamiTheme
.
backgroundRectangleColor
width
:
100
height
:
100
Rectangle
{
width
:
qrImage
.
width
+
4
height
:
qrImage
.
height
+
4
anchors.centerIn
:
parent
radius
:
5
color
:
JamiTheme
.
darkTheme
?
JamiTheme
.
whiteColor
:
JamiTheme
.
jamiButtonBorderColor
Image
{
id
:
qrImage
anchors.fill
:
parent
anchors.margins
:
10
anchors.centerIn
:
parent
mipmap
:
false
smooth
:
false
source
:
"
image://qrImage/raw_
"
+
exportedPIN
.
text
sourceSize.width
:
15
0
sourceSize.height
:
15
0
sourceSize.width
:
8
0
sourceSize.height
:
8
0
}
}
}
Rectangle
{
id
:
pinRectangle
radius
:
1
5
color
:
darkTheme
?
JamiTheme
.
tintedBlue
:
JamiTheme
.
pinBackground
Color
width
:
exportedPIN
.
implicitWidth
+
4
*
JamiTheme
.
preferredMarginSize
height
:
exportedPIN
.
implicitHeight
+
2
*
JamiTheme
.
preferredMarginSize
radius
:
5
color
:
JamiTheme
.
backgroundRectangle
Color
Layout.fillWidth
:
true
height
:
100
Layout.minimumWidth
:
exportedPIN
.
width
+
20
Layout.alignment
:
Qt
.
AlignCenter
Layout.margins
:
JamiTheme
.
preferredMarginSize
MaterialLineEdit
{
id
:
exportedPIN
padding
:
0
padding
:
1
0
anchors.centerIn
:
parent
text
:
JamiStrings
.
pin
wrapMode
:
Text
.
NoWrap
backgroundColor
:
darkTheme
?
JamiTheme
.
tintedBlue
:
JamiTheme
.
pinBackground
Color
backgroundColor
:
JamiTheme
.
backgroundRectangle
Color
color
:
darkTheme
?
JamiTheme
.
text
Color
:
JamiTheme
.
t
intedBlue
color
:
darkTheme
?
JamiTheme
.
editLine
Color
:
JamiTheme
.
darkT
intedBlue
selectByMouse
:
true
readOnly
:
true
font.pointSize
:
JamiTheme
.
headerFon
tSize
font.pointSize
:
JamiTheme
.
tinyCreditsTex
tSize
font.kerning
:
true
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
}
}
RowLayout
{
Layout.alignment
:
Qt
.
AlignCenter
Layout.bottomMargin
:
JamiTheme
.
preferredMarginSize
spacing
:
0
Label
{
id
:
validityLabel
Layout.alignment
:
Qt
.
AlignRight
color
:
JamiTheme
.
textColor
text
:
JamiStrings
.
pinValidity
font.pointSize
:
JamiTheme
.
textFontSize
font.kerning
:
true
}
Label
{
id
:
countdownLabel
color
:
JamiTheme
.
textColor
Layout.alignment
:
Qt
.
AlignLeft
font.pointSize
:
JamiTheme
.
textFontSize
font.kerning
:
true
text
:
"
10:00
"
}
Rectangle
{
radius
:
5
color
:
JamiTheme
.
infoRectangleColor
Layout.fillWidth
:
true
Layout.preferredHeight
:
infoLabels
.
height
+
38
Timer
{
id
:
countdownTimer
interval
:
1000
repeat
:
true
RowLayout
{
id
:
infoLayout
property
int
remainingTime
:
600
anchors.centerIn
:
parent
anchors.fill
:
parent
anchors.margins
:
14
spacing
:
10
onTriggered
:
{
remainingTime
--
ResponsiveImage
{
Layout.fillWidth
:
true
var
minutes
=
Math
.
floor
(
remainingTime
/
60
)
var
seconds
=
remainingTime
%
60
countdownLabel
.
text
=
(
minutes
<
10
?
"
0
"
:
""
)
+
minutes
+
"
:
"
+
(
seconds
<
10
?
"
0
"
:
""
)
+
seconds
source
:
JamiResources
.
outline_info_24dp_svg
fillMode
:
Image
.
PreserveAspectFit
if
(
remainingTime
<=
0
)
{
validityLabel
.
visible
=
false
countdownLabel
.
text
=
JamiStrings
.
pinExpired
countdownLabel
.
color
=
JamiTheme
.
redColor
countdownTimer
.
stop
()
}
}
color
:
darkTheme
?
JamiTheme
.
editLineColor
:
JamiTheme
.
darkTintedBlue
Layout.fillHeight
:
true
}
}
ColumnLayout
{
id
:
infoLabels
Layout.fillHeight
:
true
Layout.fillWidth
:
true
Label
{
id
:
otherDeviceLabel
Layout.alignment
:
Qt
.
AlignCenter
Layout.alignment
:
Qt
.
AlignLeft
color
:
JamiTheme
.
textColor
text
:
JamiStrings
.
onAnotherDevice
font.pointSize
:
JamiTheme
.
smallFontSize
font.kerning
:
true
font.bold
:
true
...
...
@@ -384,18 +366,19 @@ BaseModalDialog {
Label
{
id
:
otherInstructionLabel
Layout.maximumWidth
:
JamiTheme
.
preferredDialogWidth
Layout.bottomMargin
:
JamiTheme
.
preferredMarginSize
Layout.alignment
:
Qt
.
AlignCenter
wrapMode
:
Text
.
Wrap
horizontalAlignment
:
Text
.
AlignHCenter
verticalAlignment
:
Text
.
AlignVCenter
Layout.fillWidth
:
true
Layout.alignment
:
Qt
.
AlignLeft
wrapMode
:
Text
.
Wrap
color
:
JamiTheme
.
textColor
text
:
JamiStrings
.
onAnotherDeviceInstruction
font.pointSize
:
JamiTheme
.
smallFontSize
font.kerning
:
true
}
}
}
}
// Displays error messages
Label
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment