1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-25 13:55:47 -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:
patrick96 2017-07-13 00:32:47 +02:00 committed by Michael Carlberg
parent d35abc7620
commit 2d1e3c215f

View file

@ -14,9 +14,9 @@ endfunction()
function(colored_option text flag) function(colored_option text flag)
if(${flag}) if(${flag})
message_colored(STATUS "${text}" "32;1") message_colored(STATUS "[X]${text}" "32;1")
else() else()
message_colored(STATUS "${text}" "37;2") message_colored(STATUS "[ ]${text}" "37;2")
endif() endif()
endfunction() endfunction()