mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-31 19:24:55 +01:00
Fix formatting in DarkMode.md
Hopefully correctly interpreted from original text :)
This commit is contained in:
parent
485bde7ff2
commit
e8f2fe3d64
@ -3,52 +3,48 @@
|
|||||||
https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface
|
https://developer.apple.com/documentation/appkit/supporting_dark_mode_in_your_interface
|
||||||
https://developer.apple.com/videos/play/wwdc2018/210/
|
https://developer.apple.com/videos/play/wwdc2018/210/
|
||||||
|
|
||||||
Accent colors
|
- Accent colors
|
||||||
Can do preference for content — see Mail for example
|
- Can do preference for content — see Mail for example
|
||||||
linkColor — see if can use in web view
|
- linkColor — see if can use in web view
|
||||||
icons in sidebar should not be vibrant
|
- icons in sidebar should not be vibrant
|
||||||
Use opaque grayscale colors, not opacity, on top of vibrancy
|
- Use opaque grayscale colors, not opacity, on top of vibrancy
|
||||||
Colors in asset catalogs
|
- Colors in asset catalogs
|
||||||
Specify for different appearances
|
- Specify for different appearances
|
||||||
High contrast colors
|
- High contrast colors
|
||||||
Dynamic system colors
|
- Dynamic system colors
|
||||||
Resolved at draw time
|
- Resolved at draw time
|
||||||
Pictures in asset catalogs
|
- Pictures in asset catalogs
|
||||||
Template images
|
- Template images
|
||||||
contentTintColor new API - NSImageView, NSButton
|
- contentTintColor new API - NSImageView, NSButton
|
||||||
Render as template image thing in IB
|
- Render as template image thing in IB
|
||||||
controlAccentColor
|
- controlAccentColor
|
||||||
color.withSystemEffect(.pressed)
|
- color.withSystemEffect(.pressed)
|
||||||
Avoid nonsemantic materials
|
- Avoid nonsemantic materials
|
||||||
Semantic materials: popover, menu, sidebar, selection, titlebar, etc.
|
- Semantic materials: popover, menu, sidebar, selection, titlebar, etc.
|
||||||
visualEffectView.material = .popover
|
- visualEffectView.material = .popover
|
||||||
Desktop tinted background: window background, underpage, content background
|
- Desktop tinted background: window background, underpage, content background
|
||||||
contentBackground default for collection views
|
- contentBackground default for collection views
|
||||||
Use NSAppearance to override inheritance
|
- Use NSAppearance to override inheritance
|
||||||
.aqua
|
- .aqua
|
||||||
.darkAqua
|
- .darkAqua
|
||||||
effectiveAppearance
|
- effectiveAppearance
|
||||||
|
|
||||||
Advanced Dark Mode:
|
Advanced Dark Mode:
|
||||||
https://developer.apple.com/videos/play/wwdc2018/218/
|
https://developer.apple.com/videos/play/wwdc2018/218/
|
||||||
|
|
||||||
Build with 10.14 SDK
|
- Build with 10.14 SDK
|
||||||
NSAppearanceCustomization
|
- NSAppearanceCustomization
|
||||||
NSView, NSWindow conforms
|
- NSView, NSWindow conforms
|
||||||
NSWindow.appearanceSource
|
- NSWindow.appearanceSource
|
||||||
Configure NSBox to fill color to get desired material
|
- Configure NSBox to fill color to get desired material
|
||||||
visualEffectView.maskImage
|
- visualEffectView.maskImage
|
||||||
Can do drawing handler images - for instance with a path
|
- Can do drawing handler images - for instance with a path
|
||||||
backgroundStyle on rows - .normal and .emphasized
|
- backgroundStyle on rows - .normal and .emphasized
|
||||||
|
|
||||||
Backward deployment…
|
- Backward deployment…
|
||||||
Most system colors are available pre-Mo
|
- Most system colors are available pre-Mo
|
||||||
Asset catalogs available on 10.13
|
- Asset catalogs available on 10.13
|
||||||
Find hardcoded colors, use asset catalog colors
|
- Find hardcoded colors, use asset catalog colors
|
||||||
NSColor(named: "SomeColor")
|
- NSColor(named: "SomeColor")
|
||||||
Prefer block-based image drawing instead of lockFocus
|
- Prefer block-based image drawing instead of lockFocus
|
||||||
Prefer NSTextField to drawing strings
|
- Prefer NSTextField to drawing strings
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user