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

AA auto full screen #87

Closed
wants to merge 22 commits into from
Closed

AA auto full screen #87

wants to merge 22 commits into from

Conversation

egisz
Copy link
Contributor

@egisz egisz commented Aug 3, 2021

Description:

  • Added setting for automatic switch to full screen mode when AA is connected.
  • If setting is ON, AA switch to full screen when connected.
  • Dash switch to non full screen when device disconnects.

fixes #27

Checklist:

  • The code change is tested and works locally.

@rsjudka
Copy link
Contributor

rsjudka commented Aug 4, 2021

lgtm! ill let some ppl test it out to see how they feel about the flow

@egisz
Copy link
Contributor Author

egisz commented Aug 4, 2021

I was hesitatining how to name setting, it's named: Force AA fullscreen
I'ts short, but maybe it's not that clear what does it do?
Alternatives could be:

  • Auto switch AA to fullscreen
  • Auto fullscreen on AA connect
  • Force fullscreen AA when it connects
  • your proposed :)

20210802_142444

@stefan-sherwood
Copy link
Collaborator

Fullscreen Android Auto

@robert5974
Copy link
Collaborator

robert5974 commented Aug 4, 2021 via email

@egisz
Copy link
Contributor Author

egisz commented Aug 5, 2021

Initially I thought of delay, but is it really needed? It also can be inconvinient if you start AA, want to click on some UI element and suddenly it become fullscreen.

Regarding setting name, I think we can omit AA/Android auto because settings are inside AA page, so they are all related to AA :)

  • Switch fullscreen on connect
  • Fullscreen mode <------- this is my current favorite, simple and clear :)

@stefan-sherwood
Copy link
Collaborator

Simple and clear is good. I didn't realize the settings were in the AA section and I agree. How about just "Fullscreen"?

@TheBasedDoge
Copy link

Its working great for me but I noticed 2 things.

  • For some reason in dark mode, not all the icons are changing to white. I noticed this in your picture as well so not sure if related.
  • There is a green line on the right side of the screen in fullscreen, I don't think that was there before
  • When I use the cycle pages keyboard shortcut dash goes back to windowed, maybe add a toggle to keep that persistent?

image
20210805_155726

"fullscreen mode" sounds the best to me, simple and clear.

@egisz
Copy link
Contributor Author

egisz commented Aug 6, 2021

Its working great for me but I noticed 2 things.

  • For some reason in dark mode, not all the icons are changing to white. I noticed this in your picture as well so not sure if related.

Tested on develop branch, and it is same, so this is not relevant to this update, please report it as separate isssue
See screenshot below, power and exit buttons are too dark for dark theme...

  • There is a green line on the right side of the screen in fullscreen, I don't think that was there before

I noticed this also, but checked on develop branch it also exist, so it is not relevant to this update. Please report it as separate Issue.
20210806_092318

  • When I use the cycle pages keyboard shortcut dash goes back to windowed, maybe add a toggle to keep that persistent?

Good point! I'll try fix this.

@robert5974
Copy link
Collaborator

I've been noticing the green line myself too. It's not noticeable when not Fullscreen but I could see it. I use the official Raspberry Pi 7" screen. Does anybody that has a different screen see this?

As in, is it seen in a different resolution than 800x480?

@TheBasedDoge
Copy link

I've been noticing the green line myself too. It's not noticeable when not Fullscreen but I could see it. I use the official Raspberry Pi 7" screen. Does anybody that has a different screen see this?

As in, is it seen in a different resolution than 800x480?

yes, i am using 1024x600

@egisz
Copy link
Contributor Author

egisz commented Aug 6, 2021

When I use the cycle pages keyboard shortcut dash goes back to windowed, maybe add a toggle to keep that persistent?

Pushed new commit to branch, it now toggles fullscreen when cycling between pages
Also renamed setting label to Fullscreen mode.

@TheBasedDoge
Copy link

cool! i will try it

@rsjudka
Copy link
Contributor

rsjudka commented Aug 16, 2021

not ignoring this, but looks like the changes are touching more than just the AA page now so i want to look at it a bit closer

@egisz
Copy link
Contributor Author

egisz commented Aug 16, 2021

Yes, I did not mention, but latest update introduces fullscreen mode globally, not only in AA window.
Reason why I did this is because I also wanted backup camera fullscreen. Maybe it would be also better option for some widgets or media player.

It captures double click in all screens and toggles between fullscreen/non fullscreen mode.
Added animation to hide menus (user can disable this in settings).
Settings moved to Settings page/Layout page.
Also added notification dialog once user switches to fullscreen to inform how to switch back. It can be disabled by checking box "Do not show again".

I tested on PC, it works well, but on Rpi, this dialog sometimes does not come up. It should appear each time I toggle screen, until I check box "Do not show again", but it only shows up once after going to full screen, but after I hit cancel, it does not. I believe it opens, but not visible. I'll try to fix this, tried multiple ways, so help would be welcome. :)

show Fullscreen notification only once during app run.
@egisz
Copy link
Contributor Author

egisz commented Aug 17, 2021

Finally it seems working as expected, could someone else test it?

I had problems with RPI Lite environment, but finally found solution.
Actually other Dash dialogs (like Power off) also does not return Keyboard focus after closing them, but it's another story. On X11 (Raspian Desktop or Ubuntu) everything works fine, so it was bit challenging to find cause :(

Another anoying thing was that dialog was not centered because it was opened before main window is shown. Here there is anoter workaround to open dialog it inside singleshot timer.

@rsjudka
Copy link
Contributor

rsjudka commented Sep 9, 2021

yes ill try catching up with the PRs after I finish the vehicle widget stuff!

keyboard focus is definitely an entirely different issue for another time :p

as for the "not centered" workaround... since the dialog is a lot of custom code its entirely possible I did something wrong there. As long as the workaround isn't anything major I think its okay to keep it for now and then fix it later on

@rsjudka
Copy link
Contributor

rsjudka commented Dec 15, 2021

oops sorry looks like there are some conflicts with my recent commit (probs related to coloring the icons and whatnot)

mind fixing them so I can test out your changes?

@egisz
Copy link
Contributor Author

egisz commented Dec 15, 2021

sure, try now :)

@rsjudka
Copy link
Contributor

rsjudka commented Dec 16, 2021

i think some other changes might have snuck in here? (looking at the canbus stuff mainly)

@rsjudka
Copy link
Contributor

rsjudka commented Dec 16, 2021

so i tried running it (not on a pi so that might be a factor) but...

image

@egisz
Copy link
Contributor Author

egisz commented Jan 10, 2022

Please try now, fixed duplicate icons, that was caused by bug left during merge confict file...
also fixed few annoying build warnings.
It looks and works fine now
image

src/app/window.cpp Outdated Show resolved Hide resolved
src/app/window.cpp Outdated Show resolved Hide resolved
int fullscreen_delay = this->arbiter.layout().fullscreen_delay;
if (fullscreen && fullscreen_delay != 0) {
this->arbiter.toggle_fullscreen_mode();
this->arbiter.toggle_fullscreen_mode();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate line here?

Copy link
Contributor Author

@egisz egisz Jan 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, this is on purpose to trigger animation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i removed the duplicated line and it seemed to work just fine (tried with all animation levels)

src/app/pages/settings.cpp Outdated Show resolved Hide resolved
@rsjudka
Copy link
Contributor

rsjudka commented Jan 15, 2022

if you exit dash when in fullscreen mode, it doesn't seem to launch in fullscreen mode on the next boot (even though it shows as toggled in the settings)

@rsjudka
Copy link
Contributor

rsjudka commented Jan 26, 2022

if you exit dash when in fullscreen mode, it doesn't seem to launch in fullscreen mode on the next boot (even though it shows as toggled in the settings)

interesting... this is only an issue when the animation duration is 0

@rsjudka
Copy link
Contributor

rsjudka commented Mar 14, 2023

havent seen any movement on this and then i ended up changing how fullscreen works in #138 so its not compatible now

good news is auto fullscreen should be much simpler to do now 👍

@rsjudka rsjudka closed this Mar 14, 2023
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.

AA fullscreen
5 participants