git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui: Why are the main panels no longer white?

From
PYPratyush Yadav <pratiy0100@gmail.com>
Date
Oct 30, 2020, 11:25 UTC
Message-ID
<CA+X=3TLqbSAj9Tzq2MCjf=Ufx0RzNuriqho_3zT7ffbazQ5btw@mail.gmail.com>
In-Reply-To
<619dac64-106c-d6df-b121-ce6589b4af3a@xiplink.com>
[Using Gmail because my stupid email provider thinks this is spam.]
On 29/10/20 09:47AM, Marc Branchaud wrote:
Show 30 quoted lines
> On 2020-10-29 7:44 a.m., Serg Tereshchenko wrote:
> > Hi Marc!
> >
> > What tcl-tk theme are you using? Autodetection supposed to fetch
> > color from TreeView background, and probably your theme using
> > that odd gray for TreeViews.
>
> Thanks for your reply!  It's been a long, long time since I've had to muck
> around with a .X* file...
>
> > To set your desired color for background, you can add
> >
> > *Text.Background: white
> >
> > to ~/.Xresources; and `xrdb -merge ~/.Xresources` to apply it.
> >
> > Or, try another theme. This one gives me white background.
> >
> > *TkTheme: clam
>
> Unfortunately none of those gives me white panels, although I do see other
> visual aspects change under different themes (also, `xrdb -query` shows that
> the *Text.Background setting has applied).
>
> However, saying
>     *background: white
> does the trick!
>
> To narrow the scope of that, I'm going with
>     git-gui*Text.Background: white

Your other option would be to disable theming completely by setting the config `gui.usettk` to 0 (via git config). If you still see gray panels with this option set to 0 I would consider that a bug.

Show 9 quoted lines
> > To list available themes, run `wish`
> >
> > ::ttk::themes
>
> I have:
>     classic default clam alt
> "ttk::style theme use" says I'm using the "default" theme.
>
> Is there some way I can edit/view the theme definitions?

On my system the themes are located in /usr/lib/tk8.6/ttk/. So for example, the theme clam can be found at /usr/lib/tk8.6/ttk/clamTheme.tcl.

-- 
Regards,
Pratyush Yadav
Previous: partizan
Message 12 of 12 in “git-gui: Why are the main panels no longer white?”
  1. Marc BranchaudOct 28, 2020
  2. Serg TereshchenkoOct 29, 2020
  3. Serg TereshchenkoOct 29, 2020
  4. Marc BranchaudOct 29, 2020
  5. ReplySerg Tereshchenko, Oct 29, 2020
  6. Serg TereshchenkoOct 29, 2020
  7. Marc BranchaudOct 29, 2020
  8. Serg TereshchenkoOct 29, 2020
  9. Marc BranchaudOct 30, 2020
  10. serg.partizan@gmail.comOct 30, 2020
  11. partizanOct 29, 2020
  12. Pratyush YadavOct 30, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.