{"id":15059794,"url":"https://github.com/sungaila/immersivedarkmode","last_synced_at":"2025-11-01T03:04:44.499Z","repository":{"id":227959528,"uuid":"772701797","full_name":"sungaila/ImmersiveDarkMode","owner":"sungaila","description":"Applies a dark theme to the titlebar of Win32 windows.","archived":false,"fork":false,"pushed_at":"2024-03-16T22:43:58.000Z","size":171,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T02:14:34.540Z","etag":null,"topics":["dark-mode","dark-theme","dwm","win32","winui","winui3","wpf"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sungaila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-15T18:03:17.000Z","updated_at":"2025-02-23T13:56:44.000Z","dependencies_parsed_at":"2024-03-22T08:30:54.797Z","dependency_job_id":null,"html_url":"https://github.com/sungaila/ImmersiveDarkMode","commit_stats":null,"previous_names":["sungaila/immersivedarkmode"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sungaila%2FImmersiveDarkMode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sungaila%2FImmersiveDarkMode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sungaila%2FImmersiveDarkMode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sungaila%2FImmersiveDarkMode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sungaila","download_url":"https://codeload.github.com/sungaila/ImmersiveDarkMode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809058,"owners_count":21164896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dark-mode","dark-theme","dwm","win32","winui","winui3","wpf"],"created_at":"2024-09-24T22:47:50.135Z","updated_at":"2025-11-01T03:04:44.471Z","avatar_url":"https://github.com/sungaila.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ![ImmersiveDarkMode Logo](https://raw.githubusercontent.com/sungaila/ImmersiveDarkMode/master/etc/Icon_64.png) Sungaila.ImmersiveDarkMode\n\n[![GitHub Workflow Build Status](https://img.shields.io/github/actions/workflow/status/sungaila/ImmersiveDarkMode/dotnet.yml?event=push\u0026style=flat-square\u0026logo=github\u0026logoColor=white)](https://github.com/sungaila/ImmersiveDarkMode/actions/workflows/dotnet.yml)\n[![SonarCloud Quality Gate](https://img.shields.io/sonar/quality_gate/sungaila_ImmersiveDarkMode?server=https%3A%2F%2Fsonarcloud.io\u0026style=flat-square\u0026logo=sonarcloud\u0026logoColor=white)](https://sonarcloud.io/dashboard?id=sungaila_ImmersiveDarkMode)\n[![NuGet version](https://img.shields.io/nuget/v/Sungaila.ImmersiveDarkMode.svg?style=flat-square\u0026logo=nuget\u0026logoColor=white)](https://www.nuget.org/packages/Sungaila.ImmersiveDarkMode/)\n[![NuGet downloads](https://img.shields.io/nuget/dt/Sungaila.ImmersiveDarkMode.svg?style=flat-square\u0026logo=nuget\u0026logoColor=white)](https://www.nuget.org/packages/Sungaila.ImmersiveDarkMode/)\n[![GitHub license](https://img.shields.io/github/license/sungaila/ImmersiveDarkMode?style=flat-square)](https://github.com/sungaila/ImmersiveDarkMode/blob/master/LICENSE)\n\nApplies a dark theme to the titlebar of Win32 windows. Can also be toggled automatically whenever the system-wide application theme changes.\n\nWorks on Windows 11 (Build 22000) and newer.\n\n## Windows Forms\nAdd the following NuGet package: [Sungaila.ImmersiveDarkMode.WinForms](https://www.nuget.org/packages/Sungaila.ImmersiveDarkMode.WinForms/)\n\nCall `WindowExtensions.SetTitlebarTheme()` in the constructor of your `System.Windows.Forms.Form` and override `WndProc` like this:\n```csharp\npublic Form1()\n{\n    InitializeComponent();\n    this.SetTitlebarTheme();\n}\n\nprotected override void WndProc(ref Message m)\n{\n    base.WndProc(ref m);\n    WindowExtensions.CheckAppsThemeChanged(m);\n}\n```\n\n## Windows UI Library 3\nAdd the following NuGet package: [Sungaila.ImmersiveDarkMode.WinUI](https://www.nuget.org/packages/Sungaila.ImmersiveDarkMode.WinUI/)\n\nCall `WindowExtensions.InitTitlebarTheme()` in the constructor of your `Microsoft.UI.Xaml.Window` like this:\n```csharp\npublic Window1()\n{\n    InitializeComponent();\n    this.InitTitlebarTheme();\n}\n```\n\n## Windows Presentation Foundation\nAdd the following NuGet package: [Sungaila.ImmersiveDarkMode.Wpf](https://www.nuget.org/packages/Sungaila.ImmersiveDarkMode.Wpf/)\n\nCall `WindowExtensions.InitTitlebarTheme()` in the constructor of your `System.Windows.Window` like this:\n```csharp\npublic Window1()\n{\n    InitializeComponent();\n    this.InitTitlebarTheme();\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsungaila%2Fimmersivedarkmode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsungaila%2Fimmersivedarkmode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsungaila%2Fimmersivedarkmode/lists"}