Skip to content

Commit

Permalink
[guides-] give guides the same background colour as sidebar
Browse files Browse the repository at this point in the history
Finding formatting colours that are visible on both styles of background
of the sidebar and guides
has been challenging. This is the approach of consolidating them to the
same colour.
  • Loading branch information
anjakefala committed Jul 22, 2024
1 parent 03420e1 commit f34eee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion visidata/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import re

from visidata import vd, BaseSheet, Sheet, ItemColumn, Column, VisiData, ENTER, RowColorizer, AttrDict, MissingAttrFormatter
from visidata import wraptext, Path
from visidata import wraptext, Path, CellColorizer

guides_list = '''
GuideIndex ("A Guide to VisiData Guides (you are here)")
Expand Down Expand Up @@ -160,6 +160,7 @@ class GuideSheet(Sheet):
ItemColumn('guide', 1, width=80, displayer='full'),
]
precious = False
colorizers = [CellColorizer(4, 'color_sidebar', lambda s,c,r,v: True)]

def iterload(self):
self.metadata = AttrDict(sheettype='Sheet')
Expand Down

0 comments on commit f34eee2

Please sign in to comment.