-
Notifications
You must be signed in to change notification settings - Fork 445
Description
Hi! Thanks for this tool, I love it.
When I ran delta --list-themes for the first time I was pleasantly surprised β I expected a list of theme names to be printed, but you also get an example of each theme. Very helpful!
When scrolling somewhere in the middle, though, itβs hard to know which theme is which:
println!("The square of {:.2} is {:.2}.", num, result);
// Output the cube of a number.
fn print_cube(num: f64) {
let result = f64::powf(num, 3.0);
println!("The cube of {:.2} is {:.2}.", num, result);
}
Theme: TwoDark
example.rs
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
// Output the cube of a number.
fn print_cube(num: f64) {
let result = f64::powf(num, 3.0);
println!("The cube of {:.2} is {:.2}.", num, result);
}
Theme: ansi-dark
example.rs
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
// Output the cube of a number.
fn print_cube(num: f64) {
let result = f64::powf(num, 3.0);
println!("The cube of {:.2} is {:.2}.", num, result);
}
Theme: ansi-light
example.rs
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1
// Output the square of a number.
fn print_square(num: f64) {
let result = f64::powf(num, 2.0);
println!("The square of {:.2} is {:.2}.", num, result);
In the above example, it looks like we first see a bit of βTwoDarkβ, then βansi-darkβ, then βansi-lightβ and a little bit of yet another theme. But thatβs not the case! Iβm off-by-one! Weβre actually seeing a little bit of some theme, then βTwoDarkβ, then βansi-darkβ and finally a bit of βansi-lightβ.
I think the confusion comes from the long ββββββββ lines combined with Theme: name being positioned closer to the previous theme than the theme it belongs to, almost like an image caption.
Ideas:
- At least put
Theme: namecloser to the theme it belongs to than other themes. - Show
nameinstead ofexample.rs? - Put the theme after the example (as an βimage captionβ) like my brain interprets the current design?
Btw, is there a theme with 0 green and red in it? I get confused sometimes about what is inserted/deleted and what is just syntax highlighted.