Code Monkey home page Code Monkey logo

Comments (6)

relastle avatar relastle commented on May 22, 2024 1

@ms-jpq

Thank you for the response.

termguicolors notermguicolors ls -alh
image image image

Although the color was rendered in termguicolors, the color seems different from that in notermguicolors and in ls -alh.

from chadtree.

ms-jpq avatar ms-jpq commented on May 22, 2024 1

I can't do too much about the display being different, thats a Vim issue, so I did the next best thing.

I added ability to use custom hexcodes in mapping 8bit to 24bit colours.

I can technically try using raw escape codes, but im 99% sure it would run into edge cases for at least a few terminal programs, so thats a bad idea.

The section of how to customize is here in the README

from chadtree.

ms-jpq avatar ms-jpq commented on May 22, 2024

I think I fixed it,

can you try now?

fd3672a

from chadtree.

grem11n avatar grem11n commented on May 22, 2024

I had the same problem and I can confirm that this issue is resolved in the recent chad branch. I'm on b0ddcfbe4a2b3225abf30332a3a4ea19a72aabb3

from chadtree.

relastle avatar relastle commented on May 22, 2024

@ms-jpq

Thank you for providing global variable for customization.

By making 24-bit colors compatible to my own terminal ANSI color, the problem was solved easily.

let g:chadtree_colours = {
      \ "8_bit": {
      \   "Black":         { "hl24": "#07242c", "hl8": "Black"},
      \   "Red":           { "hl24": "#fc6195", "hl8": "DarkRed" },
      \   "Green":         { "hl24": "#5AC6A1", "hl8": "DarkGreen" },
      \   "Yellow":        { "hl24": "#fff1ac", "hl8": "DarkYellow" },
      \   "Blue":          { "hl24": "#296873", "hl8": "DarkBlue" },
      \   "Magenta":       { "hl24": "#85919b", "hl8": "DarkMagenta" },
      \   "Cyan":          { "hl24": "#04a7a7", "hl8": "DarkCyan" },
      \   "White":         { "hl24": "#c4c7c7", "hl8": "LightGray" },
      \   "BrightBlack":   { "hl24": "#142c35", "hl8": "Grey" },
      \   "BrightRed":     { "hl24": "#fc81a5", "hl8": "LightRed" },
      \   "BrightGreen":   { "hl24": "#233439", "hl8": "LightGreen" },
      \   "BrightYellow":  { "hl24": "#DF7353", "hl8": "LightYellow" },
      \   "BrightBlue":    { "hl24": "#6FaEaF", "hl8": "LightBlue" },
      \   "BrightMagenta": { "hl24": "#364f6b", "hl8": "LightMagenta" },
      \   "BrightCyan":    { "hl24": "#94e7e7", "hl8": "LightCyan" },
      \   "BrightWhite":   { "hl24": "#dafafc", "hl8": "White" },
      \ }}

from chadtree.

ms-jpq avatar ms-jpq commented on May 22, 2024

so if you are leaving hl8 the same, you can actually leave it out of the dictionary:)

from chadtree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.