redth-org / BTProgressHUD

Port to Xamarin.iOS of the SVProgressHUD
Other
118 stars 64 forks source link

Support for dark mode #73

Closed andreas-nesheim closed 4 years ago

andreas-nesheim commented 4 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Added support for dark mode. The background color of the modal will be black and the label color white when the user is in dark mode. Added for both the HUD itself and for the progress ring.

:arrow_heading_down: What is the current behavior?

Colors are hardcoded to be black text on white background, even when the device is in dark mode.

:new: What is the new behavior (if this is a feature change)?

Dynamically uses the preferred background/foreground colors.

:boom: Does this PR introduce a breaking change?

No.

:bug: Recommendations for testing

Run the samples app in both light and dark mode. Check that dark mode dynamically switches colors and that light mode behaves as expected.

:memo: Links to relevant issues/docs

Screenshots for dark mode: Simulator Screen Shot - iPhone 11 Pro Max - 2019-12-13 at 00 09 40 Simulator Screen Shot - iPhone 11 Pro Max - 2019-12-13 at 00 09 47

:thinking: Checklist before submitting

Cheesebaron commented 4 years ago

Thanks! Will get this out soon.