Tk Source Code

View Ticket
Login
Ticket UUID: 265ff202e9d46b86640fb307c5c6a9dbd8dd8cf1
Title: Artifacts in a few themed widgets on x11 and aqua
Type: Bug Version: all
Submitter: nemethi Created on: 2025-10-30 15:06:27
Subsystem: 88. Themed Tk Assigned To: nemethi
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2025-10-31 17:37:37
Resolution: Fixed Closed By: nemethi
    Closed on: 2025-10-31 17:37:37
Description:

As seen in the upper screenshot (scaled to 400%) within the attached picture alt_x11.png, the ttk::scrollbar widget of the alt theme on the windowing systems x11 and aqua exhibits a couple of artifacts in the top-right and bottom-left corners of the widget. The trough of the ttk::scale and ttk::progressbar widgets looks suboptimal, too (again, this is related to the top-right and bottom-left corners).

The default theme on x11 and aqua exhibits similar issues, as shown by the upper screenshot within the attached picture default_x11.png.

These artifacts are caused by the way the borders of the arrow and thumb elements of a themed scrollbar and of the trough element (used in the themed scrollbars, scales, and progressbars) are drawn. By making the necessary adaptations in the drawing routines, the resulting appearance of the above-mentioned widgets becomes free of these artifacts, as seen in the lower screenshots of the pictures alt_x11.png and default_x11.png.

The Tcl script that generates the GUI shown in the two pictures is contained in the attached file bordertest.tcl.

User Comments: nemethi (claiming to be Csaba Nemethi) added on 2025-10-31 17:37:37:

Fixed by commits [b3326f22], [8958564a], and [dd0a5ac1].

Closing the ticket.


nemethi (claiming to be Csaba Nemethi) added on 2025-10-30 15:45:27:

The proposed fix is implemented in the branch "bug-265ff202e9".


nemethi (claiming to be Csaba Nemethi) added on 2025-10-30 15:11:13:

Assigned to myself.


Attachments: