Skip to content

Commit

Permalink
fix(taskbar): correct step comparison for width and opacity updates
Browse files Browse the repository at this point in the history
Updated the condition in the update_properties function to ensure that width and opacity are incremented when the current step is less than or equal to the frames per second (fps). This change prevents the final frame from being skipped, ensuring smoother visual transitions in the taskbar widget.
  • Loading branch information
amnweb committed Dec 4, 2024
1 parent 4af9aa3 commit 75af828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/widgets/yasb/taskbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _animate_icon(self, icon_label, start_width=None, end_width=None,fps = 60, d
opacity_effect.setOpacity(self._current_opacity)

def update_properties():
if self._current_step < fps:
if self._current_step <= fps:
self._current_width += width_increment
self._current_opacity += opacity_increment
icon_label.setFixedWidth(int(self._current_width))
Expand Down

0 comments on commit 75af828

Please sign in to comment.