Skip to content
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

highlighting are incorrect colours #158

Closed
arogl opened this issue Aug 6, 2014 · 7 comments
Closed

highlighting are incorrect colours #158

arogl opened this issue Aug 6, 2014 · 7 comments

Comments

@arogl
Copy link

arogl commented Aug 6, 2014

Having updated to the latest version on userstyles, syntax highlighting is no longer working:

syntax

I use Wombat as the colour scheme, no background, Base color scheme: #4183C4, tab size of 4.

No other github styles,scripts or addons enabled.

Also the following link only shows highlighting where http has been changed to https:

https://github.com/echel0n/SickRage/commit/dbc30c43cb179196391ccc106d035057e25f72ad#diff-d41d8cd98f00b204e9800998ecf8427e

I am using FF31.0 on Win7_x64.

@Mottie
Copy link
Member

Mottie commented Aug 6, 2014

Hmm, that is a problem (in all browsers). I've been really busy lately, so I don't recall when/if we changed any definitions for syntax highlighting.

@thinktt
Copy link

thinktt commented Aug 6, 2014

I'm pretty sure I didn't do any updates when this started happening, and I think it was working yesterday. Could it be a github change?

I rolled back to commit c739d50 from July 19th and it didn't seem to make a difference.

That's just a random commit I rolled back to but I think it would have been noticed since then.

@Mottie
Copy link
Member

Mottie commented Aug 7, 2014

Hi @thinktt!

I think you're right, GitHub did change something... I'm seeing some new classes diff-line-code-deletion and diff-line-code-addition.

@Mottie Mottie closed this as completed in 1af3fdf Aug 7, 2014
@arogl
Copy link
Author

arogl commented Aug 7, 2014

Motti,

Thanks for the quick fix.

Andrew.

@Poorchop
Copy link
Member

Poorchop commented Aug 8, 2014

I'm not sure if this is related to the syntax highlighting, but the line numbers are messed up, and there's also the issue of individual line highlighting. I noticed that there's already a selector for .blob-line-nums and that it uses the color #444444, but I think the line numbers used to be light against a dark background. Now it looks like the line number background follows the syntax highlighting scheme, which means that line numbers are invisible with dark themes.

Also, when clicking on a line number, the GitHub's default color is used, which conflicts with some themes, as evidenced in this picture:

untitled

Unfortunately, I don't think there's any easy solution to address this, because rules would have to be created for every color scheme, and some color schemes might not have a designated color for highlighted lines.

@Mottie
Copy link
Member

Mottie commented Aug 8, 2014

@Poorchop Try that update... I know it works in Chrome, but didn't get a chance to test other browsers.

@Poorchop
Copy link
Member

Poorchop commented Aug 8, 2014

Works perfectly in Firefox @Mottie, thanks a lot.

untitled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants