https://github.com/miyako/4d-plugin-get-system-colors
for macOS (10.13 SDK, before dark mode)
https://github.com/miyako/4d-plugin-get-system-colors
4d-plugin
Last synced: 2 months ago
JSON representation
for macOS (10.13 SDK, before dark mode)
- Host: GitHub
- URL: https://github.com/miyako/4d-plugin-get-system-colors
- Owner: miyako
- License: mit
- Created: 2018-11-01T08:32:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T05:11:07.000Z (about 3 years ago)
- Last Synced: 2025-01-08T17:55:35.553Z (over 1 year ago)
- Topics: 4d-plugin
- Language: C
- Homepage:
- Size: 6.95 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](LICENSE)

# 4d-plugin-get-system-colors
for macOS (10.13 SDK before dark mode & 10.14 SDK)
* get `controlAccentColor` in `deviceRGBColorSpace`
```4d
$colors:=Get system colors
$controlAccentColor:=$colors.controlAccentColor
```
* blend `controlAccentColor` with another color and fraction (between `0` to `1`)
```4d
$colors:=Get system colors(Blend with windowBackgroundColor; 0.7)
$controlAccentColor:=$colors.controlAccentColor
$colors:=Get system colors(Blend with whiteColor; 0.5)
$controlAccentColor:=$colors.controlAccentColor
$colors:=Get system colors(Blend with blackColor; 0.3)
$controlAccentColor:=$colors.controlAccentColor
```
* blend `controlAccentColor` with custom color and fraction (between `0` to `1`)
```4d
$colors:=Get system colors(0x00FF0000; 0.5)
$controlAccentColor:=$colors.controlAccentColor
```