ChangeSysColors Canvas TImage

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56198
    Support
    Keymaster

      Hello!

      System colors are depended from skin colors if this property is True. BtnFace color is changed also and equal to the main skin color usually.

      I can add a special “pcGrid” color to the SkinManager.palette for using in such cases.

      Or you can use this code now for calculating a color:

      Code:
      uses sGraphUtils;

      Canvas.Pen.color := BlendColors(sSkinManager.Palette[pcEditText], sSkinManager1.Palette[pcEditBG], 38);

      But, if you have a constant white background there, then you can just make this color unchangeable, like $D0D0D0, I think.

      #56203
      Gregory.P
      Participant
        'Support' wrote:

        Hello!

        System colors are depended from skin colors if this property is True. BtnFace color is changed also and equal to the main skin color usually.

        I can add a special “pcGrid” color to the SkinManager.palette for using in such cases.

        Or you can use this code now for calculating a color:

        Code:
        uses sGraphUtils;

        Canvas.Pen.color := BlendColors(sSkinManager.Palette[pcEditText], sSkinManager1.Palette[pcEditBG], 38);

        But, if you have a constant white background there, then you can just make this color unchangeable, like $D0D0D0, I think.

        thank you

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.