Giter Club home page Giter Club logo

Comments (4)

carloBarazzetta avatar carloBarazzetta commented on June 15, 2024

Which version of Delphi are you using?
You can call UpdateIconFontsColorByStyle as explained in the Demo?

    TStyleManager.TrySetStyle(LStyleName);
    //Override default: use Windows 10 blue color for Windows and Windows10 Style
    if SameText(LStyleName,'Windows') or SameText(LStyleName,'Windows10') then
      IconFontsVirtualImageList.UpdateIconsAttributes(RGB(0, 120, 215), clBtnFace)
    else
      UpdateIconFontsColorByStyle(IconFontsVirtualImageList);

from iconfontsimagelist.

aehimself avatar aehimself commented on June 15, 2024

Delphi 11.2. I did not call UpdateIconFontsColorByStyle, but calling it only turn the icons grey-ish (as it gets sfButtonTextNormal instead of sfWindowTextNormal, what my code is using):

image

from iconfontsimagelist.

carloBarazzetta avatar carloBarazzetta commented on June 15, 2024

I don't understand in what context you are using the components.
First of all I suggest you to use TVirtualImageList and TIconFontsImageCollection as explained in the wiki: only in this way your application can share a single collection of images and have multiple forms with different DPI (on different monitors).
In the IconFontsImageListDemo Demo I don't have the problem you report, as you can see from this image. I don't understand what it depends on.
image

from iconfontsimagelist.

aehimself avatar aehimself commented on June 15, 2024

I attempted to create a minimal example to reproduce the behavior but failed to do so. The difference in my main application and the test is that in my main application the image is on a panel on a panel, and due to flickering issues during resizing the ParentBackground of said panels are set to False if any style (other than the system style) is selected.

As it turns out leaving ParentBackground on True solves the issue - which makes total sense.

I'll have to find a workaround for flickering, but the issue is NOT in any IconFonts component!

Thanks for the help!

from iconfontsimagelist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.