OSDN Git Service

*colors module: move findColorName to a 'name' property on the RGB class.
authorMichael Curran <mick@kulgan.net>
Thu, 16 Sep 2010 04:26:51 +0000 (14:26 +1000)
committerMichael Curran <mick@kulgan.net>
Thu, 16 Sep 2010 04:26:51 +0000 (14:26 +1000)
commit9e7c0cbc605b1e4469e9f54b613c192333f83b27
tree466678ff88ae6d603b3e2de93471136d69326dd6
parent55581dcce2cb7a1a4ee054c8fefea7351a91e4b7
*colors module: move findColorName  to a 'name' property on the RGB class.
*colors.RGB: add a 'fromString' factory method which creates an RGB instance from a CSS color string (such as rgb(x,y,z) or RGBA(x,y,z,w) or #XYZ or #XXYYZZ etc).
*colors.RGB: add a 'fromCOLORREF" factory method which creates an RGB instance from a COLORREF ctypes instance.
*IAccessible2 and soffice code: convert to use the new methods on the colors.RGB class.
*speech.getFormatFieldSpeech: allow color and background-color to be strings, as well as RGB instances.
source/NVDAObjects/IAccessible/__init__.py
source/appModules/soffice.py
source/colors.py
source/speech.py