diff -r 495f084a737e -r 36a90a94765c src/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py --- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Mon Sep 23 14:37:31 2024 +0200 +++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py Tue Sep 24 17:52:41 2024 +0200 @@ -843,8 +843,20 @@ """ Private slot to generate diff outputs for the selected item. """ + self.diffHighlighter.regenerateRules( + { + "text": Preferences.getDiffColour("TextColor"), + "added": Preferences.getDiffColour("AddedColor"), + "removed": Preferences.getDiffColour("RemovedColor"), + "replaced": Preferences.getDiffColour("ReplacedColor"), + "context": Preferences.getDiffColour("ContextColor"), + "header": Preferences.getDiffColour("HeaderColor"), + "whitespace": Preferences.getDiffColour("BadWhitespaceColor"), + }, + Preferences.getEditorOtherFonts("MonospacedFont"), + ) + self.diffEdit.clear() - self.diffHighlighter.regenerateRules() if not self.__mq: selectedItems = self.statusList.selectedItems()