1
#------------------------------------------------------------------------------
2
# Copyright (c) 2007, Riverbank Computing Limited
5
# This software is provided without warranty under the terms of the BSD license.
6
# However, when used with the GPL version of PyQt the additional terms described in the PyQt GPL exception also apply
9
# Author: Riverbank Computing Limited
10
#------------------------------------------------------------------------------
12
""" Defines constants used by the PyQt implementation of the various text
13
editors and text editor factories.
16
#-------------------------------------------------------------------------------
18
#-------------------------------------------------------------------------------
20
from pyface.qt import QtGui
22
#-------------------------------------------------------------------------------
24
#-------------------------------------------------------------------------------
26
_palette = QtGui.QApplication.palette()
28
# Default dialog title
29
DefaultTitle = 'Edit properties'
31
# Color of valid input
32
OKColor = _palette.color(QtGui.QPalette.Base)
34
# Color to highlight input errors
35
ErrorColor = QtGui.QColor( 255, 192, 192 )
37
# Color for background of read-only fields
38
ReadonlyColor = QtGui.QColor( 244, 243, 238 )
40
# Color for background of fields where objects can be dropped
41
DropColor = QtGui.QColor( 215, 242, 255 )
43
# Color for an editable field
44
EditableColor = _palette.color(QtGui.QPalette.Base)
46
# Color for background of windows (like dialog background color)
47
WindowColor = _palette.color(QtGui.QPalette.Window)
53
_geom = QtGui.QApplication.desktop().availableGeometry()
55
screen_dx = _geom.width()
56
screen_dy = _geom.height()