Skip to content

Minor tweaks of button alignment and queue spacing#233

Merged
Malopieds merged 5 commits intoMalopieds:devfrom
thornySoap:alignment-and-spacing-tweaks
Aug 9, 2024
Merged

Minor tweaks of button alignment and queue spacing#233
Malopieds merged 5 commits intoMalopieds:devfrom
thornySoap:alignment-and-spacing-tweaks

Conversation

@thornySoap
Copy link
Copy Markdown

@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
Copy Markdown

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

@thornySoap
Copy link
Copy Markdown
Author

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

@mostafaalagamy
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@Malopieds
Copy link
Copy Markdown
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