ttk::style toolbar

Here a little example of the power of ttk::style. Thanks to hae and others for editing this first Wiki page attempt.

Run the code to generate the ttk::style based toolbar below:

Code works fine in 8.5/8.6 It uses a checkbutton, button, radiobuttons and a ttk::frame all with the same images to get the job done. The ttk buttons could use their own -image state dependent settings to make this really neat. All buttons and the frame look the same and blend to make for a smooth toolbar.

proc main {argc argv} { 
    MakeImages
    #Make the new styles - one for all buttons, one for the frame.
    ttk::style element create ToolbarGradientButton image \
    {ToolbarGradientBG readonly ToolbarGradientBG selected RadioGradient pressed RadioGradient {hover !disabled !readonly} RadioGradientFade disabled ToolbarGradientBG} \
    -border 0 -sticky nsew
    
    ttk::style layout ToolbarGradientButton.TButton {
        ToolbarGradientButton -sticky nsew -children {
            EasyRadioButtonInvis.border -sticky nsew -children {
                Button.padding -sticky nsew -children {
                    Button.label -sticky nse 
                }
            }
        }
    }
    
    ttk::style element create ToolbarGradient.image image ToolbarGradientBG -sticky ew -border {2 4}
    ttk::style layout ToolbarGradient.TFrame [list ToolbarGradient.image -sticky nsew]
    
    #Make the toolbar frame
    ttk::frame .fm -style ToolbarGradient.TFrame
    
    #Add the buttons for it - all using the same style!
    ttk::checkbutton .fm.cb -style ToolbarGradientButton.TButton -text "Radio on/off"
    ttk::button .fm.b -style ToolbarGradientButton.TButton -text "Search"
    
    set rb 1
    ttk::radiobutton .fm.rb1 -style ToolbarGradientButton.TButton -value 1 -text "Radio FM1" -var rb
    ttk::radiobutton .fm.rb2 -style ToolbarGradientButton.TButton -value 2 -text "Radio FM2" -var rb
    ttk::radiobutton .fm.rb3 -style ToolbarGradientButton.TButton -value 3 -text "Radio FM3" -var rb
    
    #Pack it all together
    foreach button [list .fm.cb .fm.b .fm.rb1 .fm.rb2 .fm.rb3] {
        pack $button -side left
    }
    pack .fm -expand 1 -fill x -anchor n
    
    wm geometry . 800x[image height ToolbarGradientBG]
    
    #Play with it!
}
    
#Make some fancy images

proc MakeImages {} {
    set data1(im_ToolbarGradientBG) { 
    R0lGODlhKQA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AAAAAACwAAAAAKQAyAAAI/wAtCBxIsKDBgwgLVljIsKHDhxAjSpxIsWJDChgzatzIsaPHjRNCihxJsqTJkyhTqlw5UoLLlzBjypxJM2aEmzhz6tzJs6fPn0CDCh1KtKhRoBCSKl3KtKnTp0wfSJ1KtarVq1izat3KtavXr2DDbnVAtqzZs2jTqj3boK3bt3Djyp1Lt67du3jz6t3L1y6Dv4ADCx5MuLDhw4gTK17MGPCCx5AjS55MubLly5gzR1bAubPnz6BDix5NurTp06hTq15dOoHr17Bjy55NOzaC27hz697Nu7fv38CDCx9OvLhx4AeSK1/OvLnz58wNSJ9Ovbr169irF9jOvbv37+DDi1gfT758dwLo06tfz769+/fw48tXP6C+/fv48+vfz7+///8ABiigfQIUaOCBCCao4IIMNujggwcGIOGEFFZo4YUYZqjhhhxSCMCHIIYo4ogklmjiiSimGGJAADs=
    }
    image create photo ToolbarGradientBG -data $data1(im_ToolbarGradientBG)
    
    set data1(im_RadioGradient) {R0lGODlhIAMyAPcAAP7XAP7YAP7YAf7YAv7ZA/7aAv7aA/7aBP7aBf7bBv7cBf7cBv3cB/zcCP3dCf3eCP3eCf3eCv3eC/3fDP3gC/3gDP3gDf3hDvzhD/3iDvziD/viEPziEPziEfzjEvzkEPzkEfzkEvzkE/zmE/zkFPzlFfzmFPzmFfzmFvzmF/vnGPvoF/zoFvzoF/roGProGfvoGvvpG/vqGfvqGvvqG/vqHPvqHfvrHvvsHPvsHfvsHvvsH/vuH/zoGPvsIPrtIfruIPnuIfruIvruI/rvJPrwIvrwI/rwJPrwJfrwJvrxJ/ryJfryJvryJ/nyKPjyKfnzKvn0KPn0Kfn0Kvn0K/n2K/n0LPn2LPn2Lfn3Lvn2L/n4Lvn4L/f5Mfj4MPj5Mfj4Mvj6Mfj6Mvj6M/j7NPj6Nfj8NPj8Nfj8Nvj9N/j+N/j8OPj+OPj+Ofj/OgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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3Zku3IyunVXy3JJF3JZF3WZ82dm/ywav9Nnuvc1lAqpXANz11avnQNpnZ918V6z3q9rK7s140L2II91F1c2AON1IldxkvN2L5M2cRd3MZ93Mid3Mo9vWPd2Sj92UQqsaMtsWxt2hbrzqkNAfHc2q5907CdrLI9285a27Zds/2c21ycubzduQT927oc3MLNwMo93/Rd3/Z93/id3xHcnSs92qVt2kac3VVK09wduN793bHNrOw723xd3rcd1Ohts4S93pt71Ijt3gQM3/H9wPrd4R7+4SAe4iLe4W6N3TIt16zN3a+N4OEt3gvQ4A4Os7gd4elN4WBMAKJ74RhewBq+4QIw4kAe5EI+5ERe5ET+sQeO4Am+4LN4Td4xLuP1S+ORO+E23t47bsaL7eMcbuRc3uVe/uVgHuZgrrJOHuNYLOWWi7kBTeFWfuW8jMZafsBiPud0Xud2fud4nucRrNtrbuMW7uZvHudbrueEXuiGfuiInuh5/t5ZHueK/uiQHumSPumUXumWfumYnumavumcNd7pnv7poB7qoj7qpF7qpn7qqJ7qqr7qrN7qrv7qsB7rsj7rtF7rtn7ruJ7rur7rvN7rxhwQADs=}
    
    image create photo RadioGradient -data $data1(im_RadioGradient)
    
    set data1(im_RadioGradientFade) {
    R0lGODlh9AEyAPcAAP/xo//xpP/ypP/ypf7ypv7zp/70p/70qP71qf71qv72qv72q/73rP73rf74rf74rv35r/35sP36sP36sf36sv37s/38s/38tPz9tfz9tvz+tvz+t/z/uAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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CLD18hWCg+SsFRhCydJSxdi8pa4pOInd8nLXvZSAMAMpjCHKYAAGPOYARglKUuJtFN2MJW6W2UaXUnNWFpTgbXMZi63iUlfevObvCSmOIeJzHKa85zoRCcA1gkA2DETcs58JjRxJ03OUfOe18wnHLNJS276847gDKhANTlOcabzoAhNJzsXytCGOvShDz1ZPPU3z8zVk5X3bKQ+9cnPfv7zo1gcqEi9WdBxJvSkJ4WoSlfK0pa69KH7q6hFL5qAjLZyo/qcZUflCNKe6nKkQN1lSYmJ0qIq9KVITapSl8rUhw6RpgK0qUZxGsudStKnWA2qVjk5VIPsGvWryGyqWMdK1rKa9aH2lCojqXpNq84RqyDdqlwJ2lVggvWuxjyrXvfK1776FaJrZSss3cpTuMZ1rlutqzDxCta/OvaxkI2sZCEqWBTqlLCUNOw/EStXxdqVsUadrGhHS9rSmlalCcRsFDX7Uc5q1bPBBG1oT0vb2tr2trh96AxZy03XJlaxsp1tbodL3OIa97gPPaxvRQrbYgY3pciNrnSnS93qQnS5QvXsc6Fr3e5697vgDe916Qrb7SZUvOhNr3rXy16VBre98I2vfOdL3/ra9774za9+98vf/vr3vwAOsIAHTOACG/jACE4SsIIXzOAGO/jBEI6whCf82IAAADs=
    }
    image create photo RadioGradientFade -data $data1(im_RadioGradientFade)
}

main $argc $argv

wm geom . 1200x[image height RadioGradientFade]