shawdown Posted March 20, 2018 Share Posted March 20, 2018 I'm trying to use custom icons for the TUniDBComboBox component. The icons are being set in the triggers. (TUniComboTriggers) The custom icon does not become transparent. Is there any way to have the same look as the native icons? Quote Link to comment Share on other sites More sharing options...
shawdown Posted March 20, 2018 Author Share Posted March 20, 2018 I tried PNG and BMP images. Quote Link to comment Share on other sites More sharing options...
shawdown Posted March 22, 2018 Author Share Posted March 22, 2018 any suggestion? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2018 Share Posted March 22, 2018 Hi, Use UniNativeImageList Quote Link to comment Share on other sites More sharing options...
shawdown Posted March 22, 2018 Author Share Posted March 22, 2018 Hello my friend. My tests were with UniNativeImageList. I created a testcase to make it easier to explain. uniGUI 1.0.2.1442 http://192.99.198.147:8077/ Source code attached. UniTrigger.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 22, 2018 Share Posted March 22, 2018 Hello, Can you try this approach for now ?!: 1. CustomCSS: .x-my-trigger { background-image: none !important; border: 1px solid #fff !important; border-radius: 1px; padding-top: 1px; } 2. UniComboBox1 -> Triggers -> [2] TUniComboTrigger-> IconCls = 'x-my-trigger' Quote Link to comment Share on other sites More sharing options...
shawdown Posted March 22, 2018 Author Share Posted March 22, 2018 Your idea gave me a direction to solve the problem. I put this CSS. .x-my-trigger { background-image: url("/files/detalhes.png"); } But the big secret is in the picture. I made an image as well as the images of the templates. My Image Template Image Thank you very much Delphi Developer. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.