Uli Schlachter
28e8894f05
Give the docs for gears.color some improvements
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2018-01-22 11:53:39 +01:00
Uli Schlachter
8cc469322f
ensure_pango_color: Support hex values with alpha
...
Reference: https://github.com/awesomeWM/awesome/pull/2129#discussion_r155397507
Signed-off-by: Uli Schlachter <psychon@znc.in>
2018-01-13 02:15:30 +01:00
Luke Bonham
d3b8088c1b
ldoc: fixes in lib/gears/color.lua and objects/client.c
2017-03-12 11:45:41 +01:00
Kevin Zander
0066257a59
Move ensure_pango_color out of awful.util into gears.color
...
Update deprecated awful.util.ensure_pango_color calls to gears.color.ensure_pango_color calls
2017-03-08 15:28:48 -06:00
MoreThanOneAnimal
6558164e53
Create artificial gears.color documentation.
...
Point from parse_color function to gears.color in documentation.
Fix minor issues (typos, indentation) in docs.
2016-11-28 20:23:46 -08:00
MoreThanOneAnimal
495e579fdb
parse_color function refactoring:
...
- simplified parsing logic,
- return nil for incorrect input,
- update tests and doc.
2016-11-28 20:22:39 -08:00
Uli Schlachter
259c4f716f
Remove @release @AWESOME_VERSION@ everywhere ( #1157 )
...
It does not provide much value. The version number is already known to
ldoc globally in the "description" variable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-10-09 22:36:20 +02:00
Emmanuel Lepage Vallee
2aa15c9454
gears.color: Add transparent constant
...
Avoid repetitive "#00000000 " for transparent wiboxes and such
elements.
2016-03-04 03:16:56 -05:00
Uli Schlachter
8c26e2dab4
Fix all luacheck warnings in lib/gears
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-02-12 09:11:50 +01:00
Uli Schlachter
79d3dc003a
gears.color: Add support for named colors
...
Oh hey, Pango exports an API that allows to query for named colors based on the
famous rgb.txt! Let's use that!
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-01-17 14:27:29 +01:00
Uli Schlachter
0956aa01d9
Add support for short/long colors
...
This adds support to gears.color.parse_color to parse things like "#fff" (one
character per color component, without alpha) and "#ffff0000ffff0000" (four
characters per component, with alpha).
This makes sense on its own, but should also help with
https://github.com/awesomeWM/awesome/issues/585 .
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-01-17 14:16:40 +01:00
Daniel Hahler
4bffa7e47e
doc: fix unintentional rendering as code due to indent
2015-10-14 00:22:26 +02:00
actionless
e023fd0640
fix(lib: gears: color): use surface for recolor
2015-09-04 21:09:46 +02:00
actionless
2f340f05ff
feat(themes: xresources): recolor layout icons
2015-09-04 21:08:18 +02:00
Uli Schlachter
a239b2cac7
Use gears.cache to replace some other caches
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-07-25 15:08:00 +02:00
Julian Wollrath
6cc7be512c
Remove the *.in from all files.
...
Signed-off-b: Julian Wollrath <jwollrath@web.de>
2015-06-19 22:33:32 +02:00