-
Notifications
You must be signed in to change notification settings - Fork 33
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
YaruTitleBar: allow specifying the hero tag #554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGFM 👍
I suppose that the toString
method of the object passed to _YaruTitleBarHeroTag.id()
is always properly implemented.
In our case, it becomes "<_YaruDetailPageHeroTag YaruWindowTitleBar>" so it reads like "the detail page's hero tag for the app bar". We need the same tag for both title bars on the page transitioning in and out to achieve the effect that it stays in place. With custom hero tags you can either disable the whole thing if it's not suitable for your app structure, or you can adapt it to more complex scenarios e.g. only applying the effect when transitioning between certain pages. |
Okay, thanks for the explanation :) |
Now that I think of it, the dynamic hero-tag formatting is pointless. We could just as well have a constant string? |
As far as I understood, a constant would be enough, indeed :) |
Yeah, seems to work fine. What was I even thinking 🤦♂️ |
how many attempts do i need to create a string constant |
The YaruTitleBar counterpart of #553.
Close: #549