Skip to content

Commit fce171b

Browse files
Improve status_bar clear. Try to force status_ba color
1 parent 417984a commit fce171b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/robotide/pluginapi/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,7 @@ def statusbar_message(self, text, ttl=0):
466466

467467
def _delayed_clear(self, ttl):
468468
if ttl >= 100:
469-
from time import sleep
470-
sleep(ttl/1000)
471-
self.statusbar.SetStatusText('', 1)
469+
wx.CallLater(ttl, self.statusbar_clear)
472470

473471
def statusbar_clear(self):
474472
"""Clears the message at Plugin area of StatusBar"""

src/robotide/ui/mainframe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def _init_ui(self):
298298
self._status_bar.SetFont(wx.Font(self.fontinfo))
299299
self._status_bar.SetBackgroundColour(Colour(self.color_background))
300300
self._status_bar.SetForegroundColour(Colour(self.color_foreground))
301+
self._status_bar.SetOwnForegroundColour(Colour(self.color_foreground))
301302
# change notebook theme
302303
self.set_notebook_theme()
303304
# tell the manager to "commit" all the changes just made

0 commit comments

Comments
 (0)