mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
Add textual indicator for module support
If color output was surpressed, there was no way to tell in the cmake summary, if a module is actually enabled or not. Now each module is prefixed with either a "[X]" to indicate it's enabled or a "[ ]" to indicate it's not
This commit is contained in:
parent
d35abc7620
commit
2d1e3c215f
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ endfunction()
|
|||
|
||||
function(colored_option text flag)
|
||||
if(${flag})
|
||||
message_colored(STATUS "${text}" "32;1")
|
||||
message_colored(STATUS "[X]${text}" "32;1")
|
||||
else()
|
||||
message_colored(STATUS "${text}" "37;2")
|
||||
message_colored(STATUS "[ ]${text}" "37;2")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
Loading…
Reference in a new issue