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:
parent
d7240ab755
commit
9fc1bfd2d2
@ -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();
|
||||
|
BIN
containment/contents/icons/purpleprint.jpg
Normal file
BIN
containment/contents/icons/purpleprint.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user