Tk Source Code

Ticket Change Details
Login
Overview

Artifact ID: f92d2d079f8978008a36b9b9cace15e032bcf624d06de3fb87f4f37991a0e419
Ticket: f380f2313094ae7f31cc8eed3d6cde0595c53233
style 'Toolbutton' no more effective? macOS
User & Date: Takamoto 2019-10-12 13:24:52
Changes

  1. icomment:
    A script as simple as this will  demonstrate the inconsistency:
    
    image create photo .imgobj -file "/Users/aaa/Desktop/cancel.png"
    ttk::button .b1 -image .imgobj  -style "Toolbutton"
    ttk::button .b2 -text "Hello" -style "Toolbutton"
    button .b3 -text "Quit"
    button .b4 -image .imgobj -text " Cancel " -compound "top"
    grid .b1 -row 0 -column 0
    grid .b2 -row 0 -column 1
    grid .b3 -row 0 -column 2
    grid .b4 -row 0 -column 3
    
    If I create the buttons with Frameworks created for example with this source <a href="https://core.tcl-lang.org/tk/info/a82cd76ed5b6eb60">Tk</a> I get what I call the 'modern' look with style Toolbutton (new screenshot 'modern', below) . If I create the buttons with the latest source, I get the "older" look.
    
    In both cases, I compile Tk simply with 'make -C tk8.6.9/macosx' on the same machine with Mojave.
    
  2. login: "Takamoto"
  3. mimetype: "text/plain"