3 new commits in focusHighlight: https://bitbucket.org/nvdaaddonteam/focushighlight/commits/288c522a0bb2/ Changeset: 288c522a0bb2 Branch: None User: nishimotz Date: 2014-09-19 11:16:04+00:00 Summary: indicate focus mode (vbuf pass through) in blue hatched line Affected #: 1 file diff --git a/addon/globalPlugins/focusHighlight.py b/addon/globalPlugins/focusHighlight.py index 34a16eb..019d914 100644 --- a/addon/globalPlugins/focusHighlight.py +++ b/addon/globalPlugins/focusHighlight.py @@ -88,11 +88,17 @@ transColor = COLORREF() transColor.value = RGB(0xff, 0xff, 0xff) 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) +brMarkColor = COLORREF() +brMarkColor.value = RGB(0xff, 0x00, 0x00) +brBkColor = COLORREF() +brBkColor.value = RGB(0xff, 0xff, 0xff) +brMarkBrush = windll.gdi32.CreateSolidBrush(brMarkColor) + +ptMarkColor = COLORREF() +ptMarkColor.value = RGB(0xff, 0xff, 0xff) +ptBkColor = COLORREF() +ptBkColor.value = RGB(0x00, 0x3f, 0xff) +ptMarkBrush = windll.gdi32.CreateHatchBrush(win32con.HS_BDIAGONAL, ptMarkColor) focusRect = RECT() focusMarkRectList = [RECT(), RECT(), RECT(), RECT()] @@ -124,7 +130,6 @@ terminating = False def rectEquals(r1, r2): return (r1.top == r2.top and r1.bottom == r2.bottom and r1.left == r2.left and r1.right == r2.right) - def location2rect(location): rect = RECT() if location and len(location) >= 4: @@ -180,6 +185,9 @@ def limitRectInDesktop(newRect): def locationAvailable(obj): return (obj and hasattr(obj, 'location') and obj.location and len(obj.location) >= 4) +def isPassThroughMode(): + import virtualBuffers + return virtualBuffers.reportPassThrough.last def updateFocusLocation(sender=None): global focusRect @@ -242,7 +250,10 @@ def createMarkWindow(wndclass, name, hwndHide, rect, alpha): def doPaint(hwnd): if rectEquals(focusRect, navigatorRect) or hwnd in focusHwndList: - color, brush, bkColor = focusMarkColor, focusMarkBrush, focusBkColor + if isPassThroughMode(): + color, brush, bkColor = ptMarkColor, ptMarkBrush, ptBkColor + else: + color, brush, bkColor = brMarkColor, brMarkBrush, brBkColor elif hwnd in navigatorHwndList: color, brush, bkColor = navigatorMarkColor, navigatorMarkBrush, navBkColor else: https://bitbucket.org/nvdaaddonteam/focushighlight/commits/0f9c352fe02f/ Changeset: 0f9c352fe02f Branch: None User: nishimotz Date: 2014-09-19 11:17:22+00:00 Summary: updated document: ability to indicate the focus mode. Affected #: 1 file diff --git a/readme.md b/readme.md index 185ddb3..d20f256 100644 --- a/readme.md +++ b/readme.md @@ -6,14 +6,19 @@ By drawing a colored rectangle, this addon enables partially sighted users, sighted educators, or developers to track the location of the nvda navigator object and the focused object/control. -The following 2 colors are used by this addon: +The following colors are used by this addon: * Green jagged line, to indicate the navigator object. -* Red thin rectangle , to indicate the focused object/control. +* Red thin rectangle, to indicate the focused object/control. * Red thick rectangle, to indicate when navigator object and focused object are overlapping. +* Blue thick rectangle with thin slashes, to indicate NVDA is in focus mode, i.e. key types are passed to the control. To disable object tracking, uninstall the addon. +## Changes for 2.1 ## + +* Ability to indicate the focus mode. + ## Changes for 2.0 ## * Add-on help is available from the Add-ons Manager. https://bitbucket.org/nvdaaddonteam/focushighlight/commits/405491fac17c/ Changeset: 405491fac17c Branch: master User: nishimotz Date: 2014-09-19 11:22:54+00:00 Summary: bump to 3.0-dev Affected #: 2 files diff --git a/buildVars.py b/buildVars.py index a85521e..a1c881e 100644 --- a/buildVars.py +++ b/buildVars.py @@ -19,7 +19,7 @@ addon_info = { # Translators: Long description to be shown for this add-on on add-on information from add-ons manager "addon_description" : _("Highlight the focused location."), # version - "addon_version" : "2.0", + "addon_version" : "3.0-dev", # Author(s) "addon_author" : u"Takuya Nishimoto <nishimotz@xxxxxxxxx>", # URL for the add-on documentation support diff --git a/readme.md b/readme.md index d20f256..aa32877 100644 --- a/readme.md +++ b/readme.md @@ -15,7 +15,7 @@ The following colors are used by this addon: To disable object tracking, uninstall the addon. -## Changes for 2.1 ## +## Changes for 3.0 ## * Ability to indicate the focus mode. 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.