Re: [PATCH] gitk: use config settings for head/tag colors
Thank you for your contribution!
Am 13.01.26 um 07:28 schrieb Shannon Barber via GitGitGadget:
Show 15 quoted lines
> From: Shannon Barber <sbarber@dataspeedinc.com>
>
> The drawtags procedure currently uses headfgcolor for all label text,
> ignoring the tagfgcolor setting.
>
> The call to create the outline polygon for (non-tag) heads currently
> has the color for headoutlinecolor hardcoded to black.
>
> This patch maintains the variables for the non-tag refs so that heads
> are colored differently from non-head (non-tag) refs.
>
> The outline and fill colors for the non-head refs remain hardcoded to
> the prior values, black & #ddddff.
>
> Signed-off-by: Shannon Barber <sgbarber@gmail.com>
In this project, the author and signer-off should be identical. Please choose one identity for both.
It was very hard to figure out what the patch attempts to do. The commit message wasn't very helpful, I am afraid. I would have appreciated if a short summary of the status quo at a high level had been given. For example:
--- 8< --- Gitk draws ref names with 4 different styles depending on the type of ref:
- ...
...
The styles use variables that can be set in the configuration file for ..., but hard-codes the style for ... But there do exist configuration entries for ... but they are not used. Replace the hard-coded values for these latter ones, but leave the remaining styles unchanged.
... --- 8< ---
What is also missing is what the implications for users are after the change. Clearly, the settings stored in the configuration file are now heeded. But what happens for users who are unaware that there are settings (since they are not accessible via the UI). Are any observable changes intentional? If yes, what is the possible impact?
BTW, the paragraph indentation is a bit odd.
The patch text looks good.
-- Hannes