https://bugs.kde.org/show_bug.cgi?id=440283
Bug ID: 440283
Summary: Changing the value of iconOffsetY inside a custom
indicator (with a Binding) doesn't appear to move the
icons up nor down
Product: lattedock
Version: git (master)
Platform: Compiled Sources
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Changing the value of iconOffsetY inside a custom indicator (with a Binding)
doesn't appear to move the icons up nor down
STEPS TO REPRODUCE
1. Add a Binding targeting level.requested's iconOffsetY property
2. Change the value to any integer
3. Install/Update the indicator package
OBSERVED RESULT
The application icons have not moved.
EXPECTED RESULT
The application icons should have shifted up or down, depending on the value.
SOFTWARE/OS VERSIONS
OS: Arch Linux
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Latte: Latest Git version
ADDITIONAL INFORMATION
I'm basing my indicator on https://github.com/psifidotos/latte-indicator-win10.
The Win10 indicator has a Binding targeting level.requested's iconOffsetX
property, of which
I can modify the value and see the icons shifted left or right.
But when trying to use a similar Binding for the iconOffsetY property, the
icons don't move up
nor down, no matter the value.
// This moves the icons a little bit to the right
Binding{
target: level.requested
property: "iconOffsetX"
when: level && level.requested &&
level.requested.hasOwnProperty("iconOffsetX")
value: 10 // Arbitrary value
}
// This does not move the icons
Binding{
target: level.requested
property: "iconOffsetY"
when: level && level.requested &&
level.requested.hasOwnProperty("iconOffsetY")
value: 10 // Arbitrary value
}
I'm very new to Qt and QML, forgive me if it isn't a bug and instead a
misunderstanding on my part.
UNRELATED QUESTION
Is there a way for an indicator to change the size/scale of an icon?
I would like to add a shrinking effect on click to my indicator, but from what
I've
gathered from the techbase page it doesn't seem possible.
--
You are receiving this mail because:
You are watching all bug changes.