import Adw import Gtk extension WidgetView where Target: Adw.HeaderBar { /// Applies the `.flat` style class. /// /// Flat appearance for the header bar. /// /// - Parameter enabled: Whether the style class is applied. /// - Returns: A copy of this view with the modifier applied. @available(*, deprecated, message: "Deprecated since libadwaita 1.4. Use Adw.ToolbarView instead.") public func flat(_ enabled: Bool = true) -> Self { styleClass("flat", enabled) } /// Applies the `.flat` style class. /// /// Flat appearance for the header bar. /// /// - Parameter enabled: A binding that controls whether the class is applied. /// - Returns: A copy of this view with the modifier applied. @available(*, deprecated, message: "Deprecated since libadwaita 1.4. Use Adw.ToolbarView instead.") public func flat(_ enabled: Binding) -> Self { styleClass("flat", enabled) } } extension WidgetView where Target: Gtk.HeaderBar { /// Applies the `.flat` style class. /// /// Flat appearance for the header bar. /// /// - Parameter enabled: Whether the style class is applied. /// - Returns: A copy of this view with the modifier applied. @available(*, deprecated, message: "Deprecated since libadwaita 1.4. Use Adw.ToolbarView instead.") public func flat(_ enabled: Bool = true) -> Self { styleClass("flat", enabled) } /// Applies the `.flat` style class. /// /// Flat appearance for the header bar. /// /// - Parameter enabled: A binding that controls whether the class is applied. /// - Returns: A copy of this view with the modifier applied. @available(*, deprecated, message: "Deprecated since libadwaita 1.4. Use Adw.ToolbarView instead.") public func flat(_ enabled: Binding) -> Self { styleClass("flat", enabled) } }