ControlBar

A ControlBar represents a horizontal layout with a background. The intention is to use it to create a application control bar with buttons.

Properties

  • alignment: (in LayoutAlignment): Defines the alignment of the layout (default center).

Example

import { ControlBar, RoundButton, Icons } from "@coop/lib.slint";

export component Example inherits Window {
    width: 200px;
    height: 25px;

   ControlBar {
        RoundButton {
            icon: Icons.add;
        }

        RoundButton {
            icon: Icons.add;
        }
   }
}