This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (45 loc) · 1.54 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
define replace
@echo -e "$(3): $(1) -> $(2)"
@find arc-theme/ -type f -exec sed -i "s/$(1)/$(2)/gI" {} \;
endef
define step
@echo -e "\e[1;34m::\e[0;1m $(1)\e[0m"
endef
accent = "\#8AB4F8"
all: clean fetch colors name meson release theme
clean:
$(call step,"Cleanup")
rm -rf arc-theme
fetch:
$(call step,"Fetch Upstream Arc")
git submodule init
git submodule update
git submodule update --recursive --remote
colors:
$(call step,"Replace Colors")
$(call replace,"#383C4A","#1a1a1a","Background [Main]")
$(call replace,"#353945","#1a1a1a","Background [Sidebar]")
$(call replace,"#404552","#212121","Background [Widgets]")
$(call replace,"#444A58","#212121","Button")
$(call replace,"#3E4350","#000000","Button [Inactive]")
$(call replace,"#505666","${accent}","Button [Highlight]")
$(call replace,"#767B87","${accent}","Scrollbar [Slider]")
$(call replace,"#3E434F","#1a1a1a","Scrollbar [Background]")
$(call replace,"#2F343F","#1a1a1a","Headerbar")
$(call replace,"#5294e2","${accent}","Selection")
$(call replace,"#D3DAE3","#eeeeee","Font Color")
name:
$(call step,"Replacing Name")
$(call replace,"Arc-Dark","yada-gtk","Main Theme")
$(call replace,"Arc","yada-gtk","Leftovers")
meson:
$(call step,"Theme Build")
cd arc-theme && meson setup --prefix=`dirname \`pwd\`` -Dvariants=dark build/
cd arc-theme && meson install -C build/
release:
$(call step,"Build Theme Release Package")
mkdir -p release
cd share/themes && tar cfJ ../../release/yada-gtk.tar.xz yada-gtk
theme:
$(call step,"Update Yada Theme")
cp -rf share/themes/yada-gtk/* .