Re: git-gui: Why are the main panels no longer white?
- From
- Pratyush 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