Skip to content
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 a move bar widget #1627

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Add a move bar widget #1627

wants to merge 4 commits into from

Conversation

svillar
Copy link
Member

@svillar svillar commented Nov 12, 2024

This widget replaces the experimental move windows button that could be enabled from the Display Settings. That button was shown in the navigation bar and was a bit weird to use.

This PR replaces it with a thing semi-transparent bar that when dragged moves the window in the horizontal direction as the old button used to do. That bar is unconditionally shown when in curved mode.

@svillar
Copy link
Member Author

svillar commented Nov 12, 2024

For reference, this is how the bar looks like
com oculus vrshell-20241112-110737
and this is its appearance when hovered
com oculus vrshell-20241112-110808

This widget replaces the experimental move windows button that could
be enabled from the Display Settings. That button was shown in the
navigation bar and was a bit weird to use.

This PR replaces it with a thing semi-transparent bar that when
dragged moves the window in the horizontal direction as the old
button used to do. That bar is unconditionally shown when in
curved mode.
@svillar
Copy link
Member Author

svillar commented Nov 14, 2024

I fixed an error in the XML file that was preventing the navigation url bar being shown while in not curved mode

@felipeerias
Copy link
Collaborator

I think that the move bar is still visible in resize mode, but it can not be used. It should probably be hidden in that case.

@svillar
Copy link
Member Author

svillar commented Nov 14, 2024

I think that the move bar is still visible in resize mode, but it can not be used. It should probably be hidden in that case.

I have tried and it is not visible, so working as expected.

That said I found a weird bug. When putting a standard YT video in fullscreen mode and then unfullscreening it, the move bar dissapears from the front window. It's shown in the others but not in the front one. I'm checking.

Window view model's isCurved property was not properly updated when
exiting fullscreen. When entering fullscreen it's updated because
placeWindow() is called. However on unfullscreen placeWindow() is
not called so the isCurved property was not updated. The solution
is to call updateCurvedMode when entering/exiting fullscreen.
@svillar
Copy link
Member Author

svillar commented Nov 14, 2024

I think that the move bar is still visible in resize mode, but it can not be used. It should probably be hidden in that case.

I have tried and it is not visible, so working as expected.

That said I found a weird bug. When putting a standard YT video in fullscreen mode and then unfullscreening it, the move bar dissapears from the front window. It's shown in the others but not in the front one. I'm checking.

The bug was not caused by the patch, but unveiled instead. I've included a commit that fixes it.

@svillar svillar marked this pull request as draft November 15, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants