New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OpacityMask to fix mouse hover on round corner. #2235
Conversation
e40f69c
to
1fa3eea
Compare
src/gui/tray/Window.qml
Outdated
visible: accountBtnMouseArea.containsMouse | ||
} | ||
background: Rectangle { | ||
color: currentAccountButton.hovered ? "white" : "transparent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the hover effect to be broken. So I think that either you want to add hoverEnabled: Style.hoverEffectsEnabled
in currentAccountButton
or you need to use accountBtnMouseArea.containsMouse
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was expecting the same but it is working:
Should I change yet?
Odd, was failing for me. I wonder if it's a platform thing with hoverEnabled default being different on the Button...
⏳
Alright, after a quick check in QtQuick2 and QtQuickControls2 code... hoverEnabled is indeed following QGuiApplication::styleHints()->useHoverEffects()
by default.
1fa3eea
to
0cb1578
Compare
/rebase |
- Fix for #2173. - Removed the workaround for the left round corner which was also fixed with the OpacityMask. Signed-off-by: Camila <hello@camila.codes>
0cb1578
to
f630a2b
Compare
AppImage file: Nextcloud-PR-2235-f630a2b8c2c3cba944d6f849933e767dda73d4e2-x86_64.AppImage |
fixed with the OpacityMask.
Signed-off-by: Camila hello@camila.codes