public static int getKeyInt(final int prefKeyId) {
        return CgeoApplication.getInstance() == null ? -1 : CgeoApplication.getInstance().getResources().getInteger(prefKeyId);
    }
Follow the global system setting for dark mode.
main/src/main/java/cgeo/geocaching/settings/Settings.java