Giter Club home page Giter Club logo

capacitor-dark-mode-demo's Introduction

capacitor-dark-mode-demo  GitHub version

This Ionic application provides a demo of all of the capabilities of the capacitor-dark-mode Capacitor 4 plugin. It has been tested on Android API 28-32.

Here is this app running on both iOS and Android.

iOS Android
ios.mp4
android.mp4

Installation

git clone https://github.com/aparajita/capacitor-dark-mode-demo.git
cd capacitor-dark-mode-demo
pnpm install # npm install
pnpm build # npm run build

Usage

Web

To launch the demo in a browser:

pnpm dev  # npm run dev

Once the demo is open, you can switch between appearance modes. When the appearance is System, switching the system between dark and light mode will change the appearance of the app and display an alert to confirm the change.

Native

To launch the demo in Xcode or Android Studio:

pnpm ios.dev  # npm run ios.dev
pnpm android.dev  # npm run android.dev

Once Xcode/Android Studio opens, select the device or simulator you wish to run the demo on (since you are running in Vite’s dev mode, be sure to use a recent OS version). Once the app is open, it behaves as it does on the web.

On Android, you can choose whether to sync the status bar with the appearance. By default they are synced.

Enjoy!

capacitor-dark-mode-demo's People

Contributors

aparajita avatar

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.