|
Part of the intention of this change is that fullscreen mode can stay on.
It should stay on even if you are switching apps, so its not related to one specific app.
It should only automatically go back to non-fullscreen mode if you open a shell app. For example by closing the last open app and returning to apps launcher.
Therefore the functionality is not related to apps themselves anymore. - its more closely related to the apps viewport and the shell.
Fullscreen is implemented as before as a css class that gets added to body.
This happens in AppsViewPortWidget.setFullScreen(isFullScreen).
FullScreenButton is implemented like CloseButton.
ExitFullScreenMode and EnterFullScreenMode are added to Shell and ShellImpl.
ShellImpl.goToShellApp() calls exitFullScreenMode so that ... fullscreen mode is exited when a shell app is opened.
|