I want to change the color of different things (text color, border colors, …) by clicking a shortcut for example.

I want to change the color of different things (text color, border colors, …) by clicking a shortcut for example. One shortcut for applying red colors for all defined objects, one shortcut to switch to blue color.

I think it is manageable with variables, but I don’t know how…

Does anyone have an idea (or a simple solution) for this?

Thanks in advance!

4 Commentsto I want to change the color of different things (text color, border colors, …) by clicking a shortcut for example.

  1. Start by long tapping on a shortcut and display its properties. In the events tab, configure the “Tap” event to run the action “Set a variable”. Give a variable name $color and a value, for instance #ffff0000.

    Now configure other item properties: in the bindings tab, add a new one, for instance “text normal color” with the value $color

    You can also set a binding to configure box colors using this:

    http://www.lightninglauncher.com/wiki/doku.php?id=bindings_box

  2. Hey, Pierre Hébert​. Thank you very very much for your advise! The text color switch works perfectly. At next I’ll the box border color switch. Great oportunities :o)

  3. Be aware that the box binding is rather tricky to setup because there are a lot of configuration switches. If it doesn’t work as expected, try to display the value using a script and “alert()” to watch the value and debug the thing;

  4. Pierre Hébert Thanks again foir the advice (and the warning). I tried the description in your first link and it worked perfectly.

    Now I can switch the icon colorization, the text color and the border color with one short cut per color.

    I added the function into this:

    https://plus.google.com/u/0/photos/photo/102595150546308270052/6182559934199841266?sqid=109017480579703391739&ssid=0840519e-a80a-4a37-9d31-3c536210e11f

Leave a Reply

Your email address will not be published. Required fields are marked *