enum Adw::ToolbarStyle

Overview

Describes the possible top or bottom bar styles in an #ToolbarView widget.

ADW_TOOLBAR_FLAT is suitable for simple content, such as #StatusPage or #PreferencesPage, where the background at the top and bottom parts of the page is uniform. Additionally, windows with sidebars should always use this style.

toolbar-view-flat-1 toolbar-view-flat-2

ADW_TOOLBAR_RAISED style is suitable for content such as utility panes, where some elements are directly adjacent to the top/bottom bars, or #TabView, where each page can have a different background.

ADW_TOOLBAR_RAISED_BORDER style is similar to ADW_TOOLBAR_RAISED, but with the shadow replaced with a more subtle border. It's intended to be used in applications like image viewers, where a shadow over the content might be undesired.

toolbar-view-raised toolbar-view-raised-border

See [property@ToolbarView:top-bar-style] and [property@ToolbarView:bottom-bar-style].

New values may be added to this enumeration over time.

Defined in:

lib/gi-crystal/src/auto/adw-1/adw.cr

Enum Members

Flat = 0_u32

No background, shadow only for scrolled content

Raised = 1_u32

Opaque background with a persistent shadow

RaisedBorder = 2_u32

Opaque background with a persistent border

Class Method Summary

Instance Method Summary

Class methods inherited from struct Enum

g_type : UInt64 g_type

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def flat? #

def raised? #

def raised_border? #