astroid-framework icon indicating copy to clipboard operation
astroid-framework copied to clipboard

Gradient orientation in Layout builder backgrounds.

Open Giorgi625 opened this issue 3 years ago • 8 comments

I am making backgrounds with gradients on my website with astroid and for some items I just make it via custom css, but for backgrounds of sections I use its default option in layout builder, but I found that there are only two options radial and linear, where first color is on top and second is on bottom, but as you can see here my gradient has different orientation https://infozugdidi.ge so would be cool if you will add option to add degrees so I can set orientation of gradient. Thanks

Giorgi625 avatar Feb 16 '22 12:02 Giorgi625

This is a good idea @Giorgi625

Chacapamac avatar Feb 17 '22 00:02 Chacapamac

I updated this feature in https://github.com/templaza/astroid-framework/commit/5eebf2cfb7432cbfcc6c5a6ce38974bbc4ee2d34

  • Radial Gradient with Radial Postion
  • Linear Gradient with Linear Angle

Please help me check it again.

Kind Regards, Sonny

sonvnn avatar Feb 28 '22 12:02 sonvnn

Work perfectly for Radial gradient Work for Linear also in frontend but missing the choice (probably languages strings ? Radial radial )

Linear Linear

Example of the radial but linear work great in frontend (only missing choices in backend) radial front

SUGGESTION: You should at least have a black to white or any color gradient when users see the tools, it will be easier to understand (and cooler) than the black/black actual default,,,

Good Day, Sonny.

Chacapamac avatar Feb 28 '22 22:02 Chacapamac

I updated language and display in back-end..

Thanks & Kind Regards, Sonny

sonvnn avatar Mar 01 '22 08:03 sonvnn

No problem Sonny, I’m finishing my project soon and will be more available for the project. I will update the french language also.

Good Day!

Chacapamac avatar Mar 01 '22 12:03 Chacapamac

@sonvnn Just looking at the change english and I can see that you still have 2 —> TPL_ASTROID_CLOSE_LIVEPREVIEW keys with 2 different language strings.

Is this OK, logically the keys have to be unique?

TPL_ASTROID_CLOSE_LIVEPREVIEW

Chacapamac avatar Mar 01 '22 13:03 Chacapamac

@sonvnn Having these errors installing the last public release —> astroid-package-v2.5.15.Framework-Template.zip errors

Astroid extensions after that install manage

Gradient Tool Gradient

Please, tell me if the identical language keys are OK (above post) I need this to work on the french language

Chacapamac avatar Mar 05 '22 15:03 Chacapamac

@sonvnn I find the problem for the “0” in the gradient The “0” is in template_zero — It work if I input an angle (45)

I get the following in template_one Screen Shot 2022-03-09 at 6 48 36 PM

The language key code is probably missing from template_zero

Suggestion: Again you should have a startup gradient to guide the user (black to white) or some Astroid cool color....

Chacapamac avatar Mar 10 '22 00:03 Chacapamac