nowplaying: Give the autopause entry the "card" style class

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2023-06-05 15:50:13 -04:00
parent 087c378e59
commit bb4ca1e9c4
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,8 @@ class Entry(Gtk.Entry):
self.connect("icon_release", self.__icon_release)
self.connect("notify::value", self.__update_text)
self.add_css_class("card")
def __set_value(self, newval: int) -> bool:
if -1 <= newval <= 99:
self.value = newval

View File

@ -26,6 +26,7 @@ class TestAutopauseEntry(unittest.TestCase):
self.assertIsInstance(self.entry, Gtk.Entry)
self.assertTupleEqual(self.entry._timeout, (None, None))
self.assertEqual(self.entry.get_max_width_chars(), 20)
self.assertTrue(self.entry.has_css_class("card"))
def test_placeholder_text(self):
"""Test changing the placeholder text with the value."""