eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 7493
1696e91a5393
parent 7489
6543bcd150fd
child 7533
88261c96484b
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Wed Apr 01 19:50:41 2020 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Fri Apr 03 17:43:01 2020 +0200
@@ -227,9 +227,7 @@
         self.__logTreeNormalFont.setBold(False)
         self.__logTreeBoldFont = self.logTree.font()
         self.__logTreeBoldFont.setBold(True)
-        self.__logTreeHasDarkBackground = (
-            self.logTree.palette().color(QPalette.Window).lightness() < 128
-        )
+        self.__logTreeHasDarkBackground = e5App().usesDarkPalette()
         
         self.detailsEdit.anchorClicked.connect(self.__revisionClicked)
         

eric ide

mercurial