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.61 kiB
ASCII text
        
            
1
cinnamon_scss_depend_files = files([
2
'../_color-palette.scss',
3
'../_colors.scss',
4
'../_variables.scss',
5
'../gnome-shell/sass/_drawing.scss',
6
'../gnome-shell/sass/_variables.scss',
7
'sass/_common.scss',
8
'sass/_extends.scss',
9
'sass/_over-rides.scss',
10
])
11
12
foreach theme: themes
13
cinnamon_dir = join_paths(theme['dir'], 'cinnamon')
14
15
install_subdir(
16
'assets',
17
install_dir: cinnamon_dir,
18
)
19
20
install_data(
21
'thumbnail.png',
22
install_dir: cinnamon_dir,
23
)
24
25
#
26
# SCSS
27
#
28
29
cinnamon_scss_conf = configuration_data()
30
cinnamon_scss_conf.set('dark_theme', theme['scss_dark_theme'])
31
cinnamon_scss_conf.set('light_topbar', theme['scss_light_topbar'])
32
cinnamon_scss_conf.set('compact', theme['scss_compact'])
33
34
# Configure SCSS file
35
cinnamon_scss = configure_file(
36
input: 'cinnamon.scss.in',
37
output: 'cinnamon.@0@.scss'.format(theme['name']),
38
configuration: cinnamon_scss_conf,
39
)
40
41
# Copy it from build dir to source dir
42
run_command(
43
'cp',
44
cinnamon_scss,
45
meson.current_source_dir(),
46
)
47
48
# Generate CSS file
49
cinnamon_css = custom_target(
50
'cinnamon.@0@.css'.format(theme['name']),
51
input: 'cinnamon.@0@.scss'.format(theme['name']),
52
output: 'cinnamon.@0@.css'.format(theme['name']),
53
command: [sassc, sassc_opts, '@INPUT@', '@OUTPUT@'],
54
depend_files: cinnamon_scss_depend_files,
55
build_by_default: true,
56
)
57
58
# Install it while renaming to a valid name
59
meson.add_install_script(
60
'sh', '-c', 'cp "@0@" "@1@"'.format(
61
cinnamon_css.full_path(),
62
join_paths('$MESON_INSTALL_DESTDIR_PREFIX', cinnamon_dir, 'cinnamon.css'),
63
),
64
)
65
endforeach
66