Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Revise highlight logic to be simpler and obey user settings #729
Conversation
|
Sorry for the delay, I've been away. master table: I think the final row's results are wrong: the code will set both the foreground and the background regardless of pr 729 table: as far as I can tell your PR doesn't use the
You are right and when you put it like this, it sounds confusing ;) Two assumptions I never wrote down were:
I think this is subjective. It certainly isn't necessary for the plugin to adjust the signs' background colours automatically and it makes the code more complicated. However, when changing colorschemes, I think it is helpful for the plugin to adjust the signs' backgrounds automatically to match the new sign column colour (admittedly only necessary if the user has defined Having said all that, your final table looks ideal to me and I think we should make the plugin do that. |
I still think there's some inconsistency in this highlight logic that needs to be resolved. Here's a matrix of behaviors when different settings are set by the user:
master
pr 729
In
master, there are two scenarios whereset_sign_bgis0and the background still gets set by the plugin.Is this plugin trying to do too much for the user? Should it maybe just do:
and if the user is setting colors themselves, then they can just take care of it on their own? Otherwise, I feel like this is the behavior we should maybe be seeing: