Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
desktop:colors:macos [2019/10/23 00:53]
127.0.0.1 external edit
desktop:colors:macos [2020/04/16 11:00] (current)
agcyphers [Color Methods]
Line 48: Line 48:
 | BevelLight | ::: | | BevelLight | ::: |
 | BevelLightHighlight | ::: | | BevelLightHighlight | ::: |
 +| Black | ::: |
 +| Cyan | ::: |
 +| DarkGray | ::: |
 | GridLines | ::: | | GridLines | ::: |
 | Highlight | ::: | | Highlight | ::: |
 | HighlightFind | ::: | | HighlightFind | ::: |
 +| LightGray | ::: |
 +| Magenta | ::: |
 +| Purple | ::: |
 | Separator | ::: | | Separator | ::: |
 | Shadow | ::: | | Shadow | ::: |
Line 81: Line 87:
 | TextWindowSelected | ::: | | TextWindowSelected | ::: |
 | TextWindowTitle | ::: | | TextWindowTitle | ::: |
 +| White | ::: |
  
 ==== Methods ==== ==== Methods ====
Line 87: Line 94:
 | AppearanceListenerRemove(modeCallback as AppearanceChanged) | Removes the specified listener delegate from the call stack. All added delegates should be removed when no longer needed. | | AppearanceListenerRemove(modeCallback as AppearanceChanged) | Removes the specified listener delegate from the call stack. All added delegates should be removed when no longer needed. |
 | AppearanceListenerRemoveAll() | Removes all appearance delegate listeners. Ideally listeners should be removed when no longer needed, but if you run in to an issue where you are leaking listeners, you can call this to clear the stack. Note that this will break the basic IsDarkMode functionality for this module, so use with caution. | | AppearanceListenerRemoveAll() | Removes all appearance delegate listeners. Ideally listeners should be removed when no longer needed, but if you run in to an issue where you are leaking listeners, you can call this to clear the stack. Note that this will break the basic IsDarkMode functionality for this module, so use with caution. |
 +| IsColorDifferentiated() as Boolean | Returns True when the user has ''Differentiate without color'' unchecked in Display Accessibility settings. |
 +| IsHighContrast() as Boolean | Returns True when the user has checked ''Increase contrast''  in Display Accessibility settings. |
 +| IsInvertedColors() as Boolean | Returns True when the user has checked ''Invert colors'' in Display Accessibility settings. |
 +| IsReducedMotion() as Boolean | Returns True when the user has checked ''Reduce motion'' in Display Accessibility settings. |
 +| IsReducedTransparency() as Boolean | Returns True when the user has checked ''Reduce transparency'' in Display Accessibility settings. |
 | IsDarkMode() as Boolean | Uses a cached value system that is updated upon initialization and when the user changes the system color scheme to reduce OS calls. | | IsDarkMode() as Boolean | Uses a cached value system that is updated upon initialization and when the user changes the system color scheme to reduce OS calls. |
 | toDictionary() as Dictionary | Returns a Dictionary of all color methods with all SystemEffects applied. | | toDictionary() as Dictionary | Returns a Dictionary of all color methods with all SystemEffects applied. |