[accerciser] interface_view: make selected text highlight use global highlight parameter
- From: Samuel Thibault <sthibaul src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] interface_view: make selected text highlight use global highlight parameter
- Date: Thu, 29 Aug 2019 13:27:45 +0000 (UTC)
commit 2278cb7bb819aa450bd6fa1253d890a52fafba48
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date: Thu Aug 29 15:27:40 2019 +0200
interface_view: make selected text highlight use global highlight parameter
plugins/interface_view.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index b5484d1..3d12cfe 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -23,7 +23,7 @@ import os.path
from accerciser.plugin import ViewportPlugin
from accerciser.icons import getIcon
-from accerciser.node import _HighLight
+from accerciser import node
from accerciser.i18n import _, N_, DOMAIN
from xml.dom import minidom
@@ -1473,9 +1473,11 @@ class _SectionText(_InterfaceSection):
endOffset = end.get_offset()
text = self.node.acc.queryText()
(x, y, width, height) = text.getRangeExtents(startOffset, endOffset, pyatspi.DESKTOP_COORDS)
- # TODO: make parameters configurable
- ah = _HighLight(x, y, width, height, '#00ff00', 0.5, '#00ff00', 1.0, 2.0, 0)
- ah.highlight(500)
+ ah = node._HighLight(x, y, width, height,
+ node.FILL_COLOR, node.FILL_ALPHA,
+ node.BORDER_COLOR, node.BORDER_ALPHA,
+ 2.0, 0)
+ ah.highlight(node.HL_DURATION)
except:
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]