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.45 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
themes = []
16
foreach color: get_option('colors')
17
foreach size: get_option('sizes')
18
if color == 'default'
19
color_suffix = ''
20
scss_dark_theme = 'false'
21
scss_light_topbar = 'false'
22
elif color == 'light'
23
color_suffix = '-light'
24
scss_dark_theme = 'false'
25
scss_light_topbar = 'true'
26
elif color == 'dark'
27
color_suffix = '-dark'
28
scss_dark_theme = 'true'
29
scss_light_topbar = 'false'
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_dark_theme': scss_dark_theme,
46
'scss_light_topbar': scss_light_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-3.0')
63
endif
64