diff --git a/effects/presentwindows/presentwindows.h b/effects/presentwindows/presentwindows.h --- a/effects/presentwindows/presentwindows.h +++ b/effects/presentwindows/presentwindows.h @@ -71,6 +71,7 @@ : public Effect { Q_OBJECT + Q_PROPERTY(int unhoverBright READ unhoverBright) Q_PROPERTY(int layoutMode READ layoutMode) Q_PROPERTY(bool showCaptions READ isShowCaptions) Q_PROPERTY(bool showIcons READ isShowIcons) @@ -158,6 +159,9 @@ }; // for properties + double unhoverBright() const { + return m_unhoverBright; + } int layoutMode() const { return m_layoutMode; } @@ -287,6 +291,7 @@ bool m_fillGaps; double m_fadeDuration; bool m_showPanel; + double m_unhoverBright; // Activation bool m_activated; diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -162,6 +162,7 @@ m_leftButtonDesktop = (DesktopMouseAction)PresentWindowsConfig::leftButtonDesktop(); m_middleButtonDesktop = (DesktopMouseAction)PresentWindowsConfig::middleButtonDesktop(); m_rightButtonDesktop = (DesktopMouseAction)PresentWindowsConfig::rightButtonDesktop(); + m_unhoverBright = PresentWindowsConfig::unhoverBright(); // touch screen edges const QVector relevantBorders{ElectricLeft, ElectricTop, ElectricRight, ElectricBottom}; @@ -313,7 +314,7 @@ if (w == m_highlightedWindow || w == m_closeWindow || !m_activated) winData->highlight = qMin(1.0, winData->highlight + time / m_fadeDuration); else if (!isInMotion && w->isDesktop()) - winData->highlight = 0.3; + winData->highlight = m_unhoverBright; else winData->highlight = qMax(0.0, winData->highlight - time / m_fadeDuration); @@ -2055,4 +2056,3 @@ } } // namespace - diff --git a/effects/presentwindows/presentwindows.kcfg b/effects/presentwindows/presentwindows.kcfg --- a/effects/presentwindows/presentwindows.kcfg +++ b/effects/presentwindows/presentwindows.kcfg @@ -26,6 +26,9 @@ 1 + + 0.23 + true diff --git a/effects/presentwindows/presentwindows_config.ui b/effects/presentwindows/presentwindows_config.ui --- a/effects/presentwindows/presentwindows_config.ui +++ b/effects/presentwindows/presentwindows_config.ui @@ -116,6 +116,88 @@ + + + + + + + Unhovered brightness + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + Darker + + + + + + + + 130 + 0 + + + + 0 + + + 1 + + + 0.2 + + + 0.2 + + + 0.2 + + + true + + + Qt::Horizontal + + + true + + + false + + + QSlider::TicksBelow + + + + + + + Brighter + + + + + + + + +