1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Install app icons in system theme
theme_dir = join_paths(get_option('prefix'), 'share', 'icons', 'hicolor')
icon_sizes = ['16', '24', '48', '256', '512']
app_icon_name = 'org.sparkleshare.SparkleShare'
foreach size : icon_sizes
icon_dir = join_paths(size + 'x' + size, 'apps')
install_data(
sources: join_paths('hicolor', icon_dir, app_icon_name + '.png'),
install_dir: join_paths(theme_dir, icon_dir))
endforeach
install_data(
sources: join_paths('hicolor', 'symbolic', 'apps', app_icon_name + '-symbolic.svg'),
install_dir: join_paths(theme_dir, 'symbolic', 'apps'))
# Install the status icons
status_icons = ['syncing',
'syncing-up',
'syncing-down',
'syncing-error']
foreach icon : status_icons
install_data(
sources: join_paths('hicolor', '24x24', 'status', app_icon_name + '-' + icon + '.png'),
install_dir: join_paths(theme_dir, '24x24', 'apps'))
install_data(
sources: join_paths('hicolor', '48x48', 'status', app_icon_name + '-' + icon + '.png'),
install_dir: join_paths(theme_dir, '48x48', 'apps'))
install_data(
sources: join_paths('hicolor', 'symbolic', 'status', app_icon_name + '-' + icon + '-symbolic.svg'),
install_dir: join_paths(theme_dir, 'symbolic', 'apps'))
endforeach
# Install other icons in app theme
app_theme_dir = join_paths(install_dir, 'icons', 'hicolor')
category = 'status'
size = '12'
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'document-added.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'document-edited.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'document-deleted.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'document-moved.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
size = '16'
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'list-point.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
size = '22'
install_data(sources: join_paths('hicolor', size + 'x' + size, category, 'process-working.png'),
install_dir: join_paths(app_theme_dir, size + 'x' + size, category))
|