Package org.gnome.adw

Class Application

java.lang.Object
All Implemented Interfaces:
Proxy, ActionGroup, ActionMap

@Generated("io.github.jwharm.JavaGI") public class Application extends Application implements ActionGroup, ActionMap
A base class for Adwaita applications.

AdwApplication handles library initialization by calling Adw.init() in the default Gio.Application::startup signal handler, in turn chaining up as required by Application. Therefore, any subclass of AdwApplication should always chain up its startup handler before using any Adwaita or GTK API.

Automatic Resources
AdwApplication will automatically load stylesheets located in the application's resource base path (see Application.setResourceBasePath(java.lang.String), if they're present.

They can be used to add custom styles to the application, as follows:

  • style.css contains styles that are always present.
  • style-dark.css contains styles only used when StyleManager:dark is TRUE.
  • style-hc.css contains styles used when the system high contrast preference is enabled.
  • style-hc-dark.css contains styles used when the system high contrast preference is enabled and StyleManager:dark is TRUE.