Menu ▾ ▴

#648 TImageList constructors use TColor::Sys3dFace as mask color

8
pending
1
2026-10-12
2026-08-20
No

Constructors TImageList(const TBitmap&...) and TImageList (const TDib&...) use TColor::Sys3dFace as the mask color. This color is dynamic and system setting dependent, hence is a poor fixed choice, as it means the client will have to make sure the real mask color in the bitmap is mapped to TColor::Sys3dFace before constructing the TImageList.

Proposed resolution: Make the mask color a constructor parameter.

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2026-08-20

    This issue has been fixed in Owlet [r8841]. Consistent mask color semantics was implemented in [r8842] (TColor::Transparent now consistently means that the upper left pixel of the bitmap should be used for the mask color).

     

    Related

    Commit: [r8841]
    Commit: [r8842]


    Last edit: Vidar Hasfjord 2026-08-20
  • Ognyan Chernokozhev

    • assigned_to: Ognyan Chernokozhev
    • Group: unspecified --> 8
     
  • Ognyan Chernokozhev

    Fix ported to trunk in [r9026].

     
    👍
    1

    Related

    Commit: [r9026]


    Last edit: Vidar Hasfjord 2026-10-13

Log in to post a comment.