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
Hide 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 {
Flickable
{
id
:
flickable
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
{
height
:
flickable
.
contentHeight
>
flickable
.
height
?
flickable
.
contentHeight
:
flickable
.
height
...
...
@@ -64,16 +64,17 @@ Item {
anchors
{
top
:
parent
.
top
topMargin
:
closeMode
?
20
:
0
bottom
:
toolBar
.
top
left
:
parent
.
left
// no right anchor to avoid double margin (complicated math)
margins
:
1
0
leftMargin
:
closeMode
?
20
:
0
}
Grid
{
id
:
gridview
columns
:
2
spacing
:
1
0
spacing
:
closeMode
?
20
:
0
move
:
Transition
{
NumberAnimation
{
properties
:
"
x,y
"
...
...
src/qml/CloseButton.qml
View file @
7255535a
...
...
@@ -27,7 +27,9 @@ Image {
id
:
closeButton
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
{
anchors.fill
:
parent
...
...
src/qml/SwitcherItem.qml
View file @
7255535a
...
...
@@ -34,11 +34,11 @@ MouseArea {
WindowPixmapItem
{
id
:
windowPixmap
width
:
rotateWindowContent
?
parent
.
height
:
parent
.
width
height
:
rotateWindowContent
?
parent
.
width
:
parent
.
height
width
:
rotateWindowContent
?
parent
.
width
:
parent
.
height
height
:
rotateWindowContent
?
parent
.
height
:
parent
.
width
windowId
:
model
.
window
transform
:
Rotation
{
angle
:
rotateWindowContent
?
90
:
0
angle
:
rotateWindowContent
?
0
:
9
0
origin.x
:
windowPixmap
.
height
/
2
origin.y
:
windowPixmap
.
height
/
2
}
...
...
@@ -95,12 +95,15 @@ MouseArea {
CloseButton
{
id
:
closeButton
width
:
parent
.
width
/
4
height
:
width
Behavior
on
scale
{
PropertyAnimation
{
duration
:
300
;
easing.type
:
Easing
.
OutBack
}
}
scale
:
switcherRoot
.
closeMode
?
1
:
0
opacity
:
scale
enabled
:
!
closeAnimation
.
running
anchors
{
bottom
:
parent
.
bottom
bottomMargin
:
height
*
0.5
horizontalCenter
:
parent
.
horizontalCenter
}
onClicked
:
closeAnimation
.
start
()
...
...
src/src.pro
View file @
7255535a
...
...
@@ -13,7 +13,8 @@ styles.files = nemovars.conf
images
.
path
=
/
usr
/
share
/
lipstick
-
glacier
-
home
-
qt5
/
qml
/
images
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.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