Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
glacier-home
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
NemoMobile
glacier-home
Commits
7255535a
Commit
7255535a
authored
Jan 16, 2017
by
Sergey Chupligin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AppSwitcher] fix app window rotation on appswitcher
parent
5f92e64f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
+15
-8
AppSwitcher.qml
src/qml/AppSwitcher.qml
+4
-3
CloseButton.qml
src/qml/CloseButton.qml
+3
-1
SwitcherItem.qml
src/qml/SwitcherItem.qml
+6
-3
src.pro
src/src.pro
+2
-1
No files found.
src/qml/AppSwitcher.qml
View file @
7255535a
...
@@ -50,7 +50,7 @@ Item {
...
@@ -50,7 +50,7 @@ Item {
Flickable
{
Flickable
{
id
:
flickable
id
:
flickable
contentHeight
:
gridview
.
height
contentHeight
:
gridview
.
height
width
:
parent
.
width
-
10
// see comment re right anchor below
width
:
closeMode
?
parent
.
width
-
20
:
parent
.
width
// see comment re right anchor below
MouseArea
{
MouseArea
{
height
:
flickable
.
contentHeight
>
flickable
.
height
?
flickable
.
contentHeight
:
flickable
.
height
height
:
flickable
.
contentHeight
>
flickable
.
height
?
flickable
.
contentHeight
:
flickable
.
height
...
@@ -64,16 +64,17 @@ Item {
...
@@ -64,16 +64,17 @@ Item {
anchors
{
anchors
{
top
:
parent
.
top
top
:
parent
.
top
topMargin
:
closeMode
?
20
:
0
bottom
:
toolBar
.
top
bottom
:
toolBar
.
top
left
:
parent
.
left
left
:
parent
.
left
// no right anchor to avoid double margin (complicated math)
// no right anchor to avoid double margin (complicated math)
margins
:
1
0
leftMargin
:
closeMode
?
20
:
0
}
}
Grid
{
Grid
{
id
:
gridview
id
:
gridview
columns
:
2
columns
:
2
spacing
:
1
0
spacing
:
closeMode
?
20
:
0
move
:
Transition
{
move
:
Transition
{
NumberAnimation
{
NumberAnimation
{
properties
:
"
x,y
"
properties
:
"
x,y
"
...
...
src/qml/CloseButton.qml
View file @
7255535a
...
@@ -27,7 +27,9 @@ Image {
...
@@ -27,7 +27,9 @@ Image {
id
:
closeButton
id
:
closeButton
signal
clicked
()
signal
clicked
()
source
:
'
/usr/share/lipstick-glacier-home-qt5/qml/theme/icon-m-framework-close-thumbnail.png
'
source
:
'
/usr/share/lipstick-glacier-home-qt5/qml/images/closeapp.svg
'
sourceSize.width
:
width
sourceSize.height
:
height
MouseArea
{
MouseArea
{
anchors.fill
:
parent
anchors.fill
:
parent
...
...
src/qml/SwitcherItem.qml
View file @
7255535a
...
@@ -34,11 +34,11 @@ MouseArea {
...
@@ -34,11 +34,11 @@ MouseArea {
WindowPixmapItem
{
WindowPixmapItem
{
id
:
windowPixmap
id
:
windowPixmap
width
:
rotateWindowContent
?
parent
.
height
:
parent
.
width
width
:
rotateWindowContent
?
parent
.
width
:
parent
.
height
height
:
rotateWindowContent
?
parent
.
width
:
parent
.
height
height
:
rotateWindowContent
?
parent
.
height
:
parent
.
width
windowId
:
model
.
window
windowId
:
model
.
window
transform
:
Rotation
{
transform
:
Rotation
{
angle
:
rotateWindowContent
?
90
:
0
angle
:
rotateWindowContent
?
0
:
9
0
origin.x
:
windowPixmap
.
height
/
2
origin.x
:
windowPixmap
.
height
/
2
origin.y
:
windowPixmap
.
height
/
2
origin.y
:
windowPixmap
.
height
/
2
}
}
...
@@ -95,12 +95,15 @@ MouseArea {
...
@@ -95,12 +95,15 @@ MouseArea {
CloseButton
{
CloseButton
{
id
:
closeButton
id
:
closeButton
width
:
parent
.
width
/
4
height
:
width
Behavior
on
scale
{
PropertyAnimation
{
duration
:
300
;
easing.type
:
Easing
.
OutBack
}
}
Behavior
on
scale
{
PropertyAnimation
{
duration
:
300
;
easing.type
:
Easing
.
OutBack
}
}
scale
:
switcherRoot
.
closeMode
?
1
:
0
scale
:
switcherRoot
.
closeMode
?
1
:
0
opacity
:
scale
opacity
:
scale
enabled
:
!
closeAnimation
.
running
enabled
:
!
closeAnimation
.
running
anchors
{
anchors
{
bottom
:
parent
.
bottom
bottom
:
parent
.
bottom
bottomMargin
:
height
*
0.5
horizontalCenter
:
parent
.
horizontalCenter
horizontalCenter
:
parent
.
horizontalCenter
}
}
onClicked
:
closeAnimation
.
start
()
onClicked
:
closeAnimation
.
start
()
...
...
src/src.pro
View file @
7255535a
...
@@ -13,7 +13,8 @@ styles.files = nemovars.conf
...
@@ -13,7 +13,8 @@ styles.files = nemovars.conf
images
.
path
=
/
usr
/
share
/
lipstick
-
glacier
-
home
-
qt5
/
qml
/
images
images
.
path
=
/
usr
/
share
/
lipstick
-
glacier
-
home
-
qt5
/
qml
/
images
images
.
files
=
qml
/
images
/*
.png \
images
.
files
=
qml
/
images
/*
.png \
qml/images
/*
.jpg
qml/images
/*
.jpg \
qml/images
/*
.svg
theme.path = /usr/share/lipstick-glacier-home-qt5/qml/theme
theme.path = /usr/share/lipstick-glacier-home-qt5/qml/theme
theme.files = qml/theme
/*
.png
theme.files = qml/theme
/*
.png
...
...
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