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

Header as pane #190

Open
allanabiud opened this issue Dec 30, 2024 · 13 comments
Open

Header as pane #190

allanabiud opened this issue Dec 30, 2024 · 13 comments
Labels
enhancement New feature or request

Comments

@allanabiud
Copy link

allanabiud commented Dec 30, 2024

Description

I've seen what you've done with the lyrics and implemented it as a pane.
It would be great if the same could be done with the header to allow it be positioned at the bottom together with the progress bar and keeping its row customisations of course.

Proposed solution

Implement the header as a pane similar to queue, album art and lyrics.

@allanabiud allanabiud added the enhancement New feature or request label Dec 30, 2024
@mierak
Copy link
Owner

mierak commented Dec 30, 2024

I definitely want to do something about making them configurable. I dont have specific implementation in mind yet, but am unsure whether making them into panes is the way.

@allanabiud
Copy link
Author

allanabiud commented Dec 30, 2024

I also wanted to ask about the browser_song_format. In the documentation it's stated it takes the same format as song_table_format. Does this mean it can have columns as well and you can use properties on it as well, cause I tried and it didn't work.

I also tried altering album_art_position and album_art_width_percent, and nothing changed.

Also, styling (kind: Property(Status(Bitrate))) like so (kind: Property(Status(Bitrate)), style: (fg: "red", modifiers: "Bold")), didn't apply any sort of styling.

@mierak
Copy link
Owner

mierak commented Dec 30, 2024

I also tried altering album_art_position and album_art_width_percent, and nothing changed.

Those two are deprecated in favor of the tabs config which does the same and more. My bad on not pruning them properly from the docs, will fix that.

I also wanted to ask about the browser_song_format. In the documentation it's stated it takes the same format as song_table_format.

No, it just means that the it takes the same formatters as the song_table_format except with styles being ignored, but I see how its misleading, will also fix that. You can check the default theme at the bottom to see what its supposed to look like.

Also, styling (kind: Property(Status(Bitrate))) like so (kind: Property(Status(Bitrate)), style: (fg: "red", modifiers: "Bold")), didn't apply any sort of styling.

That is a genuine bug with Bitrate and Crossfade props (and maybe others), will fix that in a bit

Thanks for the feedback!

@mierak
Copy link
Owner

mierak commented Dec 30, 2024

The styles not working fixed in #192. All mentions of album_art_position and album_art_width_percent were removed too.

@allanabiud
Copy link
Author

No, it just means that the it takes the same formatters as the song_table_format except with styles being ignored, but I see how its misleading, will also fix that.

I guess I was confused as to what counts as styles and formatters. I was just going over the documentation for song_table_format and thought those options were available to browser_song_format as well.

I just wish it was clearer which ones work for browser_song_format.

@mierak
Copy link
Owner

mierak commented Jan 16, 2025

I took the everything as pane approach here #208. As it says in the PR, it lets you move everything around by specifying layout in your theme. Its not completely ready yet, but would be great to get a second pair of eyes on it while its still baking, since it was quite a big change and I might have broken some stuff.

@allanabiud
Copy link
Author

allanabiud commented Jan 16, 2025

I took the everything as pane approach here #208. As it says in the PR, it lets you move everything around by specifying layout in your theme. Its not completely ready yet, but would be great to get a second pair of eyes on it while its still baking, since it was quite a big change and I might have broken some stuff.

Ok looking into it right now.
Is this configured in the theme config or base config and does this mean the pane configuration in the tabs doesn't work now or it will conflict?

@mierak
Copy link
Owner

mierak commented Jan 16, 2025

The layout is configured in the theme config. The tabs work alongside the layout and are put into a special TabContent pane in the layout, you can see that in the expandable example in the PR.

@allanabiud
Copy link
Author

allanabiud commented Jan 16, 2025

The layout is configured in the theme config. The tabs work alongside the layout and are put into a special TabContent pane in the layout, you can see that in the expandable example in the PR.

So I don't need the tabs configuration in the base config anymore?

@allanabiud
Copy link
Author

I was able to get it working.

@allanabiud
Copy link
Author

allanabiud commented Jan 16, 2025

rmpc-layout
rmpc-layout2

Works just fine from my testing. Will continue pushing it

Was just confused on how this will conflict with the tab configurations.
Also on the sizes. Weird that percentages work alongside what I would assume are pixels. It being standardized would be great.
It can get pretty confusing with all the sizes and some content can get hidden without noticing. Like in the second image, the second row for artists in my header is hidden.

And also be able to have a borders around the splits I create, so my bottom split has a border as well

@mierak
Copy link
Owner

mierak commented Jan 16, 2025

Thanks! Glad to see its working somewhat and sorry for the confusion.

Sizes are either with a percent sign, ie "50%" or in terminal cells (rows or columns) and these are written just as a number inside quotes ie. "5". Thats from #203 feature and is documented here. This is inteded so you can for example make lyrics take only 5 rows and some other pane the rest of the space. Sadly theres not much more I can do to make it better other than documenting it better which I will try to do.

Borders are already planned after this is merged!

@allanabiud
Copy link
Author

Thanks! Glad to see its working somewhat and sorry for the confusion.

Sizes are either with a percent sign, ie "50%" or in terminal cells (rows or columns) and these are written just as a number inside quotes ie. "5". Thats from #203 feature and is documented here. This is inteded so you can for example make lyrics take only 5 rows and some other pane the rest of the space. Sadly theres not much more I can do to make it better other than documenting it better which I will try to do.

Yeah I was confused that they can both be used together. I expected wither percentage sizes or terminal cells. But better documentation will make it more understandable.

Borders are already planned after this is merged!

Nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants