Tk Source Code

View Ticket
Login
Ticket UUID: 2219588
Title: ttk::spinbox needs aqua arrow elements
Type: Bug Version: obsolete: 8.6a4
Submitter: patthoyts Created on: 2008-11-03 22:54:43
Subsystem: 88. Themed Tk Assigned To: jenglish
Priority: 7 High Severity: Minor
Status: Closed Last Modified: 2019-04-13 21:01:21
Resolution: Fixed Closed By: marc_culler
    Closed on: 2019-04-13 21:01:21
Description:
I have committed a ttk::spinbox with support in all the core themes except for Aqua. Someone with a Mac needs to add the button elements for that theme and check it all looks ok.
User Comments: marc_culler (claiming to be Marc Culler) added on 2019-04-13 21:01:21:
This is now fixed in core-8-6-branch and trunk, so I will close the ticket.

marc_culler added on 2019-03-30 16:12:29:
@nab - Thanks for testing!

There is now a new version which renders differently in Dark Mode, with gray
buttons and a dark background in the text area.  It would be great if someone
were to test both versions!

nab added on 2019-03-29 14:50:46:
Hi Marc,
it works.
arrows of ttk::spinbox change their color when hitting them (appearance == darkaqua)

++

marc_culler (claiming to be Marc Culler) added on 2019-03-29 14:28:27:

I think I just fixed this in check-in 981aacf4 in the bug-0d63621b6c branch.

Please test!!!


chrstphrchvz added on 2019-03-29 09:41:19:

Sorry, I spoke too soon; I had tried the regular spinbox widget instead of the Ttk spinbox, which still has this issue.


chrstphrchvz added on 2019-03-29 09:38:38:

I think this is long fixed, there is visual feedback when pressing the up/down buttons in 8.5.9 and 8.6.9.1 (after patching [273b6a4996] of course)


jenglish added on 2008-12-08 01:44:16:
Patch committed to Tk.

Spinbox looks right, but still feels wrong -- still no 'pressed' feedback for the up- and down-arrow parts of the spinbutton.

jenglish added on 2008-12-01 08:24:05:
OSX spinbutton implementation committed to Tile CVS; forward-ported changes to Tk (but have not yet committed).

It looks OK on OSX, but the interaction is incorrect: the spinbuttons don't give the correct 'pressed' feedback.  (This part will take a bit more work to fix.)

Also moved most of the spinbox "business logic" out of the C code into Tcl binding scripts, fixing a couple bugs in process (see ChangeLog for details).

Pat -- please review; if it looks OK I'll commit the revised version to Tk CVS.

jenglish added on 2008-11-04 06:48:04:
A couple of large yaks need to be shaved before this can work right on OSX.

The most immediate one is The Scrollbar Problem Redux: the Aqua Appearance Manager wants to draw the spinbox arrows as a unit (DrawThemeButton(..., kThemeIncDecButton, ...)), not as individual up- and down- arrow parts like in Windows.  This is an impedance mismatch with the Ttk theme engine and the ttk::spinbox bindings, which really want to see the *uparrow and *downarrow parts as separate elements.