Tk Source Code

View Ticket
Login
Ticket UUID: a69fd7cdc7c08f7610bf84e4bcb64bb4829d323
Title: File clamTheme.tcl misses code related to the -indicatorforeground option
Type: Bug Version: all
Submitter: nemethi Created on: 2024-11-27 15:30:04
Subsystem: 88. Themed Tk Assigned To: nemethi
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2024-11-29 09:26:20
Resolution: Fixed Closed By: nemethi
    Closed on: 2024-11-29 09:26:20
Description:

In the clam theme, the Checkbutton.indicator and Radiobutton.indicator elements have a -indicatorforeground option.  However, the library file clamTheme.tcl doesn't contain any code related to this option, especially to its value in the disabled state.  Obviously, this was simply forgotten.  As a result, as easily seen in the left half of the attachment screenshots_clam.png, the inner parts of disabled ttk::checkbutton and ttk::radiobutton widgets are displayed in black color, unlike their text, which is rendered in the color $colors(-disabledfg).  I strongly doubt that this discrepancy was intentional.

I have prepared the necessary patch (see the attachment clamTheme.diff), which I would like to commit myself, provided that there are no objections.  The right half of the attachment screenshots_clam.png shows the improved appearance of the disabled widgets after applying this change.

User Comments: fvogel added on 2024-11-28 21:05:15:
Agreed!

nemethi (claiming to be Csaba Nemethi) added on 2024-11-28 20:58:26:

I thought I should do it tomorrow, after seeing the CI status (I am not expecting any problems, but who knows).


fvogel added on 2024-11-28 20:47:39:
Great. Any reason for not closing this ticket?

nemethi (claiming to be Csaba Nemethi) added on 2024-11-28 10:59:57:

Fixed with commits [64439dea], [bd88e189], and [0c69de86].


fvogel added on 2024-11-27 20:27:16:
Csaba, this looks OK to me please proceed. I'm assigning the ticket to you.

nemethi (claiming to be Csaba Nemethi) added on 2024-11-27 16:22:04:

Thanks Harald, I can do the commit into a branch myself. I just want to see whether there are any objections against my proposal before doing the commit.


oehhar added on 2024-11-27 15:56:09:
Csaba,
fossil is difficult.
Nevertheless, please try to first commit into a branch.
In this case for example:

fossil commit --branch a69fd7cd-clam-indicator

Shall I do the action for you ?

Thanks for all,
Harald

oehhar added on 2024-11-27 15:54:12:
Looks great as always !

Thanks for all your work,
Harald

Attachments: