[TxMt] Re: showing preview of css colors

George McGinley Smith george at gsgd.co.uk
Fri May 27 13:00:14 UTC 2016


If you could have HTML/CSS in the tooltips you could just make a quick
popover that wouldn't need any images, I already have a command that does
this (as a new window) because the color selector doesn't like CSS rgb
definitions.

On 27 May 2016 at 00:21, Jacob Carlborg <doob at me.com> wrote:

> On 2016-05-26 21:05, Carpii UK wrote:
>
> Do you know if this also supports SVG?
>>
>> As its nothing but a bit of xml/ascii, it wouldn't need base64 encoding.
>> Could also generate these very efficiently, for a given color, without
>> shelling out to some sort of image tool.
>> Also like PDF, its a vector format so would scale for all UI sizes
>>
>
> According to the UTCoreTypes.h header file in the LaunchServices framework
> in the CoreServices framework SVG is supported since OS X 10.10.
>
> But to be sure you should call the "imageTypes" class method on NSImage.
>
> --
> /Jacob Carlborg
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>



-- 
Kind regards,
George.

http://gsgd.co.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20160527/4b606de2/attachment.html>


More information about the textmate mailing list