From e6a219017d18ebe33ce88ac709c79e001463a4e9 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sat, 20 Jan 2024 10:56:41 -0500 Subject: [PATCH] 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 --- emmental/sidebar/library.py | 2 +- tests/sidebar/test_library.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emmental/sidebar/library.py b/emmental/sidebar/library.py index 21845f5..71d3a4b 100644 --- a/emmental/sidebar/library.py +++ b/emmental/sidebar/library.py @@ -39,7 +39,7 @@ class Section(section.Section): def __init__(self, table=db.libraries.Table): """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") self.extra_widget = Gtk.Button(icon_name="folder-new", has_frame=False, tooltip_text="add new library path") diff --git a/tests/sidebar/test_library.py b/tests/sidebar/test_library.py index 4342283..6a87acb 100644 --- a/tests/sidebar/test_library.py +++ b/tests/sidebar/test_library.py @@ -25,7 +25,7 @@ class TestLibraries(tests.util.TestCase): emmental.sidebar.library.LibraryRow) 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") def test_extra_widget(self):