aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/colors.c
Commit message (Collapse)AuthorAge
* Declare all struct cmd_handler arrays constLibravatar Manuel Stoeckl2021-02-04
| | | | And make the functions handling these arrays use const types.
* cmd/bar/colors: fix dereference of null pointerLibravatar Antonin Décimo2020-07-30
| | | | | | `!*rgba` tests if the first byte of rgba isn't `'\0'`. `hex_to_rgba_hex` returns NULL if `parse_color` fails. There's a null pointer dereference in that case. The intended behavior is `!rgba`.
* bar_cmd_colors: remove add_colorLibravatar Brian Ashworth2019-12-28
| | | | | | | | | | | | This is the third commit in a series of commits to refactor color handling in sway. This removes add_color from commands.c. It was only being used by bar_cmd_colors. This also changes the functions to use parse_color which is used to validate rgb(a) colors throughout the code base and is also what i3bar is using to parse the colors after they are passed over ipc. After parsing the color and ensuring it is valid, the rgba hex string is then generated using snprintf. This refactor also ensures that all the colors for the command are valid before applying any of them.
* Remove now-unused "input" argument of cmd_results_newLibravatar M Stoeckl2019-01-14
| | | | | | | | | Patch tested by compiling with `__attribute__ ((format (printf, 2, 3)))` applied to `cmd_results_new`. String usage constants have been converted from pointers to arrays when encountered. General handler format strings were sometimes modified to include the old input string, especially for unknown command errors.
* swaybar: fix focused_statusline color parsing.Libravatar Rune Morling2018-12-29
|
* Address first round of review for generic blocksLibravatar Brian Ashworth2018-06-02
|
* Make command block implementation genericLibravatar Brian Ashworth2018-06-02
|
* Clean up imported bar commandsLibravatar Drew DeVault2018-03-29
|
* Add bar configuration commandsLibravatar Drew DeVault2018-03-29
|
* Move everything to sway/old/Libravatar Drew DeVault2017-11-18
|
* Fix indentation issuesLibravatar Drew DeVault2016-12-15
|
* Handle allocation failure in commandsLibravatar Drew DeVault2016-12-15
|
* change bar colors from char[10] to *charLibravatar D.B2016-11-02
| | | | | This commit removes has_* booleans from bar color struct. It also generalizes of functions in commands/bar/colors.c.
* add bar colours for focused_(workspace|statusline|separator)Libravatar D.B2016-11-02
| | | | | If these aren't defined in config, color settings without 'focused_' prefix are used as a fallback.
* use urgent_ws color in swaybar if binding_mode is undefinedLibravatar D.B2016-11-02
|
* merge in latest commitsLibravatar Zandr Martin2016-09-02
|
* refactor commands.cLibravatar Zandr Martin2016-09-01