mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Fix setting gui.selectedRangeBgColor as a hex value
This commit is contained in:
@ -37,21 +37,13 @@ func TestGetTextStyle(t *testing.T) {
|
||||
name: "hex color, fg",
|
||||
keys: []string{"#123456"},
|
||||
background: false,
|
||||
/* EXPECTED:
|
||||
expected: style.New().SetFg(style.NewRGBColor(color.RGBColor{0x12, 0x34, 0x56, 0})),
|
||||
ACTUAL:
|
||||
*/
|
||||
expected: style.New(),
|
||||
},
|
||||
{
|
||||
name: "hex color, bg",
|
||||
keys: []string{"#abcdef"},
|
||||
background: true,
|
||||
/* EXPECTED:
|
||||
expected: style.New().SetBg(style.NewRGBColor(color.RGBColor{0xab, 0xcd, 0xef, 1})),
|
||||
ACTUAL:
|
||||
*/
|
||||
expected: style.New(),
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user