Sublime Forum

ColorHelper 2.0.0

#53

I am very excited. I do plan on looking into this more. This will be so much faster the day I can use mainly CSS.

1 Like

#54

This is all available already. The document links to the actual CSS files so you can see all the selectors. With that said, today I have stripped things down considerably. Basic formatting and very minimal colors. If you are using ST 3119+, it won’t even define any colors as it is assumed Sublime will auto-gen them or the theme is providing them. I think it still provides pre and code background colors if you use mdpopups syntax highlighting.

By creating a mdpopups.css in your user folder, mdpopups will use that CSS instead of its default CSS it uses for superficial styling. The base formatting will still be applied but can be overridden directly in mdpopups.css. This already exists in current versions and is documented.

You can also turn off the base formatting entirely by adding mdpopups.default_formatting to your Preferences.sublime-settings file and setting it to False. Be aware that any special formatting that Sublime isn’t already doing is wiped away by doing this. This will be in the new version coming soon.

Anyways, I will probably release the new version tomorrow.

0 Likes

#55

Is this CH or Material? (Both the position and the width are a little weird)

I’m using windows 10, ST 3120, CH 2.0.4, Material 3.0.4

The screenshot the author of Material theme posted looks very nice:

0 Likes

#56

I think it is something specific with your setup. I would need you to post support info. I would also need you to confirm you are using his color scheme and whether you are on his latest. Also, I would need you to confirm you are or are not overriding any of mdpopups CSS in mdpopups.css.

What I find weird is your images look squished, and I render them square, so idk. I just installed his Theme and mine looked fine when I tried it.

0 Likes

#57

Very interesting… I just downloaded a portable version of Sublime and installed the two packages. And the phantom looks exactly like what I had in my own screenshot. I’m on Windows 10 with a UHD screen, could that be the reason? @jps

0 Likes

#58

Maybe try playing with the inline_preview_offset setting.

0 Likes

#59

with inline_preview_offset: -15

with inline_prever_offset: 15

extreme cases, but… there always is the gap thingy below the color tile, weird.

0 Likes

#60

Make sure you have the latest mdpopups and ColorHelper. Check that you don’t have a mdpopups.css in your user folder overriding stuff. double check the CSS in your color scheme. I don’t generate the images with padding. I don’t style them with any padding in the most recent versions of things.

Maybe Sublime is doing with things if everything else checks out. I do see occasional image glitches.

0 Likes

#61

I think I’m pretty sure that’s not CH’s fault now. I remember that when CH 2 was first released, when the color tile was placed on the right of the color text, the tile was a perfect square. I just tried cloning the repo and going through 2.0.0 - 2.0.4, none of them give me perfect square anymore.

I then tried the default monokai color scheme:


So it’s not just material theme either.

BTW the phantom with the default monokai color scheme looks especially weird, so I tried another one:

I guess something in 3120 or 3119 broke it for me.

0 Likes

#62

Try changing your font size. I’ve seen images look funny at certain font sizes, but then fine at others.

0 Likes

#63

Nah, didn’t do the trick :cry:

0 Likes

#64

what about trying the default theme as well? :slight_smile:

0 Likes

#65

Doesn’t seem to make a difference… sigh

Anyway:

0 Likes

#66

@prmaple, I don’t think you are alone. I have brought this to @wbond attention yesterday that sometimes images in phantoms and popups get clipped or distorted. I noticed this in recent builds, but putting together a case that is reproducible on multiple machines is hard. I am seeing slight issue clipping in ScopeHunter on one of my machines, but not the other. I have had someone report they were seeing issues in ColorHelper on the first instance of inline images, but not the rest (I have not been able to reproduce that and now it has disappeared on his machine). You are having this issue, but no one else is. I do think there is something wrong, I just don’t know how to make it reproducible and prove it.

0 Likes

#67

Just tested on my old laptop, same situation.

Again posting my spec:
Both machines are on Windows 10, one with UHD screen, the old one 3200x1800.
Sublime 3120, ColorHelper 2.0.4
The situation happens on all color schemes I’ve used.
I’ve also tried modifying the scaling factor (My normal valueis 250%), doesn’t make a difference.

0 Likes

#68

@prmaple Apparently my windows machine was not up to date and I was still on 3118. I upgraded to 3119 and now I have distorted images like you have. So this is a bug in Sublime Text.

0 Likes

#69

I meant 3120. Sublime doesn’t seem to notify people about 3120. But when I upgraded, I got the issues.

0 Likes

#70

I have the issue on 3119 as well. It is Windows specific.

0 Likes

#71

:joy: now I just need to wait for ST to fix it! Yay!

0 Likes

#72

I know. 3119 is a huge improvement in the CSS engine. It has better inheritance and such. You can actually use .class1 .class2, so you can actually use divs as wrappers for styling specific stuff. But, with so much good stuff, comes bugs. Inline background colors don’t line up right. Weird Windows image distortion etc. Despite the bugs, I am very excited about minihtml getting some love.

With all that said, it works great on my Mac, just wished it worked better on my Windows box.

0 Likes