Skip to content

Commit

Permalink
change image button to have a working on release effect
Browse files Browse the repository at this point in the history
  • Loading branch information
LupaDevStudio committed Dec 11, 2023
1 parent c57115a commit b59ae25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/kivy_tools/image_button.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def __init__(self, source="", release_function=lambda: 1 + 1, **kwargs):
self.release_function = release_function
self.source = source
self.fit_mode = "contain"
self.always_release = True

def on_press(self):
self.opacity = 0.8
Expand Down

0 comments on commit b59ae25

Please sign in to comment.