implement linux theme drawing refactored from removed lnxcontext.cpp