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

Re: [INFO] Does Git GUI support Dark Mode on Windows 10 ?

From
Pratyush Yadav <me@yadavpratyush.com>
Date
Oct 6, 2021, 11:39 UTC
Message-ID
<20211006113912.n7xpnuzd25256cjm@yadavpratyush.com>
In-Reply-To
<CABkJDHGdzOFW5yP43LZtuUrV7WsDTvAi+kxka84-5P7ShbV9FQ@mail.gmail.com>
On 04/10/21 08:39PM, Sashank Bandi wrote:
Show 13 quoted lines
> On Mon, Oct 4, 2021 at 1:26 PM Pratyush Yadav <me@yadavpratyush.com> wrote:
> > Sorry, I couldn't find time to catch up on this because its been busy at
> > $DAYJOB.
> Well, I hope you got a little time for this thread.
> 
> > Anyway, git-gui does have some basic dark mode support, though I have
> > seen reports that it does not work very well. You can change the Tk
> > theme and it should enable dark mode on git-gui as well. See [0] for
> > some more info. I am not very familiar with how Tk theming would work on
> > Windows.
> I am not even familiar with Tcl/Tk language itself. But from what I
> have found, the Tk uses "vista" theme which is Windows-only default
> theme.

Does the Windows installation come with any other themes? You can use `ttk::style theme names` to list all available themes.

Show 5 quoted lines
> 
> > I think it would be nice if we can have a theme picker in the options
> > menu though, so that is something you might want to look into.
> Yes, I thought of adding a menu between "Tools" and "Help". It will
> contain 3 options(system, light, dark) as I said before.
I think it would be better to put it in the "options" dialog.
> 
> > [0] https://lore.kernel.org/all/20201008082004.5643-1-serg.partizan@gmail.com/
> Well, this works only for Linux as Windows doesn't use X Server. But
> we can use `ttk::style theme use` for it all over the application.
Right.
> 
> My plan is to use a new theme, that is based on default, but can
> imitate the look of [0].

I don't mind carrying themes in the git-gui repo since Tk theming support is not very well documented or standardized. But please do be careful of licence compatibility when porting code.

> 
> [0]: https://github.com/TkinterEP/ttkthemes/blob/master/ttkthemes/png/equilux/equilux.tcl
-- 
Regards,
Pratyush Yadav
Previous: Sashank BandiNext: Sashank Bandi
Message 12 of 15 in “[INFO] Does Git GUI support Dark Mode on Windows 10 ?”
  1. Sashank BandiSep 26, 2021
  2. Bagas SanjayaSep 27, 2021
  3. Sashank BandiSep 27, 2021
  4. Bagas SanjayaSep 27, 2021
  5. Sashank BandiSep 27, 2021
  6. David AguilarSep 27, 2021
  7. Sashank BandiSep 28, 2021
  8. Sashank BandiOct 3, 2021
  9. Bagas SanjayaOct 4, 2021
  10. Pratyush YadavOct 4, 2021
  11. Sashank BandiOct 4, 2021
  12. Pratyush YadavOct 6, 2021
  13. Sashank BandiOct 6, 2021
  14. Pratyush YadavOct 6, 2021
  15. Sashank BandiOct 7, 2021

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.