From: Eugen Z. <e.z...@gm...> - 2012-08-07 16:35:59
|
Alexey Khmara <ale...@gm...> (2012-08-07 16:18): > Hello! > > I'm trying to figure out how to change color cheme on the fly, but > without any results, > so I'm asking for help. What I want to do is implement titlebar color > change on language toggle (I'm using mod_xkb). > > Can someone give me some directions how to do this? Basically the same code as in look_*.lua configs should do it, like this: de.defstyle("tab", { de.substyle("active-selected", { background-colour="#000000", }) }) gr:refresh() This code works for me being executed via Lua code query box (Mod+F3). Perhaps it should work in scripts as well. However, it doesn't work if "tab-frame" style is set (I'm not sure if this is a bug or proper work of subtle style definitions "scoring"). In my case commenting out the following lines from lookcommon_clean.lua helped: de.defstyle("tab-frame", { spacing = 1, }) Hope it helps. |