AdwViewSwitcher
Tab buttons for switching views.
Preview
CSS Node Tree
viewswitcher[.wide|.narrow]
└── button.toggle.flat[.horizontal|.vertical][:checked]
└── stack
└── box.wide|box.narrow
├── indicatorbin[.needs-attention][.badge]
│ ├── mask
│ ├── indicator
│ │ └── [label.numeric]
│ └── image
└── labelProps
Prop
Type
Behavior
- Every button shows an icon and a label: side by side with
policy="wide", the icon above the label withpolicy="narrow". A page withouticonNameshows the image-missing icon. - Without
activePageNamethe switcher keeps its own selection, starting on the first visible page. - Tab focuses the selected button, and the arrow keys move between buttons. Clicking a button doesn't take the keyboard focus.
- Holding a drag over a button for half a second selects its page.
AdwViewSwitcherBar
A bar for the bottom of a window, holding a narrow view switcher. It's shown when reveal is set and there are at least two visible pages.
CSS Node Tree
viewswitcherbar
└── actionbar
└── revealer
└── box
├── box.start
├── viewswitcher.narrow
└── box.endProps
Prop
Type