Skip to content

Commit 68e5770

Browse files
committed
Apply dark mode
1 parent 3951499 commit 68e5770

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+11167
-6
lines changed

.github/FUNDING.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are supported funding model platforms
2+
3+
github: [ozone10] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
custom: ['https://paypal.me/ozone10/'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/build_win.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Windows binaries
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
strategy:
12+
matrix:
13+
arch: [ x64, x64_x86, x64_arm64 ]
14+
include:
15+
- arch: x64
16+
platform: x64
17+
- arch: x64_x86
18+
platform: x86
19+
- arch: x64_arm64
20+
platform: arm64
21+
22+
steps:
23+
- name: Checkout repo
24+
uses: actions/checkout@v4
25+
26+
- name: Build ${{ matrix.arch }}
27+
shell: cmd
28+
run: |
29+
build.cmd ${{ matrix.platform }}
30+
31+
- name: Archive artifact ${{ matrix.arch }}
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: 7z-dark-${{ matrix.platform }}
35+
path: ${{ matrix.platform }}-bin
36+
37+
- name: Archive artifact ${{ matrix.arch }} with fluent icons
38+
if: ${{ matrix.platform == 'x64' }}
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: 7z-dark-${{ matrix.platform }}-fluent-toolbar-icons
42+
path: ${{ matrix.platform }}-fluent-bin

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Dot Files/Folder
2+
.*
3+
4+
# Prerequisites
5+
*.d
6+
7+
# Compiled Object files
8+
*.slo
9+
*.lo
10+
*.o
11+
*.obj
12+
13+
# Precompiled Headers
14+
*.gch
15+
*.pch
16+
17+
# Compiled Dynamic libraries
18+
*.so
19+
*.dylib
20+
*.dll
21+
22+
# Fortran module files
23+
*.mod
24+
*.smod
25+
26+
# Compiled Static libraries
27+
*.lai
28+
*.la
29+
*.a
30+
*.lib
31+
32+
# Executables
33+
*.exe
34+
*.out
35+
*.app
36+
37+
# Folders
38+
*.vscode
39+
**/x86
40+
**/x64
41+
**/arm64
42+
**/x86*-bin
43+
**/x64*-bin
44+
**/arm64*-bin

C/Precomp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
_UNICODE 1
2222
*/
2323

24+
#define Z7_WIN32_WINNT_MIN 0x0600
25+
2426
#include "Compiler.h"
2527

2628
#ifdef _MSC_VER

CPP/7zip/7zip.mak

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ OBJS = \
2828
$(CRYPTO_OBJS) \
2929
$(C_OBJS) \
3030
$(ASM_OBJS) \
31+
$(DARK_MODE_OBJS) \
3132
$O\resource.res \
3233

3334
!include "../../../Build.mak"
@@ -167,6 +168,11 @@ $(GUI_OBJS): ../../UI/GUI/$(*B).cpp
167168
$(COMPL)
168169
!ENDIF
169170

171+
!IFDEF DARK_MODE_OBJS
172+
$(DARK_MODE_OBJS): ../../../../DarkMode/src/$(*B).cpp
173+
$(COMPL)
174+
!ENDIF
175+
170176
!IFDEF C_OBJS
171177
$(C_OBJS): ../../../../C/$(*B).c
172178
$(COMPL_O2)
@@ -235,6 +241,9 @@ $(C_OBJS): ../../../../C/$(*B).c
235241
{../../../../C}.c{$O}.obj::
236242
$(CCOMPLB)
237243

244+
{../../../../DarkMode/src}.cpp{$O}.obj::
245+
$(COMPLB)
246+
238247
!ENDIF
239248

240249
!include "Asm.mak"

CPP/7zip/Bundles/Fm/makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ WIN_CTRL_OBJS = \
3535
$O\PropertyPage.obj \
3636
$O\Window2.obj \
3737

38+
DARK_MODE_OBJS = \
39+
$O\DarkMode.obj \
40+
$O\DarkModeSubclass.obj \
41+
3842
7ZIP_COMMON_OBJS = $(7ZIP_COMMON_OBJS) \
3943
$O\FilePathAutoRename.obj \
4044
$O\FileStreams.obj \

CPP/7zip/Bundles/SFXSetup/makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ WIN_OBJS = \
4444
WIN_CTRL_OBJS = \
4545
$O\Dialog.obj \
4646

47+
DARK_MODE_OBJS = \
48+
$O\DarkMode.obj \
49+
$O\DarkModeSubclass.obj \
50+
4751
7ZIP_COMMON_OBJS = \
4852
$O\CreateCoder.obj \
4953
$O\CWrappers.obj \

CPP/7zip/Bundles/SFXWin/makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ WIN_CTRL_OBJS = \
5656
$O\Dialog.obj \
5757
$O\ListView.obj \
5858

59+
DARK_MODE_OBJS = \
60+
$O\DarkMode.obj \
61+
$O\DarkModeSubclass.obj \
62+
5963
7ZIP_COMMON_OBJS = \
6064
$O\CreateCoder.obj \
6165
$O\CWrappers.obj \

CPP/7zip/UI/Explorer/makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ WIN_CTRL_OBJS = \
5656
$O\Dialog.obj \
5757
$O\ListView.obj \
5858

59+
DARK_MODE_OBJS = \
60+
$O\DarkMode.obj \
61+
$O\DarkModeSubclass.obj \
62+
5963
UI_COMMON_OBJS = \
6064
$O\ArchiveName.obj \
6165
$O\CompressCall.obj \

CPP/7zip/UI/FileManager/AboutDialog.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "AboutDialogRes.h"
22
#include "../../GuiCommon.rc"
33
#include "../../MyVersion.h"
4+
#include "../../../../DarkMode/src/Version.h"
45

56
#define xc 144
67
#define yc 144
@@ -23,4 +24,6 @@ CAPTION "About 7-Zip"
2324
LTEXT "", IDT_ABOUT_DATE, m, 67, xc, 8
2425
LTEXT MY_COPYRIGHT, -1, m, 80, xc, 8
2526
LTEXT "7-Zip is free software", IDT_ABOUT_INFO, m, y, xc, (by - y - 1)
27+
LTEXT DM_VERSION, -1, m, 106, xc, 8
28+
LTEXT DM_COPYRIGHT, -1, m, 119, xc, 8
2629
}

0 commit comments

Comments
 (0)