Giter Club home page Giter Club logo

Comments (12)

kaidev0711 avatar kaidev0711 commented on September 22, 2024 3

I had the same problem so I went back to lazygit :)

from gitui.

extrawurst avatar extrawurst commented on September 22, 2024 2

Unfortunately the Rgb notation for colors seems to have vanished from ratatui parsing colors, the way to achieve the same result now requires specifying colors in hex format #00ff00, sorry for the inconvenience. The upcoming PR #2243 will clarify this and 0.26.3 will mark this as a breaking change with a few examples

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024 1

AH, no, sorry, try just putting "" around it, if it doesn't work, just use google to convert to rgb HEX, that's what worked for me

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024

Thats the version brew installs, but even when moving to stable and installing with cargo install, it will give the same error

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024

Going back to gitui 0.26.1 fixes the issue

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024

Also it seems that inside nvim it simply ignores the theme.ron file and uses whatever nvim theme is currently applied, Idk if this is a misconfig on my side tho, but as far as I understand, calling gitui inside nvim or directly in terminal shouldnt change the theme (no alias or nothing with -t option configured)

from gitui.

extrawurst avatar extrawurst commented on September 22, 2024

some upstream crate changed the way Colors are serialized. thanks for reporting

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024

No problem! And thanks a lot for such great utility tool

from gitui.

shagohead avatar shagohead commented on September 22, 2024

Can you figure out how to set indexed colors now?

from gitui.

Alt-iOS avatar Alt-iOS commented on September 22, 2024

yes, like this

(
    selected_tab: Some("Reset"),
    command_fg: Some("#4c4f69"),
    selection_bg: Some("#acb0be"),
    selection_fg: Some("#4c4f69"),
    cmdbar_bg: Some("#e6e9ef"),
    cmdbar_extra_lines_bg: Some("#e6e9ef"),
    disabled_fg: Some("#4c4f69"),
    diff_line_add: Some("#40a02b"),
    diff_line_delete: Some("#d20f39"),
    diff_file_added: Some("#df8e1d"),
    diff_file_removed: Some("#e64553"),
    diff_file_moved: Some("#8839ef"),
    diff_file_modified: Some("#fe640b"),
    commit_hash: Some("#7287fd"),
    commit_time: Some("#5c5f77"),
    commit_author: Some("#209fb5"),
    danger_fg: Some("#d20f39"),
    push_gauge_bg: Some("#1e66f5"),
    push_gauge_fg: Some("#eff1f5"),
    tag_fg: Some("#dc8a78"),
    branch_fg: Some("#179399")
)

from gitui.

shagohead avatar shagohead commented on September 22, 2024

No, i mean indexed, which can be referenced by numbers from ANSI color table. It used to be like that: Indexed(18) (https://docs.rs/tui/0.12.0/tui/style/enum.Color.html)

from gitui.

shagohead avatar shagohead commented on September 22, 2024

AH, no, sorry, try just putting "" around it, if it doesn't work, just use google to convert to rgb HEX, that's what worked for me

Surrounding with quotes works. Thank you. It was silly not to try

from gitui.

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.