Giter Site home page Giter Site logo

Dark Mode! about fx-fotos HOT 10 CLOSED

keyvan-m-sadeghi avatar keyvan-m-sadeghi commented on May 7, 2024
Dark Mode!

from fx-fotos.

Comments (10)

emadbaqeri avatar emadbaqeri commented on May 7, 2024 2

Hey there, is there anyone working on this? I think I can do this. Can you please assign this to me?

from fx-fotos.

emadbaqeri avatar emadbaqeri commented on May 7, 2024 1

@ehsan6sha Hey, today I started to implement the dark mode for the app. Are we going to have a settings in our app for controlling the dark mode of the app on it's inside implementation or we are just going to obbey from the device settings and device theme. I think we can have this item in settings menu and a global context for storing this as state on it, if the device theme mode was dark we can detect it at the first time we are running the app and decided what to do with the global theme of the app.

from fx-fotos.

emadbaqeri avatar emadbaqeri commented on May 7, 2024

@ehsan6sha @keyvan-m-sadeghi I think this is going to be done with ThemeProvider wrapper module around the whole App module, yes? or maybe I'm going to utilize the react-native-paper ThemeProvider or DarkTheme provider. If I'm not right please correct me.

from fx-fotos.

ehsan6sha avatar ehsan6sha commented on May 7, 2024

@ehsan6sha @keyvan-m-sadeghi I think this is going to be done with ThemeProvider wrapper module around the whole App module, yes? or maybe I'm going to utilize the react-native-paper ThemeProvider or DarkTheme provider. If I'm not right please correct me.

I trust you :D I say anything that is open source and has a good community and requires adding less complications works. I suggest something that is of material design type so that we can leverage in all themings

from fx-fotos.

emadbaqeri avatar emadbaqeri commented on May 7, 2024

@ehsan6sha @keyvan-m-sadeghi I think this is going to be done with ThemeProvider wrapper module around the whole App module, yes? or maybe I'm going to utilize the react-native-paper ThemeProvider or DarkTheme provider. If I'm not right please correct me.

I trust you :D I say anything that is open source and has a good community and requires adding less complications works. I suggest something that is of material design type so that we can leverage in all themings

Thank you really much, glad to hear. So I think we should go up with the themeprovider of the react navigation it self for having more consistant user interface and less complication.

from fx-fotos.

ehsan6sha avatar ehsan6sha commented on May 7, 2024

@ehsan6sha Hey, today I started to implement the dark mode for the app. Are we going to have a settings in our app for controlling the dark mode of the app on it's inside implementation or we are just going to obbey from the device settings and device theme. I think we can have this item in settings menu and a global context for storing this as state on it, if the device theme mode was dark we can detect it at the first time we are running the app and decided what to do with the global theme of the app.

Since we need a settings page regardless of theme, I believe the best is to have the control option in settings to give the user full control

from fx-fotos.

emadbaqeri avatar emadbaqeri commented on May 7, 2024

@ehsan6sha Hey, today I started to implement the dark mode for the app. Are we going to have a settings in our app for controlling the dark mode of the app on it's inside implementation or we are just going to obbey from the device settings and device theme. I think we can have this item in settings menu and a global context for storing this as state on it, if the device theme mode was dark we can detect it at the first time we are running the app and decided what to do with the global theme of the app.

Since we need a settings page regardless of theme, I believe the best is to have the control option in settings to give the user full control

So then I'm going to implement that with redux like library for giving user full controll on the theme state, these days I'm just somehow living in the office and working really on my companies projects maybe it may take a bit for fixing this issue. Is that going to be a problem?

from fx-fotos.

ehsan6sha avatar ehsan6sha commented on May 7, 2024

@ehsan6sha Hey, today I started to implement the dark mode for the app. Are we going to have a settings in our app for controlling the dark mode of the app on it's inside implementation or we are just going to obbey from the device settings and device theme. I think we can have this item in settings menu and a global context for storing this as state on it, if the device theme mode was dark we can detect it at the first time we are running the app and decided what to do with the global theme of the app.

Since we need a settings page regardless of theme, I believe the best is to have the control option in settings to give the user full control

So then I'm going to implement that with redux like library for giving user full controll on the theme state, these days I'm just somehow living in the office and working really on my companies projects maybe it may take a bit for fixing this issue. Is that going to be a problem?

Thank you Emad. No problem at all and it's very much appreciated. Just two notes from my experience which we can discuss if you think otherwise:

1- please use recoil (it's already in library list and we used recoil to manage states and not redux)

2- please try to keep state changes to minimum and per your experience use animated or reanimated (for example for hiding and showing elements I used opacity and reanimated instead of a boolean state change to minimize re-renders).

from fx-fotos.

emadbaqeri avatar emadbaqeri commented on May 7, 2024

@ehsan6sha Hey, today I started to implement the dark mode for the app. Are we going to have a settings in our app for controlling the dark mode of the app on it's inside implementation or we are just going to obbey from the device settings and device theme. I think we can have this item in settings menu and a global context for storing this as state on it, if the device theme mode was dark we can detect it at the first time we are running the app and decided what to do with the global theme of the app.

Since we need a settings page regardless of theme, I believe the best is to have the control option in settings to give the user full control

So then I'm going to implement that with redux like library for giving user full controll on the theme state, these days I'm just somehow living in the office and working really on my companies projects maybe it may take a bit for fixing this issue. Is that going to be a problem?

Thank you Emad. No problem at all and it's very much appreciated. Just two notes from my experience which we can discuss if you think otherwise:

1- please use recoil (it's already in library list and we used recoil to manage states and not redux)

2- please try to keep state changes to minimum and per your experience use animated or reanimated (for example for hiding and showing elements I used opacity and reanimated instead of a boolean state change to minimize re-renders).

Aha woth these notes and points I think I should utilize recoil library. That's amazing trick for reducing the rerenders I will try to use the technique if needed. Thank you.

from fx-fotos.

ghorbani-m avatar ghorbani-m commented on May 7, 2024

Dark/light mode feature done #162

from fx-fotos.

Related Issues (20)

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.