Skip to content

Commit

Permalink
Remove deprecated ViewSwitcherTitle (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahil-Shadwal authored Jan 11, 2024
1 parent f87bdd1 commit f190d9b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions demos/View Switcher/main.blp
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,26 @@ using Gtk 4.0;
using Adw 1;

Adw.Window {
title: _("AdwViewSwitcher Demo");
width-request: 360;
height-request: 360;

Adw.Breakpoint {
condition ("max-width: 550sp")

setters {
header_bar.title-widget: null;
switcher_bar.reveal: true;
}
}

content: Box {
orientation: vertical;

Adw.HeaderBar {
centering-policy: strict;

title-widget: Adw.ViewSwitcherTitle switcher_title {
Adw.HeaderBar header_bar {
title-widget: Adw.ViewSwitcher switcher_title {
stack: stack;
title: _("AdwViewSwitcher Demo");
policy: wide;
};
}

Expand Down Expand Up @@ -132,7 +140,7 @@ Adw.Window {

Adw.ViewSwitcherBar switcher_bar {
stack: stack;
reveal: bind switcher_title.title-visible;
}
};
}

0 comments on commit f190d9b

Please sign in to comment.