templaza / astroid-framework

Powerful framework for designers and developers to create responsive, fast & robust Joomla based websites and templates.
https://astroidframe.work/
GNU General Public License v3.0
77 stars 12 forks source link

Gradiant settings are gone after update to 3.0.10 #563

Closed Joomlaplates closed 4 months ago

Joomlaplates commented 4 months ago

Hi Sonny, happy new year of dragon! 1.) If you have already a gradiant setting in element or section, the colors are gone after update to 3.0.10 2.) Go now to the section, switch the gradiant to radial or linear and save 3.) Go back again and switch to linear/radial and save and it should be back in frontend .. Anyway The gradiant settings are opposite since 3.0.10 .. If you didnt use the gradiant settings at all and setup with Astroid 3.0.10 a gradiant background it works. But didnt works if you had already a gradiant and update to Astroid 3.0.10. Regards Peter

WM-Loose commented 4 months ago

Linear is then exchanged. The color that was before is then below and vice versa. This only happens if the color gradient had already been set beforehand.

1

sonvnn commented 4 months ago

Opps! Thank you! I will check it and update asap

WM-Loose commented 4 months ago

color gradient with 3.0.9 3 0 9

color gradient with 3.0.10 3 0 10

sonvnn commented 4 months ago

@Joomlaplates @WM-Loose I fixed this issue at https://github.com/templaza/astroid-framework/commit/97831530f05ba4d8024b5640de78638b4e26d493

Please help me download v3-branch and retest again.

Thanks & Best regards, Sonny

WM-Loose commented 4 months ago

Hello Sonny,

I have now installed 3.0.10 in the backend and made the changes in style.php. After that the color bleeds were back again. However, I had to reverse the arrangement of the two colors in the template options. So I had to swap the left color and the right color. After that everything was ok. I can't tell you why the left and the right aren't the same anymore. But with the adjustments in style.php it now works.

The Style.php is in /joomla.../libraries/astroid/framework/library/astroid/Helper Style.zip

New style.php, look file

sonvnn commented 4 months ago

@WM-Loose yes, it is an mistake from Joomdev since Astroid 2. I have to correct it one. They did not add degree gradient when it has zero value and missing some attributes like start position and stop position, So please help me change your color. It will be safe in the future.

Thanks and Best regards, Sonny

WM-Loose commented 4 months ago

I have now reversed the colors and everything is fine. Feel free to provide an update. Users just have to change the colors once and everything will be ok in the future.

Thank you very much for your great work. Dirk

Joomlaplates commented 4 months ago

Yep its working now. Thanks Sonny!