A fork of the Materia GTK theme.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 meson.build

View raw Download
text/plain • 1.26 kiB
ASCII text
        
            
1
project(
2
'materia-theme',
3
version: '20200916',
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
sh = find_program('sh')
16
17
themes = []
18
foreach color: get_option('colors')
19
foreach size: get_option('sizes')
20
color_suffix = color == 'default' ? '' : '-@0@'.format(color)
21
size_suffix = size == 'default' ? '' : '-@0@'.format(size)
22
23
scss_dark_theme = color == 'dark' ? 'true' : 'false'
24
scss_light_topbar = color == 'light' ? 'true' : 'false'
25
scss_compact = size == 'compact' ? 'true' : 'false'
26
27
themes += {
28
'name': theme_base_name + color_suffix + size_suffix,
29
'dir': theme_base_dir + color_suffix + size_suffix,
30
'color': color_suffix,
31
'size': size_suffix,
32
'scss_dark_theme': scss_dark_theme,
33
'scss_light_topbar': scss_light_topbar,
34
'scss_compact': scss_compact,
35
}
36
endforeach
37
endforeach
38
39
foreach theme: themes
40
install_data(
41
'COPYING',
42
install_dir: theme['dir'],
43
)
44
endforeach
45
46
if not get_option('flatpak')
47
subdir('src')
48
else
49
subdir('src/gtk-3.0')
50
subdir('src/gtk-4.0')
51
endif
52