Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Mobile
Commits
3d825bbc
Commit
3d825bbc
authored
Oct 01, 2015
by
Marco Martin
Browse files
panel at left like the widget explorer
parent
813bd8fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
shell/contents/configuration/AppletConfiguration.qml
View file @
3d825bbc
...
...
@@ -31,7 +31,7 @@ Rectangle {
Layout.minimumHeight
:
units
.
gridUnit
*
20
//BEGIN properties
color
:
Qt
.
rgba
(
0
,
0
,
0
,
1
-
panel
.
x
/
width
)
color
:
Qt
.
rgba
(
0
,
0
,
0
,
(
1
-
Math
.
abs
(
panel
.
x
/
(
panel
.
width
/
2
)))
*
0.8
)
width
:
units
.
gridUnit
*
40
height
:
units
.
gridUnit
*
30
...
...
@@ -118,7 +118,7 @@ Rectangle {
properties
:
"
x
"
duration
:
units
.
longDuration
easing.type
:
Easing
.
InOutQuad
to
:
root
.
width
/
6
to
:
0
}
SequentialAnimation
{
id
:
closeAnim
...
...
@@ -127,7 +127,7 @@ Rectangle {
properties
:
"
x
"
duration
:
units
.
longDuration
easing.type
:
Easing
.
InOutQuad
to
:
root
.
width
to
:
-
panel
.
width
}
ScriptAction
{
script
:
cancelAction
.
trigger
();
...
...
@@ -164,24 +164,23 @@ Rectangle {
drag.filterChildren
:
true
drag.target
:
panel
drag.axis
:
Drag
.
XAxis
drag.maximumX
:
width
drag.minimumX
:
width
/
6
drag.maximumX
:
0
onReleased
:
{
if
(
panel
.
x
>
root
.
width
/
2
)
{
if
(
panel
.
x
<
-
panel
.
width
/
3
)
{
closeAnim
.
running
=
true
;
}
else
{
openAnim
.
running
=
true
;
}
}
onClicked
:
{
if
(
mouse
.
x
<
width
/
6
)
{
if
(
mouse
.
x
>
main
.
width
)
{
closeAnim
.
running
=
true
;
}
}
Rectangle
{
id
:
panel
width
:
root
.
width
-
root
.
width
/
6
x
:
roo
t
.
width
x
:
-
width
width
:
parent
.
width
-
paren
t
.
width
/
6
height
:
root
.
height
color
:
syspal
.
window
ColumnLayout
{
...
...
@@ -362,7 +361,7 @@ Rectangle {
LinearGradient
{
width
:
units
.
gridUnit
/
2
anchors
{
righ
t
:
parent
.
lef
t
lef
t
:
parent
.
righ
t
top
:
parent
.
top
bottom
:
parent
.
bottom
rightMargin
:
-
1
...
...
@@ -372,20 +371,17 @@ Rectangle {
gradient
:
Gradient
{
GradientStop
{
position
:
0.0
color
:
"
transparent
"
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.3
)
}
GradientStop
{
position
:
0.
7
position
:
0.
3
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.15
)
}
GradientStop
{
position
:
1.0
color
:
Qt
.
rgba
(
0
,
0
,
0
,
0.3
)
color
:
"
transparent
"
}
}
MouseArea
{
anchors.fill
:
parent
}
}
}
}
...
...
shell/contents/explorer/WidgetExplorer.qml
View file @
3d825bbc
...
...
@@ -129,9 +129,6 @@ Rectangle {
color
:
"
transparent
"
}
}
MouseArea
{
anchors.fill
:
parent
}
}
WidgetExplorer
{
...
...
Write
Preview
Supports
Markdown
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