cview.Styles not being used
#47
Closed
opened 2 years ago by makeworld-the-better-one
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When setting
cview.Styles.PrimitiveBackgroundColor
and then later callingNewTabbedPanels()
, the background of that primitive (set inTabbedPanels.Switcher.Box
) does not appear to use the value fromcview.Styles
. This also happens withSetTabSwitcherDivider
.In an unrelated instance, the ANSI conversion injects strings like
[-:-:-]
into the output, but this will reset the background to the terminal's background instead of the app's background. Either the ANSI conversion funcs should be changed, or setting the background to-
should usecview.Styles.PrimitiveBackgroundColor
instead of the terminal's background. I believe that latter makes more sense.All these problems can be easily circumvented, through manual color setting or string replacment in the ANSI case, but it would be nice if cview handled it.
Thanks for reporting this.
Can confirm this works for me. Thanks!