- Colour Picker
- Select colours using the default macOS colour picker.
- 5231 Installs
-
This extension is allowed to:
- Launch Subprocesses
Readme
NOTE: As Nova 5 and above includes a native colour picker, this extension will not receive further updates.
The Colour Picker Nova extension allows you to insert colours into your HTML, CSS, and Javascript files using the default macOS colour selection dialog.
Usage
Use the Choose Colour (⌘*
) right-click command to choose a colour and insert it into the text.
If a colour is selected, the picker shows the existing colour, and overwrites it using the same format. Otherwise, the format is determined by the Default Colour Format preferences item.
By default, hex colours are generated in lowercase. Select the Capitalise generated hex codes preference to modify this.
Limitations
This extension is implemented using JXA and the osxascript
process. Accordingly, modification of alpha channels is not supported.
Changelog
- Version 0.1: Initial release
- Version 0.2: Fix missing image asset
- Version 0.3: Enabled usage regardless of editor syntax selected
- Version 1.0:
- Add CSS named colour support
- Add support for P3 colours using the
color()
CSS Level 4 function - Improved performance by switching to JXA backend
- Improved precision during edge cases
- Version 1.0.1: Removed unnecessary entitlement
- Version 1.0.2: Add repo details
- Version 1.0.3: Fix links
- Version 1.0.4: Added depreciation notice
License
This project is provided under the MIT license:
© Copyright 2020 novov.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.