Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
debef9a9
Commit
debef9a9
authored
Oct 20, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(CaterpillarAnimation): add style file
parent
3fdaa51c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
29 deletions
+51
-29
resources.qrc
tests/resources.qrc
+1
-0
CaterpillarAnimation.qml
tests/ui/modules/Common/Animations/CaterpillarAnimation.qml
+14
-12
CaterpillarAnimationStyle.qml
...es/Common/Styles/Animations/CaterpillarAnimationStyle.qml
+17
-0
qmldir
tests/ui/modules/Common/Styles/qmldir
+19
-17
No files found.
tests/resources.qrc
View file @
debef9a9
...
...
@@ -55,6 +55,7 @@
<file>
ui/modules/Common/Popup/PopupShadow.qml
</file>
<file>
ui/modules/Common/qmldir
</file>
<file>
ui/modules/Common/SearchBox.qml
</file>
<file>
ui/modules/Common/Styles/Animations/CaterpillarAnimationStyle.qml
</file>
<file>
ui/modules/Common/Styles/CollapseStyle.qml
</file>
<file>
ui/modules/Common/Styles/DialogStyle.qml
</file>
<file>
ui/modules/Common/Styles/DroppableTextAreaStyle.qml
</file>
...
...
tests/ui/modules/Common/Animations/CaterpillarAnimation.qml
View file @
debef9a9
import
QtQuick
2.7
import
Common
.
Styles
1.0
Row
{
id
:
container
property
int
duration
:
200
property
int
nSpheres
:
3
property
color
sphereColor
:
'
#8F8F8F
'
property
int
sphereSize
:
10
property
int
sphereSpaceSize
:
10
property
color
sphereColor
:
CaterpillarAnimationStyle
.
sphere
.
color
property
int
animationDuration
:
CaterpillarAnimationStyle
.
animation
.
duration
property
int
nSpheres
:
CaterpillarAnimationStyle
.
nSpheres
property
int
sphereSize
:
CaterpillarAnimationStyle
.
sphere
.
size
property
int
animationSpace
:
CaterpillarAnimationStyle
.
animation
.
space
spacing
:
6
...
...
@@ -41,7 +43,7 @@ Row {
return
}
if
(
y
===
(
sphereSpaceSiz
e
/
2
)
&&
previousY
===
0
)
{
if
(
y
===
(
animationSpac
e
/
2
)
&&
previousY
===
0
)
{
repeater
.
itemAt
(
index
+
1
).
startAnimation
()
}
...
...
@@ -56,19 +58,19 @@ Row {
}
YAnimator
on
y
{
duration
:
container
.
d
uration
duration
:
container
.
animationD
uration
from
:
0
id
:
animator
running
:
false
to
:
sphereSpaceSiz
e
/
2
to
:
animationSpac
e
/
2
onRunningChanged
:
{
if
(
running
)
{
return
}
var
mid
=
sphereSpaceSiz
e
/
2
if
(
from
===
sphereSpaceSiz
e
&&
to
===
mid
)
{
var
mid
=
animationSpac
e
/
2
if
(
from
===
animationSpac
e
&&
to
===
mid
)
{
from
=
mid
to
=
0
}
else
if
(
from
===
mid
&&
to
===
0
)
{
...
...
@@ -80,9 +82,9 @@ Row {
}
}
else
if
(
from
===
0
&&
to
===
mid
)
{
from
=
mid
to
=
sphereSpaceSiz
e
to
=
animationSpac
e
}
else
{
from
=
sphereSpaceSiz
e
from
=
animationSpac
e
to
=
mid
}
...
...
tests/ui/modules/Common/Styles/Animations/CaterpillarAnimationStyle.qml
0 → 100644
View file @
debef9a9
pragma
Singleton
import
QtQuick
2.7
QtObject
{
property
int
nSpheres
:
3
property
QtObject
animation
:
QtObject
{
property
int
duration
:
200
property
int
space
:
10
}
property
QtObject
sphere
:
QtObject
{
property
color
color
:
'
#8F8F8F
'
property
int
size
:
10
}
}
tests/ui/modules/Common/Styles/qmldir
View file @
debef9a9
...
...
@@ -3,6 +3,8 @@
module Common.Styles
# Components styles.
singleton CaterpillarAnimationStyle 1.0 Animations/CaterpillarAnimationStyle.qml
singleton CollapseStyle 1.0 CollapseStyle.qml
singleton DialogStyle 1.0 DialogStyle.qml
singleton DroppableTextAreaStyle 1.0 DroppableTextAreaStyle.qml
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment