#579 xpm marker lose transparency if named color is used

Documentation
closed-rejected
Scintilla (796)
1
2007-11-23
2007-07-15
Farid Z
No

Using xpm markers in folder margin. If an xpm color name is used instead of code than marker is not draw transparently.

For example,
"! c black", "? c white"

static const char *right_xpm[] = {
"15 16 12 1",
" c None",
"? c white", // causes loss of transparency ( #FFFFFF is ok )
". c #B6B6B6",
"+ c #828282",
"@ c #404040",
"# c #8EFFD4",
"$ c #B1FFE2",
"% c #48FFB8",
"& c #FFFFFF",
"* c #25FFAA",
"= c #00DC92",
"- c #00B97A",
" .. ",
" .++. ",
" .+@@+. ",
" .....+@#@+. ",
".++++++@$#@+. ",
"+@@@@@@@%$#@+. ",
"+@*####%%%&#@+.",
"+@=%%%%%%%%&#@+",
"+@=%%%%%%%%*-@+",
"+@======*%-*@+.",
"+@@@@@@@**-@+. ",
".++++++@*-@+. ",
" .....+@-@+. ",
" .+@@+. ",
" .++. ",
" .. "};

Discussion

  • Neil Hodgson

    Neil Hodgson - 2007-07-15
    • milestone: --> 100660
    • assigned_to: nobody --> nyamatongwe
    • priority: 5 --> 1
    • labels: --> Scintilla
    • status: open --> open-rejected
     
  • Neil Hodgson

    Neil Hodgson - 2007-07-15

    Logged In: YES
    user_id=12579
    Originator: NO

    Scintilla does not support named colours and it is unlikely it ever will.

     
  • Farid Z

    Farid Z - 2007-07-15

    Logged In: YES
    user_id=1423442
    Originator: YES

    Some icon editors generate xpm files using named colors. So it's very puzzling to a developer why Scintilla does not show transparency when they use such output. Scintilla documentation says requirement for xpm format is being one-character per pixel.

    Since Scintilla does not "support" named colors for xpm format, it should clearly state that along side requirement for 1 character per pixel in documentation.

    BTW, Scintilla does support c None named color and c Black c White named colors are displayed correctly. So there is no clue why the transparency is gone. I can understand it if Scintilla does not support named colors if such xpm image is not displayed at all. That would be more helpful, but to display the image and the named colors correctly is very misleading since it gives no indication that the xpm format is not supported.

     
  • Neil Hodgson

    Neil Hodgson - 2007-07-15

    Logged In: YES
    user_id=12579
    Originator: NO

    OK: """The XPM format is used for the pixmap and it is limited to pixmaps that use one character per pixel with no named colours. The transparent colour may be named 'None'. """

     
  • Neil Hodgson

    Neil Hodgson - 2007-07-15
    • milestone: 100660 --> Documentation
     
  • Farid Z

    Farid Z - 2007-07-15

    Logged In: YES
    user_id=1423442
    Originator: YES

    Sounds good. Thanks.

     
  • Neil Hodgson

    Neil Hodgson - 2007-11-23
    • status: open-rejected --> closed-rejected
     

Log in to post a comment.