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

Minor tweaks of button alignment and queue spacing #233

Merged
merged 5 commits into from
Aug 9, 2024

Conversation

thornySoap
Copy link

@thornySoap thornySoap commented Jul 16, 2024

Before

player_before

queue_lower_before

queue_upper_before

After

player

queue_lower

queue_upper

To be honest, those things really bugged me, maybe I'm just weird D:

I'd appreciate some feedback, especially if I broke some conventions. Both the IconButton in Player and the ResizableIconButton in Queue were the only ones of their kind in their file, so I figured it would be more consistent to replace them with their counterpart.

@mostafaalagamy
Copy link

When the repeat mode is activated in the queue, it doesn't show that it is activated.

@thornySoap
Copy link
Author

@mostafaalagamy Thank you for testing! This should be resolved now. I hope ...

@mostafaalagamy
Copy link

@mostafaalagamy Thank you for testing! This should be resolved now. I hope ...

It's resolved, but I think there's a conflict with the PR (unify multiselect look with playlist screen). Please review it.

@thornySoap
Copy link
Author

That's possible. When I cherry picked the other commit to this branch there were no problems but I don't know what it'll look like when merging. But is there a way to resolve conflicts right now anyway? I think I have to wait until one of the PRs is (potentionally) merged and then I can fix the other one. But frankly, I don't know much about git ...

@mostafaalagamy
Copy link

That's possible. When I cherry picked the other commit to this branch there were no problems but I don't know what it'll look like when merging. But is there a way to resolve conflicts right now anyway? I think I have to wait until one of the PRs is (potentionally) merged and then I can fix the other one. But frankly, I don't know much about git ...

I think after the merger it will be fix , thanks.

top = ListItemHeight,
bottom = ListItemHeight,
top = ListItemHeight + 12.dp + 8.dp,
bottom = ListItemHeight + 8.dp,
Copy link
Owner

Choose a reason for hiding this comment

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

this is rather bad practice to "hardcode" values like this

Copy link
Author

Choose a reason for hiding this comment

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

Yes, you're completely right, but I wasn't sure how it was handled in this app. In my own I always use dimension resources. But regarding the Queue maybe we could use Scaffold and put the upper and lower bars into the corresponding "topBar" and "bottomBar" letting the Scaffold measure their heights, so theres no need for a custom layout?

Copy link
Author

Choose a reason for hiding this comment

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

But regarding the 8.dp spacing ... I mean its hardcoded all over the app:

Screenshot 2024-07-25 08:28:38

I personally favor dimension resources, but it doesn't seem to be used here and what would be the alternative?

@Malopieds Malopieds merged commit 6e4c647 into Malopieds:dev Aug 9, 2024
1 check failed
@Malopieds
Copy link
Owner

Thanks a lot for this PR, sorry for the time it took for me to accept it, I had a lot of things going on!

I personally favor dimension resources, but it doesn't seem to be used here and what would be the alternative?

I agree with you, it's how it should be handled, but right now I would gladly focus on fixing bugs/new features, but one day, that will be done !

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.

3 participants