Skip to content

DefaultListItemBackground styling override

Allow the DefaultListItemBackground to have it's styling overridden for when it's desirable to style a TableView (or TreeView) like a list and vice versa.

The drive for this has come from Neochat where we use a Treeview (which is a TableView underneath) but want it styled like a ListView. The current situation locks a specific styling to a specific feature set which isn't great. This is a work around to allow it to be overridden.

image

See network/neochat!1752 for an example usage.

The way this would be used is to instantiate your own version of DefaultListItemBackground in the given app then override from there.

Making this change here rather just copying the code to NeoChat (or other app) makes sense as it allows all other future updates to be automatically applied rather than having a slow divergence if the code was copied wholesale into the app so consistency is maximized.

Edited by James Graham

Merge request reports