Disabling IDE toolbar gradients – revisited

A long time ago I wrote a sample unit that disabled the Gradient effect on the toolbars within the IDE. This was a new feature for the Delphi 2006 IDE. The old post (which is badly formatted since the change in blog engines) is still available at http://jed-software.com/blog/?p=85.

Recently this topic came up in the newsgroups (which I rarely read nowadays) so I decided to revisit what I did and make it a little easier to use.

You will still have to compile and install a package (I have included a Delphi 2007 and Delphi 2009 DPK file). Now included is the ability to toggle the effect using a menu item (View | Show Gradient and also a Show Gradient option appears on the Toolbars context menu) and also to persist the option. The value is written under the Toolbars key in the registry location for the current IDE instance.

Download the zip file with full source here – DisableGradient.zip.

3 Comments

  1. Ralf says:

    Hi!
    Great tool! Very good! But there are other gradient on the Delphi 200x IDE.
    For example Project Manager toolbuttons, Editor Tabs, etc.
    Do you have any clue how to access to them and disable the gradient???

  2. JED says:

    Sure do. I’ll see what spare time I have in the coming days to implement it for all toolbars in the IDE.

  3. Ralf says:

    Great! I think, a generic solution would be the best, because e.g. GExperts do also show gradients in Delphi 200x. I don’t know if its inherited from the IDE or painted on their own?