kThemePopUpButton reverts to old Aqua appearance if height too large
| Originator: | kevin.walzer | ||
| Number: | rdar://19952219 | Date Originated: | 25-Feb-2015 |
| Status: | Open | Resolved: | |
| Product: | OS X | Product Version: | 10.10.2 |
| Classification: | UI | Reproducible: | Yes |
Summary:
The HITheme button kThemePopUpButton reverts to the old Aqua appearance on Yosemite if its height is more than a standard amount, more than 22 pixels.
Steps to Reproduce:
The problem is easily illustrated by the Tcl/Tk Aqua framework, which is bundled with OS X and which uses this API. However, the problem is not specific to Tcl/Tk; it is also visible in other apps that make use of the HITheme API.
1. Save the code snippet below as kthemepopubuttonscript.tcl:
pack [ttk::menubutton .b -text "Foo"] -fill both -expand yes
bind .b <Configure> {puts [winfo height .b]}
Run the script with the Wish binary in Terminal:
/usr/bin/wish kthemepopubuttonscript.tcl
2.Wish will launch and display a kThemePopUpButton with "Foo" as its label text, looking consistent with the new Yosemite UI.
3. Resize the window. As the window is enlarged or reduced, the current height of the button will be displayed in the Terminal.
4. When the button height exceeds 22 pixels, it will revert to the old glossy Aqua UI, not the modern flat Yosemite UI.
Expected Results:
I expect that the button will retain the flat Yosemite appearance, just with increased height.
Actual Results:
When the button height exceeds 22 pixels, it will revert to the old glossy Aqua UI, not the modern flat Yosemite UI.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!