[GH-ISSUE #313] [feature]: add option for customize border color #1101

Closed
opened 2026-03-14 13:27:18 +03:00 by kerem · 2 comments
Owner

Originally created by @diegoulloao on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/313

Is your feature request related to a problem? Please describe.
Not a problem at all.

Describe the solution you'd like
I'd like to be able to pass an option for change the border color in hexadecimal format.
e.g: spotify_player --border-color=#ff44cc

Describe alternatives you've considered
None. Open to new solutions.

Additional context
I'm using spotify-player inside neovim in an embed terminal for handy access. spotify-player is using the neovim theme colors, but sometimes the border color is not the best looking, I'd like to be able to customize it passing the arg mentioned above. For sure this will help a lot of neovim users that we want to use this player embed.

Here's a screenshot. I'm thinking in write an article teaching how to use spotify-player embed in neovim.

Screenshot:
Screenshot 1

Here an embed terminal with customized border color (really nice looking):
Screenshot

Hope you can take this request 🙏🏻

Originally created by @diegoulloao on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/313 **Is your feature request related to a problem? Please describe.** Not a problem at all. **Describe the solution you'd like** I'd like to be able to pass an option for change the border color in hexadecimal format. e.g: `spotify_player --border-color=#ff44cc` **Describe alternatives you've considered** None. Open to new solutions. **Additional context** I'm using `spotify-player` inside neovim in an embed terminal for handy access. `spotify-player` is using the neovim theme colors, but sometimes the border color is not the best looking, I'd like to be able to customize it passing the arg mentioned above. For sure this will help a lot of neovim users that we want to use this player embed. Here's a screenshot. I'm thinking in write an article teaching how to use `spotify-player` embed in neovim. **Screenshot:** <img width="1440" alt="Screenshot 1" src="https://github.com/aome510/spotify-player/assets/45423661/bf688fb1-3b8a-4295-92f9-c603b22e2d2a"> Here an embed terminal with customized border color (really nice looking): <img width="1440" alt="Screenshot" src="https://github.com/aome510/spotify-player/assets/45423661/c0c8784b-f2b1-42ad-bfa1-a21d9d413157"> Hope you can take this request 🙏🏻
kerem 2026-03-14 13:27:18 +03:00
Author
Owner

@aome510 commented on GitHub (Dec 9, 2023):

spotify_player already supports configuring border component style as described in https://github.com/aome510/spotify-player/blob/master/docs/config.md#component-styles.

The format for custom RGB color is quite awkward to use right now: fg = { Rgb = { r = ..., g = ..., b = ... } }, which I'll update in a future release.

For your use case, you can add a new theme in theme.toml config file based on the default theme and modify the border component style as follows (#ff44cc -> RGB(255, 68, 204))

[[themes]]
name = "test"
[themes.component_style]
border = { fg = { Rgb = { r = 255, g = 68, b = 204 } } }
<!-- gh-comment-id:1848198966 --> @aome510 commented on GitHub (Dec 9, 2023): `spotify_player` already supports configuring `border` component style as described in https://github.com/aome510/spotify-player/blob/master/docs/config.md#component-styles. The format for custom RGB color is quite awkward to use right now: `fg = { Rgb = { r = ..., g = ..., b = ... } }`, which I'll update in a future release. For your use case, you can add a new theme in `theme.toml` config file based on the `default` theme and modify the `border` component style as follows (`#ff44cc -> RGB(255, 68, 204)`) ```toml [[themes]] name = "test" [themes.component_style] border = { fg = { Rgb = { r = 255, g = 68, b = 204 } } } ```
Author
Owner

@aome510 commented on GitHub (Dec 9, 2023):

The format for custom RGB color is quite awkward to use right now: fg = { Rgb = { r = ..., g = ..., b = ... } }, which I'll update in a future release.

Update: for v0.16.1 onwards, you can use the hex string to configure component style's color

[[themes]]
name = "test"
[themes.component_style]
border = { fg = "#ff44cc" }
<!-- gh-comment-id:1848297248 --> @aome510 commented on GitHub (Dec 9, 2023): > The format for custom RGB color is quite awkward to use right now: fg = { Rgb = { r = ..., g = ..., b = ... } }, which I'll update in a future release. **Update**: for `v0.16.1` onwards, you can use the hex string to configure component style's color ```toml [[themes]] name = "test" [themes.component_style] border = { fg = "#ff44cc" } ```
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#1101
No description provided.