A fork of the Materia GTK theme.

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 meson.build

View raw Download
text/plain • 1.4 kiB
ASCII text
        
            
1
project(
2
'materia-theme',
3
version: '20200320',
4
license: 'GPLv2+',
5
meson_version: '>= 0.47.0',
6
default_options: ['prefix=/usr'],
7
)
8
9
theme_base_name = get_option('theme_name')
10
theme_base_dir = join_paths(get_option('datadir'), 'themes', theme_base_name)
11
12
sassc = find_program('sassc')
13
sassc_opts = ['-M', '-t', 'expanded']
14
15
themes = []
16
foreach color: get_option('colors')
17
foreach size: get_option('sizes')
18
if color == 'default'
19
color_suffix = ''
20
scss_variant = 'light'
21
scss_topbar = 'dark'
22
elif color == 'light'
23
color_suffix = '-light'
24
scss_variant = 'light'
25
scss_topbar = 'light'
26
elif color == 'dark'
27
color_suffix = '-dark'
28
scss_variant = 'dark'
29
scss_topbar = 'dark'
30
endif
31
32
if size == 'default'
33
size_suffix = ''
34
scss_compact = 'false'
35
elif size == 'compact'
36
size_suffix = '-compact'
37
scss_compact = 'true'
38
endif
39
40
themes += {
41
'name': theme_base_name + color_suffix + size_suffix,
42
'dir': theme_base_dir + color_suffix + size_suffix,
43
'color': color_suffix,
44
'size': size_suffix,
45
'scss_variant': scss_variant,
46
'scss_topbar': scss_topbar,
47
'scss_compact': scss_compact,
48
}
49
endforeach
50
endforeach
51
52
foreach theme: themes
53
install_data(
54
'COPYING',
55
install_dir: theme['dir'],
56
)
57
endforeach
58
59
if not get_option('flatpak')
60
subdir('src')
61
else
62
subdir('src/gtk')
63
endif
64