mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #144] background and foreground colors in theme.rs #67
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sewnie on GitHub (Feb 22, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/144
Is your feature request related to a problem? Please describe.
i want to use the terminal's default background and foreground colors,
Describe the solution you'd like
something like
yes, i tried adding support myself, but gave up with trying to use background and foreground.
i tried this:
but the naming was awful, and i'd much prefer the
backgroundandforegroundDescribe alternatives you've considered
using
WhiteandBlack, but they did NOT fit well.Additional context
no
@aome510 commented on GitHub (Feb 22, 2023):
So you want to specify the terminal's background colors as a
StyleColor, right? I'm not too sure about your actual use cases for this. Can you provide one?Please note that if you don't specify any values for
fgandbgfields in a component style, their default values will be the terminal's background and foreground colors respectively.Edit: they are actually based on the app's background and foreground, whose default values are based on the terminal's values
@sewnie commented on GitHub (Feb 22, 2023):
i want to use the foreground and background colors??? i am forced to use
BrightWhitewhich is not a foreground color matching with my terminal, and i also want to usebackgroundfor the borders, to 'disable' them@aome510 commented on GitHub (Feb 22, 2023):
I asked this because
StyleColoris only used to specify thefgandbgfields in a component style, which should use terminal's fg and bg colors by default. So only the logical use cases are settingfgto terminal's background color and settingbgto terminal's foreground color.@sewnie commented on GitHub (Feb 22, 2023):
wdym? specifying no fg will result in an error, and giving no theme will result in the default colors.
@aome510 commented on GitHub (Feb 22, 2023):
I'm referring to
fgof a component style in here. You can see from the example that some component styles don't havefgspecified:@sewnie commented on GitHub (Feb 22, 2023):
i did notice you were right, default
fgis specified.HOWEVER,
bgis not....it is.
so it seems the only issue for me is not being able to set

bgtoborder:and also,

block_titlewill useborderas fg:@aome510 commented on GitHub (Feb 22, 2023):
gotcha, u mean setting
fgtobgforborderto disable it right? I'm afraid that it must be implemented by adding another config option. AFAIK, it's not possible rn to get the terminal's colors to update something likefg = terminal's bg.@sewnie commented on GitHub (Feb 22, 2023):
bleh
i dont want borders to be disabled, i mean:

the 'hidden' borders look very nice thats for sure
idk how they would look without, but i would definitely prefer without either way
btw, what do you think i try to make a theme that looks similar to the propietary spotify client, and have it be the default? imo i believe the default theme is a bit weird, and i think this looks amazing.
@aome510 commented on GitHub (Feb 22, 2023):
yeah, I also mean hidden borders. I'll see if
tuiallows us to customize the border's look.I like the way it is now. The theme structure is mostly configurable, so users can customize the look however they want. Making a theme like Spotify's is def fun and it can be put as one of the examples or in the README.
@aome510 commented on GitHub (Feb 22, 2023):
In the meantime, I'll close this issue for now and re-open https://github.com/aome510/spotify-player/issues/128 for border/gauge customizations.
@aome510 commented on GitHub (Feb 25, 2023):
@apprehensions no border of
tuilooks like this:The window's title and its content are not aligned.