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:
parent
daae654b8e
commit
f951d4c998
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue