1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-30 14:50:12 +03:00

improve alternative layout appearance

--use a purpleprint fot the editing mode
in order to distinguish it from the default
session
This commit is contained in:
Michail Vourlakos 2017-03-11 12:33:54 +02:00
parent d7240ab755
commit 9fc1bfd2d2
3 changed files with 4 additions and 2 deletions

View File

@ -71,6 +71,8 @@ class DockView : public PlasmaQuick::ContainmentView {
Q_PROPERTY(QRect localGeometry READ localGeometry WRITE setLocalGeometry NOTIFY localGeometryChanged)
Q_PROPERTY(QRect screenGeometry READ screenGeometry NOTIFY screenGeometryChanged)
Q_PROPERTY(Latte::Dock::SessionType session READ session WRITE setSession NOTIFY sessionChanged)
public:
DockView(Plasma::Corona *corona, QScreen *targetScreen = nullptr, bool alwaysVisible = false);
virtual ~DockView();

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

View File

@ -31,7 +31,7 @@ Image{
height: root.isVertical ? editLength : visibilityManager.thicknessNormalOriginal
fillMode: Image.Tile
source: "../icons/blueprint.jpg"
source: !dock || dock.session===Latte.Dock.DefaultSession ? "../icons/blueprint.jpg":"../icons/purpleprint.jpg"
opacity: 0
property int speed: root.durationTime*4*units.longDuration
@ -205,7 +205,7 @@ Image{
PropertyAnimation {
target: editVisual
property: "opacity"
to: root.drawShadowsExternal ? 0.3 : 0.6
to: root.drawShadowsExternal && dock.session===Latte.Dock.DefaultSession ? 0.3 : 0.6
duration: editVisual.speed / 2
easing.type: Easing.OutQuad
}