gtk: Add undershoots to the XunitView

Undershoot CSS classes were added in libadwaita 1.4, and look nice when
applied.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This commit is contained in:
Anna Schumaker 2023-10-06 15:59:43 -04:00
parent daae654b8e
commit f951d4c998
2 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class TestXunitView(unittest.TestCase):
def test_init(self):
"""Test that we created the XunitView correctly."""
self.assertIsInstance(self.view, Gtk.ScrolledWindow)
self.assertTrue(self.view.has_css_class("undershoot-top"))
self.assertTrue(self.view.has_css_class("undershoot-bottom"))
self.assertTrue(self.view.has_css_class("card"))
def test_columnview(self):

View File

@ -33,6 +33,8 @@ class XunitView(Gtk.ScrolledWindow):
hexpand=True),
**kwargs)
self.props.child.get_model().set_model(self.filtermodel)
self.add_css_class("undershoot-top")
self.add_css_class("undershoot-bottom")
self.add_css_class("card")
def do_make_factory(self, xunit: str) -> row.XunitFactory: