Giter VIP home page Giter VIP logo

brminnick / darkmodesplashscreen Goto Github PK

View Code? Open in Web Editor NEW
33.0 5.0 6.0 679 KB

A sample app for iOS and Android written in Xamarin.Forms showing how to implement a Splash Page for Dark Mode

Home Page: https://codetraveler.io/2019/10/11/creating-a-dark-mode-splash-screen/

License: MIT License

C# 100.00%
xamarin dark-mode dark-theme dark-appearance xamarin-forms xamarin-android xamarin-ios splash-screen splashscreen splash-page

darkmodesplashscreen's Introduction

Dark Mode Splash Screen

Now that iOS 13 and Android Q support Dark Mode, we'll want our app's Splash Screen to be dark too. This sample demonstrates how to create a Splash Screen that is dark when Dark Mode is enabled, but still light when Dark Mode is disabled.

I recently implemented this splash screen for my app, Punday, on iOS and Android. Since Punday is not open-source, I put together this sample and assembled a walkthrough demonstrating how I created Punday's splash screen.

You can find the walkthrough to implement a Dark Mode Splash Screen here: https://codetraveler.io/2019/10/11/creating-a-dark-mode-splash-screen/

iOS, Dark Appearance Enabled iOS Dark Appearance Disabled Android Dark Theme Enabled Android Dark Theme Disabled
iOS Splash Screen, Dark Appearance Enabled iOS Splash Screen, Dark Appearance Disabled Android Splash Screen, Dark Theme Enabled Android Splash Screen, Dark Theme Disabled

darkmodesplashscreen's People

Contributors

brminnick avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

darkmodesplashscreen's Issues

Android allway theme Light

I run your sample code: Android allway theme Light. But iOS working correctly!
I use my Phone Android 9 and Genymotion API 28

Blank white screen showing every time app launch regardless appearance (dark/light)

I tried following this but no luck in getting the splash screen to even show up. Initially I had single image that my ImageView in the story board was using which worked but when I created the assets new image set "SplashScreenImage" and use this for the ImageView in the SplashScreen.storyboard but only blank white screen appears when splash screen shows on app launch.

I've added added in the 2x and 3x image files for dark and light mode and only support iOS 10+. As I only replaced the original image which was not appearance aware for dark or light mode and set that ImageView source to the new image set you in your sample project and I though this would work fine but not working.

In info.plist I also have

<key>UILaunchStoryboardName</key>
<string>SplashScreen</string>

[Question] Custom color on background

Hello,

Thanks for this git repository!

However I wanted to know if it is possible to put a custom color in the background especially in the ios storyboard?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.