-
-
Notifications
You must be signed in to change notification settings - Fork 685
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 Toga.SimpleApp base class #1870
Comments
Hi, what's the status for this feature? @freakboy3742 |
It's waiting for an implementation. It's not on the short term roadmap of the core team, but if someone were to provide an implementation, it would get reviewed, and if the review was positive, merged into main. |
@freakboy3742 this issue have been closed, so now we can remove the title bar for android app? if can, would u give brief example? thanks. |
It's been fixed in the main branch, but isn't in a stable release yet. As for how to use it - when you set the main window, use an instance of |
@freakboy3742 how to install the git version? |
See #2032 (comment). |
What is the problem or limitation you are having?
Toga.App includes a number of features that may not be desirable on all apps.
On Windows and GTK, the main window of a Toga app includes a menubar.
On iOS and Android, the main window contains a titlebar.
The titlebar provided by the web backend may also be undesirable in some situations.
Describe the solution you'd like
Toga should offer a
Toga.SimpleApp
base class that only includes the bare minimum of decorations.SimpleApp
should not support menus or toolbars. It should not draw a titlebar on its main window. Any commands that are registered should only be accessible as keyboard shortcuts.Toga.App
should subclassToga.SimpleApp
to add these additional features.The MainWindow instantiated by the app may also need a "Simple" variant.
Describe alternatives you've considered
Provide a formal API to turn off menus, toolbars etc on a feature-by-feature basis. This is problematic because of platforms like macOS, where menus are non-optional.
Additional context
#733 was an original request for this feature.
The text was updated successfully, but these errors were encountered: