[NEW PATCH] BZ#734917 set tui page title to black text (via gerrit-bot)
Dan Kenigsberg
danken at redhat.com
Sat Sep 3 10:00:03 UTC 2011
New patch submitted by Dan Kenigsberg (danken at redhat.com)
You can review this change at: http://gerrit.usersys.redhat.com/892
commit fad6d40d5c32a91ecf25a91120ad5c70ead2fd39
Author: Joey Boggs <jboggs at redhat.com>
Date: Wed Aug 31 16:35:25 2011 -0400
BZ#734917 set tui page title to black text
Change-Id: Idd6ffc40a73bd7af6605454598f84a45a30b7216
diff --git a/vdsm_reg/rhevm.py b/vdsm_reg/rhevm.py
index 9335b61..8670c72 100755
--- a/vdsm_reg/rhevm.py
+++ b/vdsm_reg/rhevm.py
@@ -26,7 +26,7 @@ import sys
from ovirtnode.ovirtfunctions import ovirt_store_config, is_valid_host_or_ip, \
is_valid_port, PluginBase, log, network_up
from snack import ButtonChoiceWindow, Entry, Grid, Label, Checkbox, \
- FLAG_DISABLED, FLAGS_SET
+ FLAG_DISABLED, FLAGS_SET, customColorset
sys.path.append('/usr/share/vdsm-reg')
import deployUtil
@@ -110,8 +110,10 @@ class Plugin(PluginBase):
header_message = "RHEV-M Configuration"
else:
header_message = "Network Down, RHEV-M Configuration Disabled"
-
- elements.setField(Label(header_message), 0, 0, anchorLeft = 1)
+ heading = Label(header_message)
+ self.ncs.screen.setColor(customColorset(1), "black", "magenta")
+ heading.setColors(customColorset(1))
+ elements.setField(heading, 0, 0, anchorLeft = 1)
elements.setField(Label(""), 0, 1, anchorLeft = 1)
rhevm_grid = Grid(2,2)
rhevm_grid.setField(Label("Management Server:"), 0, 0, anchorLeft = 1)
More information about the vdsm-patches
mailing list