Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace AdwViewSwitcherTitle with AdwViewSwitcher #45

Closed
wants to merge 0 commits into from
Closed

Replace AdwViewSwitcherTitle with AdwViewSwitcher #45

wants to merge 0 commits into from

Conversation

Sahil-Shadwal
Copy link
Contributor

Fixes #42

Updated AdwViewSwitcherTitle to Adw.ViewSwitcher and added policy to wide
Removed centering policy from Adw.HeaderBar and reveal from ViewSwitcherBar

@Sahil-Shadwal
Copy link
Contributor Author

I am looking why it is showing error, if there is somethings specific you want me to change . Please let me know , thank you

@Sahil-Shadwal
Copy link
Contributor Author

`Adw.HeaderBar {
centering-policy: strict;

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

If i am removing centering policy it is showing error, but the resource you shared in that it is stated to :

Also remove the AdwViewSwitcherBar:reveal property binding on your switcher bar, and stop setting AdwHeaderBar:centering-policy on your header bar.

Copy link
Contributor

@sonnyp sonnyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sahil-Shadwal
Copy link
Contributor Author

Sahil-Shadwal commented Jan 6, 2024

Hey , i followed the documentation and even asked in the libadawaita community . Everything seems fine but it is not working as expected . @sonnyp can you check the gist .
https://gist.github.com/Sahil-Shadwal/ea9162c2f9c7c43ed2599b07a7e0e08b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adw.ViewSwitcherTitle is deprecated
2 participants