Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py

changeset 2580
7403bc14ea26
parent 2302
f29e9405c851
child 2677
3d4277929fb3
child 2771
281c9b30dd91
equal deleted inserted replaced
2579:35bb8c5eb7fe 2580:7403bc14ea26
41 41
42 self.process = QProcess() 42 self.process = QProcess()
43 self.vcs = vcs 43 self.vcs = vcs
44 self.__hgClient = self.vcs.getClient() 44 self.__hgClient = self.vcs.getClient()
45 45
46 if Utilities.isWindowsPlatform(): 46 font = Preferences.getEditorOtherFonts("MonospacedFont")
47 self.contents.setFontFamily("Lucida Console") 47 self.contents.setFontFamily(font.family())
48 else: 48 self.contents.setFontPointSize(font.pointSize())
49 self.contents.setFontFamily("Monospace")
50 49
51 self.cNormalFormat = self.contents.currentCharFormat() 50 self.cNormalFormat = self.contents.currentCharFormat()
52 self.cAddedFormat = self.contents.currentCharFormat() 51 self.cAddedFormat = self.contents.currentCharFormat()
53 self.cAddedFormat.setBackground(QBrush(QColor(190, 237, 190))) 52 self.cAddedFormat.setBackground(QBrush(QColor(190, 237, 190)))
54 self.cRemovedFormat = self.contents.currentCharFormat() 53 self.cRemovedFormat = self.contents.currentCharFormat()

eric ide

mercurial