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.append(" ")
|
||||||
publisher.extend(check_mark())
|
publisher.extend(check_mark())
|
||||||
elif snap.starred:
|
elif snap.starred:
|
||||||
publisher.append(' \N{circled white star}')
|
publisher.append(('starred', ' \N{circled white star}'))
|
||||||
|
|
||||||
title = Columns([
|
title = Columns([
|
||||||
Text(snap.name),
|
Text(snap.name),
|
||||||
|
@ -455,7 +455,7 @@ class SnapListView(BaseView):
|
||||||
if snap.verified:
|
if snap.verified:
|
||||||
publisher.extend(check_mark())
|
publisher.extend(check_mark())
|
||||||
elif snap.starred:
|
elif snap.starred:
|
||||||
publisher.append('\N{circled white star}')
|
publisher.append(('starred', '\N{circled white star}'))
|
||||||
row = [
|
row = [
|
||||||
box,
|
box,
|
||||||
Text(publisher),
|
Text(publisher),
|
||||||
|
@ -468,7 +468,8 @@ class SnapListView(BaseView):
|
||||||
{
|
{
|
||||||
None: 'menu_button focus',
|
None: 'menu_button focus',
|
||||||
'verified': 'verified focus',
|
'verified': 'verified focus',
|
||||||
'verified invisible': 'verified inv focus'
|
'verified invisible': 'verified inv focus',
|
||||||
|
'starred': 'starred focus',
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
table = NoTabCyclingTableListBox(
|
table = NoTabCyclingTableListBox(
|
||||||
|
|
|
@ -68,6 +68,9 @@ PALETTE_COLOR = [
|
||||||
('verified focus', 'good', 'gray'),
|
('verified focus', 'good', 'gray'),
|
||||||
('verified invisible', 'bg', 'bg'),
|
('verified invisible', 'bg', 'bg'),
|
||||||
('verified inv focus', 'gray', 'gray'),
|
('verified inv focus', 'gray', 'gray'),
|
||||||
|
|
||||||
|
('starred', 'orange', 'bg'),
|
||||||
|
('starred focus', 'orange', 'gray'),
|
||||||
]
|
]
|
||||||
|
|
||||||
PALETTE_MONO = [
|
PALETTE_MONO = [
|
||||||
|
@ -104,6 +107,9 @@ PALETTE_MONO = [
|
||||||
('verified focus', 'black', 'white'),
|
('verified focus', 'black', 'white'),
|
||||||
('verified invisible', 'white', 'black'),
|
('verified invisible', 'white', 'black'),
|
||||||
('verified inv focus', 'black', 'white'),
|
('verified inv focus', 'black', 'white'),
|
||||||
|
|
||||||
|
('starred', 'white', 'black'),
|
||||||
|
('starred focus', 'black', 'white'),
|
||||||
]
|
]
|
||||||
|
|
||||||
urwid_8_names = (
|
urwid_8_names = (
|
||||||
|
|
Loading…
Reference in New Issue