-
Notifications
You must be signed in to change notification settings - Fork 36
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
sncli colors not working correctly #113
Comments
@drewauff sncli uses urwid - see http://urwid.org/reference/constants.html#standard-background-and-foreground-colors for the names of the supported colours. There is also this page which lists more colour options: http://urwid.org/manual/displayattributes.html#standard-foreground-colors I'm not sure which will be supported based on how the colours are used, but you're welcome to experiment. Btw the error you're getting ( |
changing gray to light gray got it to load, but im still stuck default colors — nothing changed? |
@drewauff please post your .snclirc file (obviously with credentials removed), and I'll be happy to take a look. |
sorry about the delay, but here it is...
|
@drewauff hmm there may be more you need to override - see the full list with defaults below: sncli/simplenote_cli/config.py Lines 79 to 122 in 2eeee22
For example, |
@drewauff by the way, you can see the current configuration by hitting |
hmmm, I only put the ones I needed to change. So, I have to include al of them in the Ok thanks for tip. |
@drewauff well you'll need to include all that you want to change from the default. In your case, if you want monochrome, yeah you'll probably need to change all of them. |
Ok, thanks..Ill give it go 👍🏽 |
nope same error even though "Gray" is not being used anywhere at all. note: There is |
Decided I want to change the colours to a monochrome style. Does not working. There is not a single colour in my .snclirc, only white, grey a black.
sncli insists on using the default colors.
the error message:
Traceback (most recent call last): File "/usr/local/bin/sncli", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/site-packages/simplenote_cli/sncli.py", line 1356, in main sncli(sync, verbose, config).gui(key) File "/usr/local/lib/python3.9/site-packages/simplenote_cli/sncli.py", line 1052, in gui self.sncli_loop = urwid.MainLoop(self.master_frame, File "/usr/local/lib/python3.9/site-packages/urwid/main_loop.py", line 118, in __init__ screen.register_palette(palette) File "/usr/local/lib/python3.9/site-packages/urwid/display_common.py", line 856, in register_palette self.register_palette_entry(*item) File "/usr/local/lib/python3.9/site-packages/urwid/display_common.py", line 923, in register_palette_entry basic = AttrSpec(foreground, background, 16) File "/usr/local/lib/python3.9/site-packages/urwid/display_common.py", line 537, in __init__ self.foreground = fg File "/usr/local/lib/python3.9/site-packages/urwid/display_common.py", line 637, in _set_foreground raise AttrSpecError(("Unrecognised color specification %s " + urwid.display_common.AttrSpecError: Unrecognised color specification 'gray' in foreground ('gray')
The text was updated successfully, but these errors were encountered: