3 new commits in focusHighlight: https://bitbucket.org/nvdaaddonteam/focushighlight/commits/fd2cc7097daa/ Changeset: fd2cc7097daa Branch: None User: nishimotz Date: 2014-01-25 05:18:21 Summary: use hatch brush for navigator mark Affected #: 1 file diff --git a/addon/globalPlugins/focusHighlight.py b/addon/globalPlugins/focusHighlight.py index 2f59d34..2d14a7b 100644 --- a/addon/globalPlugins/focusHighlight.py +++ b/addon/globalPlugins/focusHighlight.py @@ -87,6 +87,8 @@ transBrush = windll.gdi32.CreateSolidBrush(transColor) focusMarkColor = COLORREF() focusMarkColor.value = RGB(0xff, 0x00, 0x00) +focusBkColor = COLORREF() +focusBkColor.value = RGB(0xff, 0xff, 0xff) focusMarkBrush = windll.gdi32.CreateSolidBrush(focusMarkColor) focusRect = RECT() @@ -97,8 +99,10 @@ FOCUS_ALPHA = 192 focusHwndList = [0, 0, 0, 0] navigatorMarkColor = COLORREF() -navigatorMarkColor.value = RGB(0x00, 0xff, 0x00) -navigatorMarkBrush = windll.gdi32.CreateSolidBrush(navigatorMarkColor) +navigatorMarkColor.value = RGB(0x00, 0x00, 0xff) +navBkColor = COLORREF() +navBkColor.value = RGB(0x00, 0xff, 0x00) +navigatorMarkBrush = windll.gdi32.CreateHatchBrush(win32con.HS_DIAGCROSS, navigatorMarkColor) navigatorRect = RECT() navigatorMarkRectList = [RECT(), RECT(), RECT(), RECT()] @@ -273,15 +277,16 @@ UPDATE_PERIOD = 300 def doPaint(hwnd): if rectEquals(focusRect, navigatorRect) or hwnd in focusHwndList: - color, brush = focusMarkColor, focusMarkBrush + color, brush, bkColor = focusMarkColor, focusMarkBrush, focusBkColor elif hwnd in navigatorHwndList: - color, brush = navigatorMarkColor, navigatorMarkBrush + color, brush, bkColor = navigatorMarkColor, navigatorMarkBrush, navBkColor else: return ps = PAINTSTRUCT() rect = RECT() hdc = windll.user32.BeginPaint(c_int(hwnd), byref(ps)) windll.gdi32.SetDCBrushColor(c_int(hdc), color) + windll.gdi32.SetBkColor(c_int(hdc), bkColor) windll.user32.GetClientRect(c_int(hwnd), byref(rect)) windll.user32.FillRect(hdc, byref(rect), brush) windll.user32.EndPaint(c_int(hwnd), byref(ps)) https://bitbucket.org/nvdaaddonteam/focushighlight/commits/f9021b68c0ee/ Changeset: f9021b68c0ee Branch: None User: nishimotz Date: 2014-01-25 05:55:01 Summary: updated readme.md Affected #: 1 file diff --git a/readme.md b/readme.md index b63fb32..c4c2441 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,10 @@ The following 2 colors are used by this addon: To disable object tracking, uninstall the addon. +## Changes for 1.1 ## + +* Changed navigator object rectangle to cross hatching line. + ## Changes for 1.0 ## * In Internet Explorer 10 and in Skype on Windows 8, fix a problem with the navigator object. https://bitbucket.org/nvdaaddonteam/focushighlight/commits/7282894daf89/ Changeset: 7282894daf89 Branch: master User: nishimotz Date: 2014-01-25 05:56:11 Summary: merged nishimotz/focushighlight master. use cross hatching line for navigator object. Affected #: 2 files diff --git a/addon/globalPlugins/focusHighlight.py b/addon/globalPlugins/focusHighlight.py index 2f59d34..2d14a7b 100644 --- a/addon/globalPlugins/focusHighlight.py +++ b/addon/globalPlugins/focusHighlight.py @@ -87,6 +87,8 @@ transBrush = windll.gdi32.CreateSolidBrush(transColor) focusMarkColor = COLORREF() focusMarkColor.value = RGB(0xff, 0x00, 0x00) +focusBkColor = COLORREF() +focusBkColor.value = RGB(0xff, 0xff, 0xff) focusMarkBrush = windll.gdi32.CreateSolidBrush(focusMarkColor) focusRect = RECT() @@ -97,8 +99,10 @@ FOCUS_ALPHA = 192 focusHwndList = [0, 0, 0, 0] navigatorMarkColor = COLORREF() -navigatorMarkColor.value = RGB(0x00, 0xff, 0x00) -navigatorMarkBrush = windll.gdi32.CreateSolidBrush(navigatorMarkColor) +navigatorMarkColor.value = RGB(0x00, 0x00, 0xff) +navBkColor = COLORREF() +navBkColor.value = RGB(0x00, 0xff, 0x00) +navigatorMarkBrush = windll.gdi32.CreateHatchBrush(win32con.HS_DIAGCROSS, navigatorMarkColor) navigatorRect = RECT() navigatorMarkRectList = [RECT(), RECT(), RECT(), RECT()] @@ -273,15 +277,16 @@ UPDATE_PERIOD = 300 def doPaint(hwnd): if rectEquals(focusRect, navigatorRect) or hwnd in focusHwndList: - color, brush = focusMarkColor, focusMarkBrush + color, brush, bkColor = focusMarkColor, focusMarkBrush, focusBkColor elif hwnd in navigatorHwndList: - color, brush = navigatorMarkColor, navigatorMarkBrush + color, brush, bkColor = navigatorMarkColor, navigatorMarkBrush, navBkColor else: return ps = PAINTSTRUCT() rect = RECT() hdc = windll.user32.BeginPaint(c_int(hwnd), byref(ps)) windll.gdi32.SetDCBrushColor(c_int(hdc), color) + windll.gdi32.SetBkColor(c_int(hdc), bkColor) windll.user32.GetClientRect(c_int(hwnd), byref(rect)) windll.user32.FillRect(hdc, byref(rect), brush) windll.user32.EndPaint(c_int(hwnd), byref(ps)) diff --git a/readme.md b/readme.md index b63fb32..c4c2441 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,10 @@ The following 2 colors are used by this addon: To disable object tracking, uninstall the addon. +## Changes for 1.1 ## + +* Changed navigator object rectangle to cross hatching line. + ## Changes for 1.0 ## * In Internet Explorer 10 and in Skype on Windows 8, fix a problem with the navigator object. Repository URL: https://bitbucket.org/nvdaaddonteam/focushighlight/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.