-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Dark Mode: Primary Labels #4175
Conversation
Moved Color to its own Platform file
@liuxuan30 Let me know if there are any issues. |
follow code style
@jjatie I searched NSUIColor.black and shows below, I assume you already checked? There is some colors like attrString = NSMutableAttributedString(string: newValue!)
attrString?.setAttributes([
.foregroundColor: NSUIColor.black,
.font: NSUIFont.systemFont(ofSize: 12.0),
.paragraphStyle: paragraphStyle
], range: NSMakeRange(0, attrString!.length)) /// the color drawing borders around the bars.
open var barBorderColor = NSUIColor.black open class BarChartDataSet: BarLineScatterCandleBubbleChartDataSet, IBarChartDataSet
{
private func initialize()
{
self.highlightColor = NSUIColor.black do you think we should also change them? For the border+highlight colors, I think it may be user's duty to do it, so we should leave it there; |
Codecov Report
@@ Coverage Diff @@
## master #4175 +/- ##
==========================================
+ Coverage 41.47% 41.48% +<.01%
==========================================
Files 119 120 +1
Lines 14034 14035 +1
==========================================
+ Hits 5821 5822 +1
Misses 8213 8213
Continue to review full report at Codecov.
|
I think it's unclear whether or not we should change border and highlight colors, and users have a way to change it themselves. If we decided we should, we can do it in a later PR. Perhaps a separate I think you might have an older copy checked out, because I only found one text element I missed. |
let's ignore line color and border colors. |
extension UIColor | ||
{ | ||
@available(iOS, introduced: 8.0, obsoleted: 13.0) | ||
@available(tvOS, introduced: 9.0, obsoleted: 13.0) |
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.
API not working
reply from Apple
|
Added system dark mode support for primary label colors in the frameworkMoved Color to its own Platform file
Issue Link 🔗
#4133
#3742
Goals ⚽
Introduce dark mode for label and gracefully degrade to black for the older operating systems
Implementation Details 🚧
Introduced
NSUIColor.label
to match modern (UI/App)Kit semantic colors for earlier versions of the respective OSes.Testing Details 🔍
N/A