[GH-ISSUE #128] customization of tui #57

Closed
opened 2026-03-02 23:44:07 +03:00 by kerem · 11 comments
Owner

Originally created by @sewnie on GitHub (Feb 12, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/128

Is it possible that the rust TUI libraries used by Spotify_player can move the current 'widgets'? I would love to remove the borders and move the progress bar at the bottom. And to disable certain text as it can get very cluttered.

Another thing is to change the text or icons to have a progress bar similar to musikcube.

Thanks.

Originally created by @sewnie on GitHub (Feb 12, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/128 Is it possible that the rust TUI libraries used by Spotify_player can move the current 'widgets'? I would love to remove the borders and move the progress bar at the bottom. And to disable certain text as it can get very cluttered. Another thing is to change the text or icons to have a progress bar similar to musikcube. Thanks.
kerem 2026-03-02 23:44:07 +03:00
Author
Owner

@aome510 commented on GitHub (Feb 12, 2023):

By moving the widgets, do you mean re-ordering the app's layout? Removing borders can be easily added as a config option, layout re-ordering is not as trivial as a large part of UI constructing codes involves fixed layout. Flexible layout can be implemented but I don't have any plans to do it in the near future.

Another thing is to change the text or icons to have a progress bar similar to musikcube.

tui only supports two types of progress bars Gauge and LineGague. Gauge is what we currently have in spotify-player. Changing to LineGauge will make it look as follows:

image

which seems to be pretty close to that of musikcube.

<!-- gh-comment-id:1427072987 --> @aome510 commented on GitHub (Feb 12, 2023): By moving the widgets, do you mean re-ordering the app's layout? Removing borders can be easily added as a config option, layout re-ordering is not as trivial as a large part of UI constructing codes involves fixed layout. Flexible layout can be implemented but I don't have any plans to do it in the near future. > Another thing is to change the text or icons to have a progress bar similar to musikcube. `tui` only supports two types of progress bars `Gauge` and `LineGague`. `Gauge` is what we currently have in `spotify-player`. Changing to `LineGauge` will make it look as follows: <img width="1425" alt="image" src="https://user-images.githubusercontent.com/40011582/218323256-8c5fc35e-24fa-499c-8d88-a97497925c92.png"> which seems to be pretty close to that of musikcube.
Author
Owner

@sewnie commented on GitHub (Feb 12, 2023):

By moving the widgets, do you mean re-ordering the app's layout?

Yes.

Flexible layout can be implemented but I don't have any plans to do it in the near future.
so, no progress bar at the bottom? :(

<!-- gh-comment-id:1427073626 --> @sewnie commented on GitHub (Feb 12, 2023): > By moving the widgets, do you mean re-ordering the app's layout? Yes. > Flexible layout can be implemented but I don't have any plans to do it in the near future. so, no progress bar at the bottom? :(
Author
Owner

@aome510 commented on GitHub (Feb 12, 2023):

so, no progress bar at the bottom? :(

:'( well technically, if all you need is to move the playback block to the bottom, it should be easy to implement.

By playback block, I mean this whole thing
image

<!-- gh-comment-id:1427074469 --> @aome510 commented on GitHub (Feb 12, 2023): > so, no progress bar at the bottom? :( :'( well technically, if all you need is to move the playback block to the bottom, it should be easy to implement. By playback block, I mean this whole thing <img width="1426" alt="image" src="https://user-images.githubusercontent.com/40011582/218323879-714cedae-15eb-401e-b65c-c8e07ddff51b.png">
Author
Owner

@sewnie commented on GitHub (Feb 12, 2023):

yes thats what i mean, the whole playblock block thing thingy to be at the botom yes yes yes

<!-- gh-comment-id:1427074905 --> @sewnie commented on GitHub (Feb 12, 2023): yes thats what i mean, the whole playblock block thing thingy to be at the botom yes yes yes
Author
Owner

@aome510 commented on GitHub (Feb 14, 2023):

@apprehensions you should now be able to move the playback window's position to the bottom by changing the playback_position config option to Bottom.

<!-- gh-comment-id:1430519588 --> @aome510 commented on GitHub (Feb 14, 2023): @apprehensions you should now be able to move the playback window's position to the bottom by changing the `playback_position` config option to `Bottom`.
Author
Owner

@sewnie commented on GitHub (Feb 22, 2023):

how do i use this LineGague thing though.

<!-- gh-comment-id:1440356498 --> @sewnie commented on GitHub (Feb 22, 2023): how do i use this `LineGague` thing though.
Author
Owner

@aome510 commented on GitHub (Feb 22, 2023):

Oh, I missed that. Will implement in a follow-up PR

<!-- gh-comment-id:1440611629 --> @aome510 commented on GitHub (Feb 22, 2023): Oh, I missed that. Will implement in a follow-up PR
Author
Owner

@sewnie commented on GitHub (Feb 22, 2023):

thanks ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️ ❤️

<!-- gh-comment-id:1440625482 --> @sewnie commented on GitHub (Feb 22, 2023): thanks :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart: :heart:
Author
Owner

@aome510 commented on GitHub (Feb 22, 2023):

updated TODO:

  • gauge customization
  • border customization
<!-- gh-comment-id:1440686717 --> @aome510 commented on GitHub (Feb 22, 2023): updated TODO: - [ ] gauge customization - [ ] border customization
Author
Owner

@sewnie commented on GitHub (Feb 25, 2023):

btw, is it possible that when the LineGauge support comes out, can the icon for play and pause be moved there just like in the format support?

<!-- gh-comment-id:1445175915 --> @sewnie commented on GitHub (Feb 25, 2023): btw, is it possible that when the `LineGauge` support comes out, can the icon for `play` and `pause` be moved there just like in the format support?
Author
Owner

@aome510 commented on GitHub (Feb 26, 2023):

btw, is it possible that when the LineGauge support comes out, can the icon for play and pause be moved there just like in the format support?

do you mean moving it to be a part of the gauge? If yes, I'm afraid not. The play/pause icon is a part of {track} indicating the track's playing status. Because you cannot interact with the icon (e.g by clicking), it's not a part of the progress bar.

<!-- gh-comment-id:1445250092 --> @aome510 commented on GitHub (Feb 26, 2023): > btw, is it possible that when the `LineGauge` support comes out, can the icon for `play` and `pause` be moved there just like in the format support? do you mean moving it to be a part of the gauge? If yes, I'm afraid not. The play/pause icon is a part of `{track}` indicating the track's playing status. Because you cannot interact with the icon (e.g by clicking), it's not a part of the progress bar.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#57
No description provided.