mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-04 01:47:31 +03:00
show panel background faster at !compositing
--disable animations for panel opacity at !compositing
This commit is contained in:
parent
c6cd7d975a
commit
79c4defad6
@ -76,7 +76,17 @@ Item{
|
||||
property int smallSize: Math.max(3.7*root.statesLineSize, 16)
|
||||
|
||||
Behavior on opacity{
|
||||
NumberAnimation { duration: 150 }
|
||||
enabled: Latte.WindowSystem.compositingActive
|
||||
NumberAnimation {
|
||||
duration: 200
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on opacity{
|
||||
enabled: !Latte.WindowSystem.compositingActive
|
||||
NumberAnimation {
|
||||
duration: 0
|
||||
}
|
||||
}
|
||||
|
||||
Binding {
|
||||
@ -136,9 +146,16 @@ Item{
|
||||
enabledBorders: dock ? dock.enabledBorders : PlasmaCore.FrameSvg.NoBorder
|
||||
|
||||
Behavior on opacity {
|
||||
enabled: Latte.WindowSystem.compositingActive
|
||||
NumberAnimation { duration: 8*root.durationTime*units.shortDuration }
|
||||
}
|
||||
|
||||
|
||||
Behavior on opacity{
|
||||
enabled: !Latte.WindowSystem.compositingActive
|
||||
NumberAnimation { duration: 0 }
|
||||
}
|
||||
|
||||
property int marginsWidth: {
|
||||
if (imagePath === "") {
|
||||
return 0;
|
||||
@ -201,9 +218,15 @@ Item{
|
||||
}
|
||||
|
||||
Behavior on opacity{
|
||||
enabled: Latte.WindowSystem.compositingActive
|
||||
NumberAnimation { duration: 200 }
|
||||
}
|
||||
|
||||
Behavior on opacity{
|
||||
enabled: !Latte.WindowSystem.compositingActive
|
||||
NumberAnimation { duration: 0 }
|
||||
}
|
||||
|
||||
Binding {
|
||||
target: root
|
||||
property: "panelShadow"
|
||||
|
Loading…
x
Reference in New Issue
Block a user