about summary refs log tree commit diff stats
path: root/themes/hacker
Commit message (Collapse)AuthorAgeFilesLines
* Document statusbar.time theme featureMichael Vetter2019-06-051-0/+1
| | | | | | | Users where under the impression that you can't colour the time displayed in the statusbar. Let's add it to the template, and also change all themes to use the same colour for the time as for the statusbar text.
* Add main.help.header to themesJames Booth2016-10-301-0/+1
|
* Highlight room trigger termsJames Booth2016-02-131-0/+1
|
* Added roommention.term theme optionJames Booth2016-02-101-0/+1
|
* Added mention and trigger themes for consoleJames Booth2016-02-101-0/+2
|
* Updated themesJames Booth2016-01-241-0/+1
|
* Added roster contact themesJames Booth2016-01-141-0/+18
|
* Added roster room themesJames Booth2016-01-091-0/+2
|
* Updated themes time display settingsJames Booth2015-07-011-1/+1
|
* Added receipt.sent theme settingJames Booth2015-03-151-1/+2
|
* Updated themes for releaseJames Booth2015-02-261-20/+22
|
* Updated hacker themeJames Booth2014-11-171-9/+19
|
* Updated themes with roommention settingJames Booth2014-07-171-0/+1
|
* Added otr settings to themesJames Booth2014-03-281-0/+9
|
* Changed theme propertiesJames Booth2012-12-031-10/+10
|
* Added time to themes, and some example themesJames Booth2012-11-221-0/+27
end -- include the modifier(s) when the non-modifer is pressed App.keychord_press(App.combine_modifiers(key), key) end function App.combine_modifiers(key) local result = '' if App.ctrl_down() then result = result..'C-' end if App.alt_down() then result = result..'M-' end if App.shift_down() then result = result..'S-' -- don't try to use this with letters/digits end if App.cmd_down() then result = result..'s-' end result = result..key return result end function App.any_modifier_down() return App.ctrl_down() or App.alt_down() or App.shift_down() or App.cmd_down() end function App.ctrl_down() return App.modifier_down('lctrl') or App.modifier_down('rctrl') end function App.alt_down() return App.modifier_down('lalt') or App.modifier_down('ralt') end function App.shift_down() return App.modifier_down('lshift') or App.modifier_down('rshift') end function App.cmd_down() return App.modifier_down('lgui') or App.modifier_down('rgui') end function App.is_cursor_movement(key) return array.find({'left', 'right', 'up', 'down', 'home', 'end', 'pageup', 'pagedown'}, key) end array = {} function array.find(arr, elem) if type(elem) == 'function' then for i,x in ipairs(arr) do if elem(x) then return i end end else for i,x in ipairs(arr) do if x == elem then return i end end end return nil end function array.any(arr, f) for i,x in ipairs(arr) do local result = f(x) if result then return result end end return false end