sidebar: Use a symbolic icon for the library section
I was relying on the icon theme to fallback to symbolic icons when I initially wrote it. Turns out, some icon themes do provide a color icon for this, so I specifically ask for the symoblic icon for consistency. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
3c15515faf
commit
e6a219017d
|
@ -39,7 +39,7 @@ class Section(section.Section):
|
||||||
|
|
||||||
def __init__(self, table=db.libraries.Table):
|
def __init__(self, table=db.libraries.Table):
|
||||||
"""Initialize our library path section."""
|
"""Initialize our library path section."""
|
||||||
super().__init__(table, LibraryRow, icon_name="library-music",
|
super().__init__(table, LibraryRow, icon_name="library-music-symbolic",
|
||||||
title="Library Paths", subtitle="0 library paths")
|
title="Library Paths", subtitle="0 library paths")
|
||||||
self.extra_widget = Gtk.Button(icon_name="folder-new", has_frame=False,
|
self.extra_widget = Gtk.Button(icon_name="folder-new", has_frame=False,
|
||||||
tooltip_text="add new library path")
|
tooltip_text="add new library path")
|
||||||
|
|
|
@ -25,7 +25,7 @@ class TestLibraries(tests.util.TestCase):
|
||||||
emmental.sidebar.library.LibraryRow)
|
emmental.sidebar.library.LibraryRow)
|
||||||
|
|
||||||
self.assertEqual(self.libraries.table, self.sql.libraries)
|
self.assertEqual(self.libraries.table, self.sql.libraries)
|
||||||
self.assertEqual(self.libraries.icon_name, "library-music")
|
self.assertEqual(self.libraries.icon_name, "library-music-symbolic")
|
||||||
self.assertEqual(self.libraries.title, "Library Paths")
|
self.assertEqual(self.libraries.title, "Library Paths")
|
||||||
|
|
||||||
def test_extra_widget(self):
|
def test_extra_widget(self):
|
||||||
|
|
Loading…
Reference in New Issue