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

fix(YaruTitleBar): improve parameters #798

Merged
merged 1 commit into from Nov 19, 2023
Merged

Conversation

Feichtmeier
Copy link
Member

@Feichtmeier Feichtmeier commented Nov 19, 2023

  • forward platform parameters to YaruWindowControl
  • give the option to control padding and spacing from the constructor or the theme

grafik

- forward platform parameters to YaruWindowControl
- give the option to control padding and spacing from the constructor or the theme
Copy link
Member

@Jupi007 Jupi007 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Feichtmeier
Copy link
Member Author

important note to us
when you run the golden tests from windows, all are changed to windows ^^ but this is a rare case I hope

@Feichtmeier
Copy link
Member Author

@Jupi007 could you check if I made any mistake on your UBuntu machine?

Copy link
Member

@Jupi007 Jupi007 left a 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.

@Feichtmeier
Copy link
Member Author

Oh okay, well can you add a golden variant for the title bar test so we can test both yaru/windows?

you mean I should commit the test changes? dont they overwrite anything?=

@Jupi007
Copy link
Member

Jupi007 commented Nov 19, 2023

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

@Feichtmeier
Copy link
Member Author

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?

@Feichtmeier
Copy link
Member Author

Yes please do it

Copy link
Member

@Jupi007 Jupi007 left a 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.

@Feichtmeier Feichtmeier merged commit 22b8bb3 into main Nov 19, 2023
8 checks passed
@Feichtmeier Feichtmeier deleted the more_titlebar_parameters branch November 19, 2023 19:56
@github-actions github-actions bot mentioned this pull request Nov 19, 2023
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.

None yet

2 participants