Giter Club home page Giter Club logo

Comments (5)

sainnhe avatar sainnhe commented on July 18, 2024 1

Honestly this is not an issue of this color scheme, it's an issue of lazygit itself. For no reason it should use a white foreground because the program does not know if a terminal emulator color scheme is light or dark.

I can't make more compromise, because some other programs might use white as background, in that case bg_grey will be too dark.

Fixed in a0d7069

from edge.

sainnhe avatar sainnhe commented on July 18, 2024

What about this patch?

diff --git a/colors/edge.vim b/colors/edge.vim
index 57b712e..4d6cf4c 100644
--- a/colors/edge.vim
+++ b/colors/edge.vim
@@ -328,14 +328,14 @@ endif
 if ((has('termguicolors') && &termguicolors) || has('gui_running')) && !s:configuration.disable_terminal_colors
   " Definition
   let s:terminal = {
-        \ 'black':    &background ==# 'dark' ? s:palette.bg0 : s:palette.fg,
+        \ 'black':    &background ==# 'dark' ? s:palette.bg3 : s:palette.fg,
         \ 'red':      s:palette.red,
         \ 'yellow':   s:palette.yellow,
         \ 'green':    s:palette.green,
         \ 'cyan':     s:palette.cyan,
         \ 'blue':     s:palette.blue,
         \ 'purple':   s:palette.purple,
-        \ 'white':    &background ==# 'dark' ? s:palette.fg : s:palette.bg0
+        \ 'white':    &background ==# 'dark' ? s:palette.fg : s:palette.bg3
         \ }
   " Implementation: {{{
   if !has('nvim')

Save the text as patch.diff and execute git apply patch.diff in the root directory of edge color scheme.

from edge.

IcarusSosie avatar IcarusSosie commented on July 18, 2024

Hi !

Thanks for answering so quick 😄

It does work in making the text readable but the contrast is very low, it is kinda taxing on the eyes. bg_grey seems like the most readable to me. bg_grey is the color used for the foreground text in the second screenshot in my original post. I think grey_dim would probably also work and heighten the contrast between background and foreground a bit.

from edge.

IcarusSosie avatar IcarusSosie commented on July 18, 2024

Oh wow, I had not even considered lazygit being the issue.

I looked into it and it does seems to support configuration options for a light theme, as seen here.

So sorry for wasting you time, I'm not even sure a0d7069 is actually needed now 😕

from edge.

sainnhe avatar sainnhe commented on July 18, 2024

So sorry for wasting you time, I'm not even sure a0d7069 is actually needed now 😕

It is necessary indeed, some programs directly use white as foreground color and may not support light mode.

from edge.

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.