pcoenen Posted February 2, 2019 Share Posted February 2, 2019 Question, is it possible to change the color of a progressbar. It seems that it depends on the theme now .. I've three progressbars and they all should have a different color. Thank you Pascal Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 2, 2019 Share Posted February 2, 2019 5 hours ago, pcoenen said: is it possible to change the color of a progressbar Hi, Yes, the component is managed based on the style... But, one possible solution, you can try to use this approach for now I think: function afterrender(sender, eOpts) { var me=sender; me.bar.setStyle( 'background-image', 'linear-gradient(to right, green, lime)' ); me.setStyle( 'border-color', 'green' ); var pText = me.el.select('.x-progress-text.x-progress-text-back').elements[0]; if (pText) { Ext.get(pText).setStyle( 'color', 'green' ) } } Quote Link to comment Share on other sites More sharing options...
pcoenen Posted February 2, 2019 Author Share Posted February 2, 2019 Thank You! 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.