Skip to main content

[BUG?] Odd editor coloring changes

Completed

Comments

9 comments

  • Fletcher Penney

    1. What theme are you using?  The colors don't seem to match the built-in themes.  Is it custom?

     

    2. Super tightly cropped images are actually not as helpful as a wider view.  It's impossible to tell what's going on with the syntax and window.  A larger image would be more useful to try and see what's going on.

     

    3. How did you take the image?  The image has "mottling" near the bottom, which I am guessing is a compression artifact.  But again, it makes it hard to try and interpret the image.

    0
  • Williper Larnloge

    1. Yep. Custom.

    2. Ok. If I experience it again, I'll take a larger image.

    3. Shift-Command-4. That mottling near the bottom is in the area with the different color. It's difficult to see, but noticeable when typing.

    0
  • Fletcher Penney

    Can you send me your theme so I can take a look?

    0
  • Williper Larnloge

    Sure. See below. If you want the actual file, I'll need to know how to transmit to you as zendesk is only allowing images.

    {
    "backgroundColor" : "122000",
    "foregroundColor" : "999E86",
    "sidebarBackgroundColor" : "1E1E1E",
    "sidebarTextColor" : "839496",
    "sidebarTextColorHighlighted" : "839496",
    "sidebarTextColorHighlightedInactive" : "839496",
    "sidebarHighlightColor" : "BBA767",
    "sidebarHighlightColorInactive" : "cacaca",
    "windowBackgroundColor" : "1E1E1E",
    "searchfieldBackgroundColor" : "1E1E1E",
    "searchfieldTextColor" : "839496",
    "caretColor" : "859496",
    "selectionColor" : "83949699",
    "strong" : {
    "bold" : 1
    },
    "emphasis" : {
    "backgroundColor" : "491E0A"
    },
    "superscript" : {
    "superscript" : 1
    },
    "subscript" : {
    "superscript" : -1
    },
    "criticAddition" : {
    "foregroundColor" : "2aa198"
    },
    "criticDeletion" : {
    "foregroundColor" : "3D3700"
    },
    "criticSubstitution" : {
    "foregroundColor" : "cb4b16"
    },
    "criticHighlight" : {
    "backgroundColor" : "491E0A"
    },
    "criticComment" : {
    "foregroundColor" : "6E577D"
    },
    "blockquote" : {
    "foregroundColor" : "BBA767",
    "italic" : 1,
    "leftIndent" : 30.0,
    "rightIndent" : 30.0
    },
    "codeBlock" : {
    "fontName" : "Courier",
    "fontScale" : 0.92,
    "foregroundColor" : "2aa198",
    "backgroundColor" : "073642"
    },
    "codeSpan" : {
    "fontName" : "Courier",
    "fontScale" : 0.92,
    "foregroundColor" : "2aa198",
    "backgroundColor" : "073642",
    "mono" : 1
    },
    "heading" : {
    "foregroundColor" : "999E86",
    "backgroundColor" : "243112"
    },
    "math" : {
    "foregroundColor" : "cb4b16"
    },
    "metadata" : {
    "foregroundColor" : "586e75",
    "fontName": "Courier",
    "fontScale": 0.92
    },
    "table" : {
    "backgroundColor" : "073642"
    },
    "bulletList": {
    "leftIndent": 30.0
    },
    "pairs_disabled" : {
    "foregroundColor" : "40607F"
    },
    "angles" : {
    "foregroundColor" : "268bd2"
    },
    "braces" : {
    "foregroundColor" : "268bd2"
    },
    "brackets" : {
    "foregroundColor" : "268bd2"
    },
    "quoteDouble" : {
    "foregroundColor" : "A087D0"
    },
    "quoteSingle" : {
    "foregroundColor" : "586e75"
    },
    "abbreviation" : {
    "foregroundColor" : "b58900"
    },
    "definitionAbbreviation" : {
    "foregroundColor" : "b58900"
    },
    "citation" : {
    "foregroundColor" : "d33682"
    },
    "definitionCitation" : {
    "foregroundColor" : "d33682"
    },
    "footnote" : {
    "foregroundColor" : "2aa198"
    },
    "definitionFootnote" : {
    "foregroundColor" : "2aa198"
    },
    "glossary" : {
    "foregroundColor" : "dc322f"
    },
    "definitionGlossary" : {
    "foregroundColor" : "dc322f"
    },
    "image" : {
    "foregroundColor" : "cb4b16"
    },
    "definitionLink" : {
    "foregroundColor" : "268bd2"
    },
    "variable" : {
    "foregroundColor" : "859900"
    },
    "markup" : {
    "foregroundColor" : "586e75"
    }
    }

    0
  • Fletcher Penney

    I see a slight difference in color where the info bar is at the bottom, but don't see anything otherwise.

     

    You use an alpha on `selectionColor` which might cause some trouble???  You could try changing that to an equivalent solid color?

    0
  • Williper Larnloge

    Ok, I'll give that a try.

    Do you like the theme?

    0
  • Fletcher Penney

    The important thing is whether you like the theme.  To my eyes the colors don't quite fit well together, but that's my personal opinion.  Others may love it!

     

    But I am intrigued if it is not working for you.  (There are a few tweaks, but fundamentally the themes work the same way as MultiMarkdown Composer which has been using this for several years.  I haven't seen the issues you describe, nor heard of them from others.)

    0
  • Williper Larnloge

    I haven't noticed the issue again, although code blocks do appear to have issues with breaks in the coloring. It varies based on the zoom level, and in fact disappears for most zoom levels, but sometimes the coloring breaks.

    0
  • Fletcher Penney

    Yeah.  To my best guess, I wonder if it's related to rounding off partial pixels (e.g. on some zoom levels with some fonts, the top line finishes at pixel 100.4 (rounding down to 100), and the next line starts at 100.6 (rounding up to 101)???

     

    That's not a very satisfactory answer to me, but the best I've come up with so far.

     

    The problem with just adding a pixel of padding on either side is that then the various lines overlap each other, leading to a different visual artifact.

     

    It might just be that background colors are best left to single line elements, rather than things like code blocks.

     

    Or stick to 100% zoom.

    0

Please sign in to leave a comment.

Powered by Zendesk