krzysztofzablocki / LinkedConsole

Clickable links in your Xcode console, so you never wonder which class logged the message.
http://merowing.info
MIT License
931 stars 63 forks source link

Automatic Background Color #9

Closed skreutzberger closed 8 years ago

skreutzberger commented 8 years ago

Hi, can you auto-detect the Xcode background color and if it is dark then maybe use a bright font color and if it bright then use blue font?

Or maybe even much simpler: Can you use the currently used console font but just make the link underlined? I think that should be enough to make the link stand out and visible. Because if you add a background color and text color then it really looks messy for users with custom themes.

For example, here is my Xcode console:

colorscreen
krzysztofzablocki commented 8 years ago

I have dark theme, that's why I added the background white color, because to be able to change color of a link would require to change it on the whole console NSTextView as far as I'm aware

skreutzberger commented 8 years ago

Can you detect the standard foreground and background color of "normal" text and then just set the link in that color?

I am not an Objective-C expert (even not a beginner ...) but maybe these links could help you? http://stackoverflow.com/questions/17262251/nstextview-custom-link-color-for-range http://shapeof.com/archives/2010/12/customizing_links_in_an_nstextview.html http://jaanus.com/how-to-easily-present-strings-with-bold-text-and-links-in-cocoa/

skreutzberger commented 8 years ago

Or is that color an Xcode theme setting somewhere? I can’t find it :(

krzysztofzablocki commented 8 years ago

@skreutzberger just update to new version, it will keep your theme styling now, and thanks for asking about it :+1: looks better

skreutzberger commented 8 years ago

perfect, I'm glad to help :)