[GH-ISSUE #177] Example of using Rgb in theme? #87

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

Originally created by @Diaoul on GitHub (Apr 2, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/177

Describe the bug
I cannot get the right TOML to have the RGB struct unpack the actual value I'd like to use.

To Reproduce

[themes.component_style]
playback_album = { fg = {r = 214, g = 93, b = 13} }
❯ spotify_player
Error: TOML parse error at line 28, column 25
   |
28 | playback_album = { fg = {r = 214, g = 93, b = 13} }
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^
wanted exactly 1 element, more than 1 element

Expected behavior
I can specify the RGB code in that format, or even better, use the hex code

Environment

  • OS: Arch
  • Application version: 0.13.1
Originally created by @Diaoul on GitHub (Apr 2, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/177 **Describe the bug** I cannot get the right TOML to have the RGB struct unpack the actual value I'd like to use. **To Reproduce** ```toml [themes.component_style] playback_album = { fg = {r = 214, g = 93, b = 13} } ``` ``` ❯ spotify_player Error: TOML parse error at line 28, column 25 | 28 | playback_album = { fg = {r = 214, g = 93, b = 13} } | ^^^^^^^^^^^^^^^^^^^^^^^^^ wanted exactly 1 element, more than 1 element ``` **Expected behavior** I can specify the RGB code in that format, or even better, use the hex code **Environment** - OS: Arch - Application version: 0.13.1
kerem 2026-03-02 23:44:23 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Apr 2, 2023):

The format is: fg = { Rgb { r = ..., g = ..., b = ... } }. Reference: https://github.com/aome510/spotify-player/blob/master/docs/config.md#component-styles

<!-- gh-comment-id:1493368847 --> @aome510 commented on GitHub (Apr 2, 2023): The format is: `fg = { Rgb { r = ..., g = ..., b = ... } }`. Reference: https://github.com/aome510/spotify-player/blob/master/docs/config.md#component-styles
Author
Owner

@Diaoul commented on GitHub (Apr 3, 2023):

Ah! Sorry I missed that 🤦 Weird it did not come up in the GitHub search 🤔
Might be worth putting in the examples file for future guys like me

<!-- gh-comment-id:1493739125 --> @Diaoul commented on GitHub (Apr 3, 2023): Ah! Sorry I missed that :facepalm: Weird it did not come up in the GitHub search :thinking: Might be worth putting in the examples file for future guys like me
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#87
No description provided.