Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove a corner around a picture in the "Image Button" control? #471

Open
tankist-git-2 opened this issue Aug 31, 2022 · 4 comments

Comments

@tankist-git-2
Copy link

I wanna use picture as a button (typical scenario - change the page by clicking a picture). This functional is completely done by using "Image Button" control, but, unfortunatelly, there are a corner around my picture in this mode (see the attached picture). I can't remove that by GUIslice builder settings. If I try to use "Image" component instead there is no built-in functional as in the "Image Button" control.

guislice_img_button

So I wonder if it possible to remove that corner now? If not, could you add a setting to remove it in the future?

@Pconti31
Copy link
Contributor

@tankist-git-2 If you post a zip file of a small sample program that just displays your icon with the problem corner I will see if I can debug the issue.
Paul--

@tankist-git-2
Copy link
Author

tankist-git-2 commented Aug 31, 2022

Here is a project
3.zip

The target platform is tft_espi with ESP32 MCU

@Pconti31
Copy link
Contributor

@tankist-git-2 Turns out to be an easy fix. Simply set "Transparent?=true" inside the Builder on each of your images.
Paul--

@tankist-git-2
Copy link
Author

This works. Thank you for the quick response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants