Comments (12)
I had the same problem so I went back to lazygit :)
from gitui.
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.
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.
Thats the version brew installs, but even when moving to stable and installing with cargo install
, it will give the same error
from gitui.
Going back to gitui 0.26.1 fixes the issue
from gitui.
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.
some upstream crate changed the way Colors are serialized. thanks for reporting
from gitui.
No problem! And thanks a lot for such great utility tool
from gitui.
Can you figure out how to set indexed colors now?
from gitui.
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.
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.
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)
- Colors and Themes
- How to push/pull with a self assigned certificate? HOT 1
- [BUG]: Does not support custom git config path via GIT_CONFIG_GLOBAL HOT 4
- Installing with cargo takes forever HOT 4
- Maintain FG colour in selection
- Disable syntax highlighting
- `line_break` in `theme.ron` is interpreted incorrectly HOT 2
- Panic when starting from subfolder
- Use default shell for git-hooks instead of bash HOT 3
- Panic on request to unstage lines
- [Feature request] Add syntax highlight for diff view
- Default `--watcher` by "config ron" file
- Wrong binary size comparison in README.md HOT 1
- cargo install fails due to ratatui-version missmatch HOT 2
- When the terminal is insufficient to display all the commands, the cmdbar_bg configuration color does not fully take effect. HOT 2
- seperate stage/ustage all files keybindings HOT 4
- nightly panics when gitui opens from a repo's subdirectory, on Log tab HOT 4
- Crash on launch HOT 2
- Remotelist popup improvements HOT 1
- Refactor text overflow solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitui.