Skip to content

Commit 87fe0cf

Browse files
authored
0.5.0 release (#14)
* 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
1 parent e02403c commit 87fe0cf

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
# Changelog
22
<br>
33

4+
# 0.5.0 → 2023-05-28
5+
6+
Fixed
7+
----------
8+
9+
- Fix effect update for animated backgrounds (gif, videos, etc);
10+
- Require `kivy==2.2.0` (which includes kivy `Smoothline` `rounded_rectangle` fix);
11+
- Ask update for horizontal blur fbo.
12+
413
# 0.4.0 → 2023-04-30
514

615
Fixed

kivy_garden/frostedglass/__init__.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
from ._version import __version__
1717

18+
import kivy
19+
kivy.require('2.2.0')
20+
1821
import os
1922
from time import perf_counter as now
2023

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

459462
self.h_blur.draw()
463+
self.h_blur.ask_update()
460464
self.v_blur.draw()
461465
self.v_blur.ask_update()
462466

@@ -526,7 +530,7 @@ def _update_canvas(self, *args):
526530
self.outline.rounded_rectangle = (
527531
self.x, self.y,
528532
self.width, self.height,
529-
*reversed(border_radius), 45,
533+
*border_radius, 45,
530534
)
531535

532536
def on_blur_size(self, instance, blur_size):
@@ -712,11 +716,8 @@ def _unbind_parent_properties(self, parents_list):
712716
pass
713717

714718
def _trigger_update_effect(self, widget, value=None):
715-
if value is None and self.update_by_timeout:
716-
self.update_effect()
717-
718719
if (
719-
(isinstance(value, int) or isinstance(value, float))
720+
isinstance(value, (int, float))
720721
and self.update_by_timeout
721722
and round(value, 3) != self.last_value
722723
):
@@ -734,6 +735,9 @@ def _trigger_update_effect(self, widget, value=None):
734735
self.update_effect()
735736
self.last_value_list = round(value[0], 2), round(value[1], 2)
736737

738+
elif self.update_by_timeout:
739+
self.update_effect()
740+
737741
@property
738742
def popup_closed(self):
739743
return self.popup_parent and not self.popup_parent.parent
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.4.0'
1+
__version__ = '0.5.0'

0 commit comments

Comments
 (0)