Skip to content

Commit d981f1f

Browse files
authored
fix(tree): now passes selectFg and selectBg options in tree, to list. (#196)
1 parent 2ea98c6 commit d981f1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/widget/tree.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function Tree(options) {
3939
ignoreKeys: options.ignoreKeys,
4040
scrollable: options.scrollable,
4141
mouse: options.mouse,
42-
selectedBg: 'blue',
42+
selectedBg: options.selectedBg || 'blue',
43+
selectedFg: options.selectedFg || 'black',
4344
});
4445

4546
this.append(this.rows);

0 commit comments

Comments
 (0)