Mercurial > fife-parpg
diff clients/editor/plugins/layertool.py @ 242:561751c094b8
Switched default font in the editor to FreeSans.
Fixed the layertool to not use _setBackgroundColor etc.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 25 Mar 2009 08:31:04 +0000 |
parents | 2a80f7d9aede |
children |
line wrap: on
line diff
--- a/clients/editor/plugins/layertool.py Wed Mar 25 08:04:07 2009 +0000 +++ b/clients/editor/plugins/layertool.py Wed Mar 25 08:31:04 2009 +0000 @@ -215,16 +215,16 @@ if self.previous_active_layer is not None: previous_layer_id = str(self.previous_active_layer) previous_active_widget = self.container.findChild(name="select_" + previous_layer_id) - previous_active_widget._setBackgroundColor(_DEFAULT_BACKGROUND_COLOR) - previous_active_widget._setForegroundColor(_DEFAULT_BACKGROUND_COLOR) - previous_active_widget._setBaseColor(_DEFAULT_BACKGROUND_COLOR) + previous_active_widget.background_color = _DEFAULT_BACKGROUND_COLOR + previous_active_widget.foreground_color = _DEFAULT_BACKGROUND_COLOR + previous_active_widget.base_color = _DEFAULT_BACKGROUND_COLOR previous_active_widget.text = previous_layer_id layerid = widget.name[7:] - widget._setBackgroundColor(_HIGHLIGHT_BACKGROUND_COLOR) - widget._setForegroundColor(_HIGHLIGHT_BACKGROUND_COLOR) - widget._setBaseColor(_HIGHLIGHT_BACKGROUND_COLOR) + widget.background_color = _HIGHLIGHT_BACKGROUND_COLOR + widget.foreground_color = _HIGHLIGHT_BACKGROUND_COLOR + widget.base_color = _HIGHLIGHT_BACKGROUND_COLOR widget.text = widget.text + " *" self.previous_active_layer = layerid self.container.adaptLayout()