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
fix(YaruTitleBar): improve parameters #798
Conversation
Feichtmeier
commented
Nov 19, 2023
•
edited
edited
- forward platform parameters to YaruWindowControl
- give the option to control padding and spacing from the constructor or the theme
- forward platform parameters to YaruWindowControl - give the option to control padding and spacing from the constructor or the theme
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.
LGTM 👍
important note to us |
@Jupi007 could you check if I made any mistake on your UBuntu machine? |
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.
when you run the golden tests from windows, all are changed to windows
Oh okay, well can you add a golden variant for the title bar test so we can test both yaru/windows?
I did it for the window controls test.
you mean I should commit the test changes? dont they overwrite anything?= |
No no, I didn't mean to commit and overwrite the yaru images with windows ones, but to add a windows golden variants to append the windows variant to the yaru images 🙂 I just tested your branch on Ubuntu and I can't notice any problem. As you can see here, I added both variants to the test suit: https://github.com/ubuntu/yaru_widgets.dart/blob/5a05b25e0797cd765e2c9589766486c3eb8201f8/test/widgets/yaru_window_control_test.dart#L89 |
oh no. how would I do this? :D where? |
Here: You can do something similar as I did here: Or if you want, I can do it in a separate PR 🙂 |
Yes please do it |
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.
Okay, so let's merge this 👍
I'll update the tests in another PR.