[node-patches] Change in ovirt-node[master]: urwid: Add attr to footer
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Fri Sep 20 13:37:43 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: urwid: Add attr to footer
......................................................................
urwid: Add attr to footer
Previously the footer was sometimes hidden due to missing attributes
(which lead to the text beeing drawn in the same color as the
background).
Now the default text color is used.
Change-Id: I8b6d8c80ac516471b2e71addae15501a279ae7e5
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=982528
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/ui/urwid_builder.py
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/15/19415/1
diff --git a/src/ovirt/node/ui/urwid_builder.py b/src/ovirt/node/ui/urwid_builder.py
index 9a73593..fcd8041 100644
--- a/src/ovirt/node/ui/urwid_builder.py
+++ b/src/ovirt/node/ui/urwid_builder.py
@@ -332,6 +332,7 @@
None, None),
('screen', None),
('header', 'white', 'dark blue'),
+ ('footer', element_styles["text"]),
('table', element_styles["text"]),
('table.label', element_styles["label"]),
('table.header', element_styles["label"] + ", standout"),
@@ -509,6 +510,7 @@
header = urwid.Text(self.header, wrap='clip')
header = urwid.AttrMap(header, 'header')
footer = urwid.Text(self.footer, wrap='clip')
+ footer = urwid.AttrMap(footer, 'footer')
screen = urwid.Frame(body, header, footer)
return urwid.AttrMap(screen, "screen")
@@ -585,7 +587,6 @@
def force_redraw(self):
if self.__loop:
- self.logger.debug("Redrawing screen")
self.__loop.draw_screen()
def size(self):
--
To view, visit http://gerrit.ovirt.org/19415
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b6d8c80ac516471b2e71addae15501a279ae7e5
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list