welle ozean <
welle...@googlemail.com> wrote:
>>If you want us to "look at the UI of the System preferences" then you
>>would do best to post some screen shots on a photo sharing site and
>>then include the URL's to those screen shots here so we can see what
>>you see.
>
> Here you are:
>
> This is a standard macOS window with clickable icons:
>
>
https://ibb.co/RyptX40
>
> (note on the top some small icons. This is what the Toolbutton sytle
> is trying to replicate on macOS aqua, see below)
>
> The following style (icon and no decoration, change of background
> when hovering on it) is used by most applications on macOS, here the
> example of Firefox (but I could include any other applications):
>
>
https://ibb.co/FnfwbTK
Was there supposed to be a background change showing here?
> The next is what the Toolbutton style with ttk looks like:
>
>
https://ibb.co/9ZXmM6R
>
> % image create photo .open -format PNG -file /Users/fc/Desktop/open16.png
> % pack [::ttk::button .b -style Toolbutton -text File -command {puts OPENING} -image .open -compound top]
>
> The next is the closest I can get to my goal. No decoration, just an icon (with text in this case), however no possibility to add an hovering effect. Hovering effects are common on macOS applications, even if not all use it:
>
>
https://ibb.co/0MpBcxT
>
> image create photo .open -format PNG -file open16.png
> ttk::style map C.TLabel -background [list !active black disabled #d9d9d9 active blue] -foreground [list disabled #a3a3a3] -relief [list {pressed !disabled} groove]
> pack [::ttk::button .b -style C.TLabel -text Open -command {puts OPENING} -image .open -compound top]
I made the following change:
--- b.orig 2021-03-30 13:35:20.248858263 -0400
+++ b 2021-03-30 13:35:30.286574523 -0400
@@ -4,7 +4,7 @@
image create photo .open -format png \
-file /usr/share/icons/gnome/48x48/status/folder-open.png
ttk::style map C.TLabel \
- -background [list !active black disabled #d9d9d9 active blue] \
+ -background [list disabled #d9d9d9 active blue] \
-foreground [list disabled #a3a3a3] \
-relief [list {pressed !disabled} groove]
pack [::ttk::button .b -style C.TLabel -text Open -command {puts OPENING} \
Note, the -file and -format of image create are also a change (because
I don't have your open16.png, having no Mac).
I get this result (this is for Linux):
https://ibb.co/N7hjJB1
The left most image is the look without mouse hover over the button, the
center image is the look with mouse hover over the button, and the
right side is the look with mouse pressed over the button.
You do not see the color change or border change from hover/press on
your Mac?