Skip to content

Commit

Permalink
0.5.0 release (#14)
Browse files Browse the repository at this point in the history
* fix effect update for animated backgrounds; (#13)
- require `kivy==2.2.0` (which includes kivy `Smoothline` `rounded_rectangle` fix);
- ask update for horizontal blur fbo

* Update CHANGELOG.md

* bump version to 0.5.0
  • Loading branch information
DexerBR committed May 28, 2023
1 parent e02403c commit 87fe0cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Changelog
<br>

# 0.5.0 → 2023-05-28

Fixed
----------

- Fix effect update for animated backgrounds (gif, videos, etc);
- Require `kivy==2.2.0` (which includes kivy `Smoothline` `rounded_rectangle` fix);
- Ask update for horizontal blur fbo.

# 0.4.0 → 2023-04-30

Fixed
Expand Down
14 changes: 9 additions & 5 deletions kivy_garden/frostedglass/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@

from ._version import __version__

import kivy
kivy.require('2.2.0')

import os
from time import perf_counter as now

Expand Down Expand Up @@ -457,6 +460,7 @@ def _set_final_texture(self, pos):
self.h_blur.rect.pos = self._pos

self.h_blur.draw()
self.h_blur.ask_update()
self.v_blur.draw()
self.v_blur.ask_update()

Expand Down Expand Up @@ -526,7 +530,7 @@ def _update_canvas(self, *args):
self.outline.rounded_rectangle = (
self.x, self.y,
self.width, self.height,
*reversed(border_radius), 45,
*border_radius, 45,
)

def on_blur_size(self, instance, blur_size):
Expand Down Expand Up @@ -712,11 +716,8 @@ def _unbind_parent_properties(self, parents_list):
pass

def _trigger_update_effect(self, widget, value=None):
if value is None and self.update_by_timeout:
self.update_effect()

if (
(isinstance(value, int) or isinstance(value, float))
isinstance(value, (int, float))
and self.update_by_timeout
and round(value, 3) != self.last_value
):
Expand All @@ -734,6 +735,9 @@ def _trigger_update_effect(self, widget, value=None):
self.update_effect()
self.last_value_list = round(value[0], 2), round(value[1], 2)

elif self.update_by_timeout:
self.update_effect()

@property
def popup_closed(self):
return self.popup_parent and not self.popup_parent.parent
Expand Down
2 changes: 1 addition & 1 deletion kivy_garden/frostedglass/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.0'
__version__ = '0.5.0'

0 comments on commit 87fe0cf

Please sign in to comment.