Closed TheLiux closed 11 months ago
@TheLiux thank you
It would be better if you would split this PR into smaller ones. Let's start with the typo part please
@TheLiux thank you
It would be better if you would split this PR into smaller ones. Let's start with the typo part please
Hi, thanks for reply. I removed the typo commit and added in another PR 😄 https://github.com/ubuntu/yaru.dart/pull/402
Nice, ty :) ! Can you do the same with splitting YaruVariant stuff and the nested-if thing? Our CI is not optimal and we still have the golden test PR pending (which we have working in yaru widgets), but we need to make sure that we dont end up with visual regressions For the nested-if-PR please add screenshots showing that the theme stays the same For the YaruVariant PR we need maybe a video where you toggle through the variants in gnome settings and see if a yaru app follows those changes (sorry for the additional work, but we are now at a point where a lot of canonical apps depend on this repo. We need to become better with CI/CD)
Nice, ty :) ! Can you do the same with splitting YaruVariant stuff and the nested-if thing? Our CI is not optimal and we still have the golden test PR pending (which we have working in yaru widgets), but we need to make sure that we dont end up with visual regressions For the nested-if-PR please add screenshots showing that the theme stays the same For the YaruVariant PR we need maybe a video where you toggle through the variants in gnome settings and see if a yaru app follows those changes (sorry for the additional work, but we are now at a point where a lot of canonical apps depend on this repo. We need to become better with CI/CD)
Yeah sure, I understand that! I will do ASAP with the screenshots and media you need! Just give me some time, i'll do it once I'm done with work 😅
I closed this PR and make new ones to have commit history aligned
Hi I made some changes to improve the code readability of the library. I strongly believe that is better to use early returns instead of nested if. Additionally, since Dart allows adding methods inside enums, I put inside the
YaruVariant
enum some methods that was scattered on the package some methods that return YaruVariant.This will close the following issue: ubuntu/yaru_widgets.dart#851
Let me now what you think about it :D