Please try this in a C file:
#if LV_THEME_DEFAULT_DARK == 1 #error "dark on" #else #error "dark off" #endif