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
SBSashank Bandi <bandi.rao999@gmail.com>
Date
Oct 4, 2021, 15:09 UTC
Message-ID
<CABkJDHGdzOFW5yP43LZtuUrV7WsDTvAi+kxka84-5P7ShbV9FQ@mail.gmail.com>
In-Reply-To
<20211004075600.5lbqed4mnwfsy4al@yadavpratyush.com>
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.
Show 5 quoted lines
> 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.

> 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.

> [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.

My plan is to use a new theme, that is based on default, but can imitate the look of [0].

[0]: https://github.com/TkinterEP/ttkthemes/blob/master/ttkthemes/png/equilux/equilux.tcl
Previous: Pratyush YadavNext: Pratyush Yadav
Message 11 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.