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.28 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
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
color_suffix = color == 'default' ? '' : '-@0@'.format(color)
19
size_suffix = size == 'default' ? '' : '-@0@'.format(size)
20
21
scss_dark_theme = color == 'dark' ? 'true' : 'false'
22
scss_light_topbar = color == 'light' ? 'true' : 'false'
23
scss_compact = size == 'compact' ? 'true' : 'false'
24
25
themes += {
26
'name': theme_base_name + color_suffix + size_suffix,
27
'dir': theme_base_dir + color_suffix + size_suffix,
28
'color': color_suffix,
29
'size': size_suffix,
30
'scss_dark_theme': scss_dark_theme,
31
'scss_light_topbar': scss_light_topbar,
32
'scss_compact': scss_compact,
33
}
34
endforeach
35
endforeach
36
37
foreach theme: themes
38
install_data(
39
[
40
'COPYING',
41
'INSTALL_GDM_THEME.md',
42
],
43
install_dir: theme['dir'],
44
)
45
endforeach
46
47
if not get_option('flatpak')
48
subdir('src')
49
else
50
subdir('src/gtk-3.0')
51
subdir('src/gtk-4.0')
52
endif
53