snaplist: display starred indication (✪) in orange
Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
parent
cad618d91a
commit
37de61f245
|
@ -200,7 +200,7 @@ class SnapInfoView(WidgetWrap):
|
|||
publisher.append(" ")
|
||||
publisher.extend(check_mark())
|
||||
elif snap.starred:
|
||||
publisher.append(' \N{circled white star}')
|
||||
publisher.append(('starred', ' \N{circled white star}'))
|
||||
|
||||
title = Columns([
|
||||
Text(snap.name),
|
||||
|
@ -455,7 +455,7 @@ class SnapListView(BaseView):
|
|||
if snap.verified:
|
||||
publisher.extend(check_mark())
|
||||
elif snap.starred:
|
||||
publisher.append('\N{circled white star}')
|
||||
publisher.append(('starred', '\N{circled white star}'))
|
||||
row = [
|
||||
box,
|
||||
Text(publisher),
|
||||
|
@ -468,7 +468,8 @@ class SnapListView(BaseView):
|
|||
{
|
||||
None: 'menu_button focus',
|
||||
'verified': 'verified focus',
|
||||
'verified invisible': 'verified inv focus'
|
||||
'verified invisible': 'verified inv focus',
|
||||
'starred': 'starred focus',
|
||||
},
|
||||
))
|
||||
table = NoTabCyclingTableListBox(
|
||||
|
|
|
@ -68,6 +68,9 @@ PALETTE_COLOR = [
|
|||
('verified focus', 'good', 'gray'),
|
||||
('verified invisible', 'bg', 'bg'),
|
||||
('verified inv focus', 'gray', 'gray'),
|
||||
|
||||
('starred', 'orange', 'bg'),
|
||||
('starred focus', 'orange', 'gray'),
|
||||
]
|
||||
|
||||
PALETTE_MONO = [
|
||||
|
@ -104,6 +107,9 @@ PALETTE_MONO = [
|
|||
('verified focus', 'black', 'white'),
|
||||
('verified invisible', 'white', 'black'),
|
||||
('verified inv focus', 'black', 'white'),
|
||||
|
||||
('starred', 'white', 'black'),
|
||||
('starred focus', 'black', 'white'),
|
||||
]
|
||||
|
||||
urwid_8_names = (
|
||||
|
|
Loading…
Reference in New Issue