Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py

changeset 2580
7403bc14ea26
parent 2302
f29e9405c851
child 2677
3d4277929fb3
child 3009
bf5ae5d7477d
equal deleted inserted replaced
2579:35bb8c5eb7fe 2580:7403bc14ea26
20 20
21 from .SvnDialogMixin import SvnDialogMixin 21 from .SvnDialogMixin import SvnDialogMixin
22 from .Ui_SvnDiffDialog import Ui_SvnDiffDialog 22 from .Ui_SvnDiffDialog import Ui_SvnDiffDialog
23 23
24 import Utilities 24 import Utilities
25 import Preferences
25 26
26 27
27 class SvnDiffDialog(QWidget, SvnDialogMixin, Ui_SvnDiffDialog): 28 class SvnDiffDialog(QWidget, SvnDialogMixin, Ui_SvnDiffDialog):
28 """ 29 """
29 Class implementing a dialog to show the output of the svn diff command. 30 Class implementing a dialog to show the output of the svn diff command.
43 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False) 44 self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
44 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True) 45 self.buttonBox.button(QDialogButtonBox.Cancel).setDefault(True)
45 46
46 self.vcs = vcs 47 self.vcs = vcs
47 48
48 if Utilities.isWindowsPlatform(): 49 font = Preferences.getEditorOtherFonts("MonospacedFont")
49 self.contents.setFontFamily("Lucida Console") 50 self.contents.setFontFamily(font.family())
50 else: 51 self.contents.setFontPointSize(font.pointSize())
51 self.contents.setFontFamily("Monospace")
52 52
53 self.cNormalFormat = self.contents.currentCharFormat() 53 self.cNormalFormat = self.contents.currentCharFormat()
54 self.cAddedFormat = self.contents.currentCharFormat() 54 self.cAddedFormat = self.contents.currentCharFormat()
55 self.cAddedFormat.setBackground(QBrush(QColor(190, 237, 190))) 55 self.cAddedFormat.setBackground(QBrush(QColor(190, 237, 190)))
56 self.cRemovedFormat = self.contents.currentCharFormat() 56 self.cRemovedFormat = self.contents.currentCharFormat()

eric ide

mercurial