TextDocument: store message types
Don't rebuild documents twice on theme change
ListView: add a similar context menu title than the tree has