pro_imaj Posted August 1, 2022 Share Posted August 1, 2022 Hi, When I add the UniTreeMenu1 object to the form, although Color := clWindow, when I select a theme, its color does not change according to the theme. How can I make the color change according to the theme? Like all other objects, I want the color to change according to the theme when the theme is selected. Thank you. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted August 1, 2022 Author Share Posted August 1, 2022 16 minutes ago, pro_imaj said: Hi, When I add the UniTreeMenu1 object to the form, although Color := clWindow, when I select a theme, its color does not change according to the theme. How can I make the color change according to the theme? Like all other objects, I want the color to change according to the theme when the theme is selected. Thank you. The problem occurs when I do it through the example here. \FMSoft\Framework\uniGUI\Demos\Desktop\Tablet Application Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted August 1, 2022 Author Share Posted August 1, 2022 I wonder if there is a comment about this, if the colors will not change automatically, I will not use this component. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 2, 2022 Share Posted August 2, 2022 Hello, Please open a ticket in the support portal. And at the moment you can use Color property. Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted August 2, 2022 Share Posted August 2, 2022 MenuTree.ClientEvents.ExtEvents.Values['afterlayout'] := ' function afterlayout(sender, layout, eOpts)' + ' {' + ' Ext.get("' + MenuTree.JSId + '").setStyle({"background-color":"rgba(0,0,0,0)"});' + ' if(!!Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id){' + ' var kid = Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id;' + ' Ext.get(kid).setStyle({"background-color":"rgba(0,0,0,0)"});' +' };' + ' }'; Set the tree menu background to transparent Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted August 2, 2022 Author Share Posted August 2, 2022 4 hours ago, 风吹小机机 said: MenuTree.ClientEvents.ExtEvents.Values['afterlayout'] := ' function afterlayout(sender, layout, eOpts)' + ' {' + ' Ext.get("' + MenuTree.JSId + '").setStyle({"background-color":"rgba(0,0,0,0)"});' + ' if(!!Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id){' + ' var kid = Ext.get("' + MenuTree.JSId + '").el.dom.children[0].id;' + ' Ext.get(kid).setStyle({"background-color":"rgba(0,0,0,0)"});' +' };' + ' }'; Set the tree menu background to transparent Thanks for your suggestion, This solution creates problems for some template options, they are often grayed out and make text unreadable. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted August 2, 2022 Author Share Posted August 2, 2022 6 hours ago, Sherzod said: Hello, Please open a ticket in the support portal. And at the moment you can use Color property. I created a notification. Thank you. Quote Link to comment Share on other sites More sharing options...
pro_imaj Posted August 3, 2022 Author Share Posted August 3, 2022 @Farshad Mohajeri Please your help. 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.