Skip to content
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

iOS 13 Dark Mode? #184

Open
ghost opened this issue Oct 7, 2019 · 18 comments
Open

iOS 13 Dark Mode? #184

ghost opened this issue Oct 7, 2019 · 18 comments
Assignees
Labels
enhancement New feature or request hacktoberfest A label dedicated to issues that would be participating in Hacktoberferst

Comments

@ghost
Copy link

ghost commented Oct 7, 2019

Does this library support iOS 13's dark mode?

@croossin
Copy link
Contributor

croossin commented Oct 8, 2019

We have added no additional logic, color schemes, etc. to deal with iOS 13's dark mode. If you would like to take up the research and/or implementation on that, it would be greatly appreciated. We can add a Hacktoberfest label as well.

@croossin croossin added enhancement New feature or request hacktoberfest A label dedicated to issues that would be participating in Hacktoberferst labels Oct 8, 2019
@lkeude96
Copy link

lkeude96 commented Oct 9, 2019

Hello @croossin. I will probably give it a shot :)

@croossin
Copy link
Contributor

croossin commented Oct 9, 2019

Love it ;) Will assign the issue to you!

@lkeude96 Would also be cool to try and remove any sort of Turbo or Mint references so that the framework can be as generic as possible

@lkeude96
Copy link

lkeude96 commented Oct 10, 2019

First Pass

👋 @croossin after looking at the codebase and the current available themes, I was thinking of potentially creating CardPartsSystemTheme and CardPartsCustomTheme (not sure if those would be the final names yet).

  • CardPartsSystemTheme would utilize the new Dynamic and Semantic System colors. Also this new theme would be used as the new default theme for CardParts.theme.
  • CardPartsCustomTheme would use the init(dynamicProvider:) initializer on UIColor with some of the original turbo color values. I'm not sure what would the adaptive color equivalents be but I could potentially come up a with a decent dark palette from them. CardPartsCustomTheme would mainly be used as an example to how to support dark mode.
  • In addition, I would update the README's Themes and add a subsection explaining how to support dark mode for card part.

Questions:

  • For the Turbo and Mint themes/references, Would be removing them entirely or just rename them?

Thank you, 😄

@croossin
Copy link
Contributor

I like the idea of the system and custom themes..!

I'm thinking that we can remove them and just add any of the values we are using inside the themes as a generic color extension. I just want to make the project as generic as possible.

Thanks for all the input!

@lkeude96
Copy link

lkeude96 commented Oct 11, 2019

Work in progress.... (CardPartsSystemTheme) 😅

@lwdupont
Copy link
Contributor

Woo sweet!!

@ghost
Copy link
Author

ghost commented Oct 11, 2019

@lkeude96 Thanks for looking into it. Looks great. Looking forward for the update soon!

@croossin
Copy link
Contributor

This is awesome, @lkeude96 ! Great job. Keep us updated

@croossin
Copy link
Contributor

@lkeude96 How's it coming along?

@lkeude96
Copy link

lkeude96 commented Oct 23, 2019

@croossin 👋 Hi sorry for the delay. it's coming along great. Took slightly longer than expected due to some additional workaround in order to maintain backward compatibility. I will be opening a WIP pr soon to start getting feedback and in order to discuss how we want to expose those API to someone using the library. 😄

@croossin
Copy link
Contributor

Sounds good, @lkeude96 !

@lwdupont
Copy link
Contributor

Can't wait! :)

@croossin
Copy link
Contributor

@lkeude96 - how’s it coming along? Think we will be able to merge before end of month?

@lkeude96 lkeude96 mentioned this issue Oct 30, 2019
7 tasks
@lkeude96
Copy link

@croossin Just open a WIP PR. 😅One of the main, thing i was still trying to get to work are shadows 🤔

@croossin
Copy link
Contributor

@lkeude96 Are shadows the only things missing from having dark mode support?

@croossin croossin mentioned this issue Jan 7, 2020
7 tasks
@Draelyre
Copy link

How do we make the background of the CardPartsViewController dark like in the image @lkeude96 sent?

@yohaoquan
Copy link

Hey guys. Any update on this? Or anyway I could change the background colour of the VC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest A label dedicated to issues that would be participating in Hacktoberferst
Projects
None yet
Development

No branches or pull requests

5 participants