Making specific buttons hide when not needed.
Sunday, February 7, 2010 7:51:55 PM
With the addition of button sets in the latest 10.5 build(what makes the new "combined" back/forward button), with a few toolbar.ini additions one can add special buttons that hide themselves when not needed. Here's how:
Open up "standard_toolbar.ini"(in Opera/ui folder, for a more permanent change, copy it over to your profile/toolbars folder, profile location found in opera:about), then define a new "toolbar" at the end of the file. I called mine "Wand Hide",add ".alignment" and encase it in square brackets, like below.
Underneath that, put in the code "Auto Alignment=1", this makes the "toolbar" hide itself when not needed, code shown below:
[Wand Hide.alignment] Auto Alignment=1
Add style, with your name of the "toolbar", add ".style" and encase it in square brackets, and below that put in this code:
"Button skin=Addressbar Button Skin
[Wand Hide.style] Button skin=Addressbar Button Skin Button style=0
Time to add your button! With your name of the "toolbar", add ".content" and encase it in square brackets, and below that put in this code(replaceable by your button code):
[Wand Hide.content] Button, S_WAND_TOOLBAR_BUTTON_TEXT="Wand"
Defining the button set, now find or create the section in the file "[Customize Toolbar Custom.content]" and define your button set, as below.
[Customize Toolbar Custom.content] ButtonSet, Wand Hide
You're done! Now load the "Standard Toolbar" if you haven't already in Preferences > Toolbars , and when thats done, right click the toolbar you want your new button on > customize > appearance > buttons > My buttons and drag your new "button" to a toolbar, now your button should hide itself instead of fade out when disabled! Congrats.