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.46 kiB
ASCII text
        
            
1
project(
2
'materia-theme',
3
version: '20210322',
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
# Avoid printing 'Program sh found' multiple times
13
# if meson version is >= 0.55.0
14
if meson.version().version_compare('>= 0.55.0')
15
sh = find_program('sh')
16
else
17
sh = 'sh'
18
endif
19
20
sassc = find_program('sassc')
21
sassc_opts = ['-M', '-t', 'expanded']
22
23
themes = []
24
foreach color: get_option('colors')
25
foreach size: get_option('sizes')
26
color_suffix = color == 'default' ? '' : '-@0@'.format(color)
27
size_suffix = size == 'default' ? '' : '-@0@'.format(size)
28
29
scss_dark_theme = color == 'dark' ? 'true' : 'false'
30
scss_light_topbar = color == 'light' ? 'true' : 'false'
31
scss_compact = size == 'compact' ? 'true' : 'false'
32
33
themes += {
34
'name': theme_base_name + color_suffix + size_suffix,
35
'dir': theme_base_dir + color_suffix + size_suffix,
36
'color': color_suffix,
37
'size': size_suffix,
38
'scss_dark_theme': scss_dark_theme,
39
'scss_light_topbar': scss_light_topbar,
40
'scss_compact': scss_compact,
41
}
42
endforeach
43
endforeach
44
45
foreach theme: themes
46
install_data(
47
[
48
'COPYING',
49
'INSTALL_GDM_THEME.md',
50
],
51
install_dir: theme['dir'],
52
)
53
endforeach
54
55
if not get_option('flatpak')
56
subdir('src')
57
else
58
subdir('src/gtk-3.0')
59
subdir('src/gtk-4.0')
60
endif
61