plugins/shakecursor: Increase max cursor scale

Currently, the embedded cursors have effectively a scale factor of 10.
So they look smooth even though the current maxScale is small. With the
svg cursors, the shake cursor needs to provide more reasonable maxScale
values.
This commit is contained in:
Vlad Zahorodnii 2024-07-31 13:20:48 +03:00
parent 69012002d2
commit e7c1144e2c

View file

@ -144,7 +144,7 @@ void ShakeCursorEffect::magnify(qreal magnification)
if (!m_cursorItem) {
effects->hideCursor();
const qreal maxScale = ShakeCursorConfig::magnification() + 4 * ShakeCursorConfig::overMagnification();
const qreal maxScale = ShakeCursorConfig::magnification() + 8 * ShakeCursorConfig::overMagnification();
const KXcursorTheme originalTheme = input()->pointer()->cursorTheme();
if (m_cursorTheme.name() != originalTheme.name() || m_cursorTheme.size() != originalTheme.size() || m_cursorTheme.devicePixelRatio() != maxScale) {
m_cursorTheme = KXcursorTheme(originalTheme.name(), originalTheme.size(), maxScale);