job_status: make the animation smoother and overscroll a bit
This commit is contained in:
parent
629c86d95f
commit
98c6ca5dfa
@ -781,7 +781,7 @@ class Panel(ScreenPanel):
|
|||||||
}
|
}
|
||||||
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
||||||
if ellipsized:
|
if ellipsized:
|
||||||
self.animation_timeout = GLib.timeout_add_seconds(1, self.animate_label)
|
self.animation_timeout = GLib.timeout_add(500, self.animate_label)
|
||||||
else:
|
else:
|
||||||
self.animation_timeout = None
|
self.animation_timeout = None
|
||||||
self.update_file_metadata()
|
self.update_file_metadata()
|
||||||
@ -791,8 +791,8 @@ class Panel(ScreenPanel):
|
|||||||
return False
|
return False
|
||||||
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
ellipsized = self.labels['file'].get_layout().is_ellipsized()
|
||||||
if ellipsized:
|
if ellipsized:
|
||||||
self.filename_label['current'] = self.filename_label['current'][2:]
|
self.filename_label['current'] = self.filename_label['current'][1:]
|
||||||
self.labels['file'].set_label(self.filename_label['current'])
|
self.labels['file'].set_label(self.filename_label['current'] + " " * 6)
|
||||||
else:
|
else:
|
||||||
self.filename_label['current'] = self.filename_label['complete']
|
self.filename_label['current'] = self.filename_label['complete']
|
||||||
self.labels['file'].set_label(self.filename_label['complete'])
|
self.labels['file'].set_label(self.filename_label['complete'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user