-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Allow theme colors to be specified as integers #1903
base: master
Are you sure you want to change the base?
Conversation
Can't set myself as reviewer by a PR opened by myself.. Great. |
e0e1bff
to
97329c6
Compare
97329c6
to
ffa9073
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ul
could be renamed to something like col_value
/col_number
, but other than that LGTM.
Allow theme colors to be specified as integers. Works with both decimal & hex. Given the XXX warning, it seems reasonable to allow users to specify their theme’s colors as the base integers since the names are pretty arbitrary. We changed the variable name `ul` to `col_value` per @H3rnand3zzz suggestion.
ffa9073
to
bccfad3
Compare
done! I guess we probably should document this possibility somewhere/add an example? |
that would be great finishing touch |
toastal mentioned he later found a problem with his patch regarding background colors. I'm considering to close this PR until a new patch that is known to work correctly, or way to reproduce the issue is given. |
I had mentioned the issue. My patch only worked on background colors ( The code has an explicit block warning about problematic color names & it seems an odd limitation to make users supply strings that need to reverse lookup the matching uint8 color when the alternative of just allowing uint8 values to be put in the config instead of the strings should be a bit quicker, but also allow users to get to the colors with duplicate names. |
If anyone would like to take it over the line themselves or pairing I would assist (especially testing), but I don’t have the skill to finish this--I don’t even know how to properly debug it either… was just shooting at the wall & seeing what stuck. |
Can you just provide some steps to reproduce a problem? E.g. specific setting in theme. Once it's reproducible, it will be easy to fix. |
Here were some colors I was trying
|
A program with desired behavior, meli
https://meli-email.org/documentation.html#meli-themes.5_VALID_COLOR_VALUES I’m going to assume they chose to make modifications since there are name overlaps in the xterm names (not that the descriptions are great) |
This PR got opened by @jubalh for
toastal
who sent his patch via mailinglist and in the profanity MUC.