[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: date DND



Yeah, I did expect that this would already exist, I was more using it as
an example of something that should go into a standards doc, and
freedesktop seems like a great place to host such a standard. once we
have a canonical place for documentation then we can address things like
what colorspace an 'application/x-color' should be interpreted in.
(which I assume is sRGB and a 2.2 exponent on opacity, but without a
canonical doc, who knows?) and perhaps allow an 'application/x-cmscolor'
since CMS colors are much more expressive than RGB triples (under any
colorspace).
        John

On Tue, Jul 22, 2003 at 12:10:28AM +0200, Matthias Clasen wrote:
> Am Mon, 2003-07-21 um 23.58 schrieb John Meacham:
> > I would very much like to see this on freedesktop.org. DND can be used
> > for a lot of interesting things besides files, and can simplify UIs
> > considerably. for example, I would really like to see a standard DND
> > type for dragging and dropping colors and all color selection widgets
> > should be able to recieve and provide such dnd items. an app which acted
> > like a palette to drag colors off of to customize other apps with a
> > consistant color scheme would be very cool. 
> >         John
> 
> There is already a de-facto-standard for color DND, which is used by 
> GTK+ and KDE:
> 
> type: application/x-color
> format: 16
> data[0]: red
> data[1]: green
> data[2]: blue
> data[3]: opacity
> 
> This just needs to be written down in the "list of well-known DND
> types".
> 
> Matthias

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john foo net
---------------------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]