public String getPreferenceValue(final @NonNull Context context) {
            return context.getString(preferenceValue);
        }
Follow the global system setting for dark mode.
main/src/main/java/cgeo/geocaching/settings/Settings.java