Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Aug 10, 2024
0 parents commit c48e934
Show file tree
Hide file tree
Showing 15 changed files with 643 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/makedark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: MakeDark

on:
release:
types: [created]
push:
branches:
- master

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x

- name: Setup Windows SDK
uses: GuillaumeFalourd/[email protected]

- name: Install dependencies
run: dotnet restore src\MakeDark.csproj

- name: Build
run: dotnet build src\MakeDark.csproj --configuration Release --no-restore
173 changes: 173 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
[Rr]eport/

# Visual Studio cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*_wpftmp.*
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
*.VC.db

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# AxoCover is a Code Coverage Tool
.axocover/

# Visual Studio code coverage results
*.coverage
*.coveragexml

# NCrunch
_NCrunch_/
.*crunch*.local.xml
nCrunchTemp_*/

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml

# Note: This signature is weak since it does not require VisualStudioVersion=12.0 and it may match on files not in solution folders
*__[Rr]e[Ss]harper.user
*_*.suo
*_*.user
*_*.aps
*_*.ncb
*_*.opensdf
*_*.sdf
*_*.cachefile
*_*.VC.db
*_*.bak
*__history/

# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git
_reportMaxUpgradeOrder.numbers.html
Backup*/Web.config*
UpgradeLog*.XML
UpgradeLog*.htm
UpgradeLog*.html
UpgradeLog*.txt

# Windows Presentation Foundation (WPF) specific
*.g.xaml
*.g.cs

# XAML generated resource dictionaries
*.baml

# Backup files when performing XAML Binding debugging
*.backupid-*.BindingExpression
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Lemutec

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
25 changes: 25 additions & 0 deletions MakeDark.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34902.65
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MakeDark", "src\MakeDark.csproj", "{BEBBDDC5-A479-470B-AA88-CDBDF70C8022}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BEBBDDC5-A479-470B-AA88-CDBDF70C8022}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEBBDDC5-A479-470B-AA88-CDBDF70C8022}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEBBDDC5-A479-470B-AA88-CDBDF70C8022}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEBBDDC5-A479-470B-AA88-CDBDF70C8022}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E503C867-4D7D-4414-A048-1E90CF07CCD2}
EndGlobalSection
EndGlobal
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[![Actions](https://github.com/lemutec/MakeDark/actions/workflows/makedark.yml/badge.svg)](https://github.com/lemutec/MakeDark/actions/workflows/makedark.yml) [![Platform](https://img.shields.io/badge/platform-Windows-blue?logo=windowsxp&color=1E9BFA)](https://dotnet.microsoft.com/zh-cn/download/dotnet/latest/runtime)

# MakeDark

Make your windows application launch as dark mode.

## Usage

Drag&drop the `*.lnk` or `*.exe` file to `makedark.exe`.

And then the `*.lnk` file will be edited to launch using MakeDark.

## Effect

<img src="assets/image-20240810143110413.png" alt="image-20240810143110413" style="zoom: 25%;" />
Binary file added assets/image-20240810143110413.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Favicon.ico
Binary file not shown.
Binary file added src/Favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/Favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions src/MakeDark.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<LangVersion>12.0</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PublishAot>false</PublishAot>
<EnableComHosting>true</EnableComHosting>
<PublishTrimmed>false</PublishTrimmed>
<ApplicationIcon>Favicon.ico</ApplicationIcon>
<AssemblyName>makedark</AssemblyName>
<AssemblyVersion>0.1.0</AssemblyVersion>
<FileVersion>0.1.0</FileVersion>
<Version>$(VersionPrefix)0.1.0</Version>
<Company>Lemutec</Company>
</PropertyGroup>

<ItemGroup>
<Content Include="Favicon.ico" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Lnk" Version="1.3.7" />
</ItemGroup>

<ItemGroup Condition="'$(SomeCondition)' == 'true'">
<COMReference Include="IWshRuntimeLibrary">
<WrapperTool>tlbimp</WrapperTool>
<VersionMinor>0</VersionMinor>
<VersionMajor>1</VersionMajor>
<Guid>f935dc20-1cf0-11d0-adb9-00c04fd58a0b</Guid>
<Lcid>0</Lcid>
<Isolated>false</Isolated>
<EmbedInteropTypes>true</EmbedInteropTypes>
</COMReference>
</ItemGroup>

</Project>
Loading

0 comments on commit c48e934

Please sign in to comment.