-
Notifications
You must be signed in to change notification settings - Fork 2
Dark mode - resolve #38 #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Jimvy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Observations :
- Mon thème système est le mode sombre. Quand je démarre l'application, par défaut il prend le thème sombre, mais dans les réglages il indique que c'est le thème clair. Il faudrait avoir une option par défaut "thème natif".
- Pour cette même raison, passer en thème clair requiert de d'abord passer sur le thème sombre, puis de passer sur le thème clair.
- Enfin, restart l'application (la kill via la liste des apps récentes, puis la relancer via le launcher) ne conserve pas l'ancien réglage du thème, il se remet à la valeur par défaut (thème "clair" mais sombre si système sombre).
|
Autres bugs pour le moment présents :
J'espère enfin y regarder aujourd'hui (au lieu de travailler sur Refinery City), notamment pour faire les choses suivantes :
|
|
Observations :
Si le système est en thème clair (aïe les yeux) :
A mon avis l'application spécifie très mal les thèmes qu'elle supporte |
TGLuis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je vais tester ça sur mon gsm :) et j'attends tes réponses sur mes commentaires. A part ça 💯
| fun activateNightMode() { | ||
| sharedPref.edit().putBoolean(NIGHTMODE_ACTIVATED, true).apply() | ||
| } | ||
|
|
||
| fun deactivateNightMode() { | ||
| sharedPref.edit().putBoolean(NIGHTMODE_ACTIVATED, false).apply() | ||
| } | ||
|
|
||
| fun isNightModeActivated() : Boolean { | ||
| return sharedPref.getBoolean(NIGHTMODE_ACTIVATED, false) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'habitude quand il y a un night mode dans les app, il y a pas un mode "système default"?
| <color name="colorPrimary">#EFA800</color> <!-- text in black --> | ||
| <color name="colorPrimaryDark">#b77900</color> <!-- text in black --> | ||
| <color name="colorPrimaryLight">#ffd949</color> <!-- text in black --> | ||
| <color name="colorPrimaryDarkMode">#f7d97f</color> <!-- text in black --> | ||
| <color name="colorSecondary">#8e24aa</color> <!-- text in white --> | ||
| <color name="colorSecondaryDark">#5c007a</color> <!-- text in white --> | ||
| <color name="colorSecondaryLight">#c158dc</color> <!-- text in black --> | ||
| <color name="colorSecondaryDarkMode">#cd93d8</color> <!-- text in black --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je comprends pas les commentaires pour "text in white/black" ?
|
Après test, de l'app, j'ai rien trouvé de plus que JM comme bug. |
Voilà une PR vu que c'est ce que tu veux Luis :P
J'ai fait un NightMode qui s'active via un paramètre dans le fragment associé. Ca change tous les layouts utilisés dans l'app et ça enregistre la préférence dans les sharedPreferences
J'en ai profité pour faire un lifting sur l'app en améliorant la lisibilité du thème clair