diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-08 13:09:10 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-08 13:09:10 (GMT) |
commit | 233051875b0eb7466612156fbe7c5d7b33e6ddc4 (patch) | |
tree | a97f24500348e742eb6cccfb990f66b68362a8f8 /shell/conf | |
parent | 2a2554f157d977efb182e55bb71e5c38d4ae4263 (diff) |
Bring around both colors, since multiple combinations can have
the same base color.
Diffstat (limited to 'shell/conf')
-rw-r--r-- | shell/conf/Profile.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/conf/Profile.py b/shell/conf/Profile.py index ecc4aba..ced73cf 100644 --- a/shell/conf/Profile.py +++ b/shell/conf/Profile.py @@ -18,9 +18,9 @@ class _Profile: if cp.has_option('Buddy', 'NickName'): self._nick_name = cp.get('Buddy', 'NickName') if cp.has_option('Buddy', 'Color'): - fill_color = cp.get('Buddy', 'Color') - if IconColor.is_valid(fill_color): - self._color = IconColor.IconColor(fill_color) + color = cp.get('Buddy', 'Color') + if IconColor.is_valid(color): + self._color = IconColor.IconColor(color) def _ensure_dirs(self): try: @@ -50,7 +50,7 @@ class _Profile: section = 'Buddy' cp.add_section(section) cp.set(section, 'NickName', self._nick_name) - cp.set(section, 'Color', self._color.get_fill_color()) + cp.set(section, 'Color', self._color.to_string()) fileobject = open(self._get_config_path(), 'w') cp.write(fileobject) |