One feature we can make use of.
One feature we can make use of. We have this background color, pic setting but how about a ‘shape’? Total launcher have this feature. It allows us to add a colored shape(square/rounded rectangle/arc/circle) as background. It helps in creating beautiful widgets. If there is a way to achieve it please tell me. And no not using image as background, experimenting with so many colors, changing the color with wallpaper will be too much with pic.
]]>
« Have you any idea HOW TO SHOW DIRECTORY LISTING (dirs and files) in WIDGET, BADGE or DYNAMIC TEXT (best with… (Previous Post)
(Next Post) JFrame v2 »
< ![CDATA[
Would this help you?
Create a SVG image: http://www.lightninglauncher.com/scripting/reference/api-beta/reference/net/pierrox/lightning_launcher/script/api/ImageSvg.html
Then customize the image with whatever shape you want using:
lightninglauncher.com – net.pierrox.lightning_launcher.script.api.svg
]]>
< ![CDATA[
I don’t know how exactly that script/api works.
What if I want to change color with background? Or test different colors/shades. Have to recreate so many images. It’s tedious and irritating. That’s why no image.
]]>
< ![CDATA[
This is how it looks in total launcher
https://lh3.googleusercontent.com/nPOOrwxh1YEJp00eP1r6Ofw7xuA9tIU3JwHBmp4yUZmS9hxUG6fcnR1-xY_kegiB5TC60Vrf
]]>
< ![CDATA[
https://lh3.googleusercontent.com/TJxzKUvEHjUUtQ2O_E-AxK7xde9ZG-yHhTAlfGgN09ue__2M-xEvNvXwWdjrw6brGjd9E3vC
]]>
< ![CDATA[
https://lh3.googleusercontent.com/PH-gD7ddj8lOEy5WJugbSDVansasBGJqwra4dA2zF2NOERR05bTewkHfmRupr4xuZjQWK4qB
]]>
< ![CDATA[
https://lh3.googleusercontent.com/xcifm3P9KAy_CYkFyH52JNCNnWdIL91cB0p_iVZrxxpJ2l7Z0wE0xHMYnNioiEyAREsqiQPX
]]>
< ![CDATA[
Bogdan Tautu
]]>
< ![CDATA[
An interface like the one you posted should be doable from a LL script. I’ll try and make a prototype this weekend.
]]>
< ![CDATA[
Pierre Hébert
]]>
< ![CDATA[
Search for ‘QuickTheme’
Set a white (image)shape as background and QuickTheme wil adapt its color to the wallpaper.
]]>
< ![CDATA[
Jappie Toutenhoofd ‘quick theme’? What/where is this.
]]>
< ![CDATA[
https://plus.google.com/+JappieToutenhoofd/posts/CyehaTQGt95
You might wanne start here.
]]>
< ![CDATA[
https://plus.google.com/+JappieToutenhoofd/posts/CyehaTQGt95
You might wanne start here.
]]>
< ![CDATA[
Bogdan Tautu any good news?
]]>
< ![CDATA[
Gulzar Singh can’t access the website to look at the API 🙁
]]>
< ![CDATA[
Can’t do it using SVG, I’ll make it with canvas drawing from script.
]]>
< ![CDATA[
Bogdan Tautu yes and using Path from Android is can draw complex images but I don’t have much idea of Javascript
]]>
< ![CDATA[
Bogdan Tautu any news?
]]>
< ![CDATA[
Gulzar Singh I am still working, the UI is harder than expected. I will post it on the wiki
]]>
< ![CDATA[
Bogdan Tautu nice. That will be good. Wiki can help others to learn in making their own scripts.
]]>
< ![CDATA[
Gulzar Singh it’s working
Please ask for any features you need. This is just a proof of concept.
lightninglauncher.com – script_shape_background [Lightning Launcher]
]]>
< ![CDATA[
Bogdan Tautu I was testing it. I tried on panel only. I get this
https://lh3.googleusercontent.com/HmjDE9tq6inJtqlkelbX2OMFV6oxdEetgnptSQve4elSfllNLmewQATQtELMFgwiUr-uRRxQeA
]]>
< ![CDATA[
Bogdan Tautu clicking on ‘+’ gives me
https://lh3.googleusercontent.com/oxb5O7n89rfjDjqADRSB5jXIvspFGSR1S-OF8shngRJM7ZtoXFn_1zFu2ZRBeB2n2KwscW2qBg
]]>
< ![CDATA[
Weird, I don’t. But an easy fix is to add
bindClass(‘android.view.ViewGroup’);
after line 231 (where the big chunk of bindings is, at the beginning of the showShapeMenu function)
Edit: I also updated the wiki script. Try it out please.
]]>
< ![CDATA[
Bogdan Tautu that bug is gone. Ycan click on ‘+’ and gets the ‘circle’. Can set it in panel, icons.
https://lh3.googleusercontent.com/qlL4ntqa8YzL3MPOEN63qZO2DJFE-xPjROut_uucinH8UyJgNPOOxTj8hJoZ–2e2YqbTuyuDA
]]>
< ![CDATA[
Bogdan Tautu if I try to click on pencil icon for customization . I get new error
https://lh3.googleusercontent.com/A_scmA_427HSMtpTLxS7LVP2pQeYQmiJCNXiLCKmBd0nXCB_AXEraJYV0MlPv6bhHMZjtF6BSA
]]>
< ![CDATA[
Bogdan Tautu I am python programmer. This JS and android is alien to me. It feels bad, I can’t contribute to the development. 😅
]]>
< ![CDATA[
Gulzar Singh updated the wiki script. Don’t know why it is working on my phone…
Maybe I should try it on other phones b4 I publish
]]>
< ![CDATA[
Bogdan Tautu great, it’s working. I tested it on a ‘text’, icon and panel. Good thing it captures previous image and allows us to delete/edit.
One last thing is about the rectangle properties. Is it possible to get ’rounded corners’ (it can be a different category like in total launcher) (eg: ‘suru icons’) and the rounding of edges also (eg:’ Belle ui icons’), second feature is not important.
]]>
< ![CDATA[
Bogdan Tautu we can get simple rectangle with box background property also. Rounded rectangle is needed in this script. I read the code, understood a bit but can’t understand how to get ‘angle’ property. Probably it will need a lots of ‘if’
]]>
< ![CDATA[
Gulzar Singh do you use hangout or some other messanging app?
I will add rounded corners but must think of a way to disable the radius property for the other shapes that do not use it.
]]>
< ![CDATA[
Bogdan Tautu yes I enabled hangouts. We can talk.
]]>