@@ -3,86 +3,22 @@ gtk4_dir = join_paths(theme_dir, 'gtk-4.0')
3
3
# Install asset files to themes/ThemeName/gtk-4.0/assets
4
4
install_subdir (' assets' , install_dir : gtk4_dir, strip_directory : false )
5
5
6
- # theme sources .scss files
7
-
8
- # The files that need to be compiled
9
- if get_option (' dark' )
10
- gtk4_scss_sources = [
11
- ' gtk' ,
12
- ' gtk-dark' ,
13
- ]
14
- else
15
- gtk4_scss_sources = [
16
- ' gtk' ,
17
- ' gtk-dark' ,
18
- ]
19
- endif
20
-
21
- # Dependencies of the files that need to be compiled
22
- gtk4_scss_dependencies = [
23
- ' _colors.scss' ,
24
- ' _common.scss' ,
25
- ' _compat-colors.scss' ,
26
- ' _defaults.scss' ,
27
- ' _drawing.scss' ,
28
- ' _functions.scss' ,
29
- ' _widgets.scss' ,
30
- ' _tauos.scss' ,
31
-
32
- ' widgets/_avatar.scss' ,
33
- ' widgets/_buttons.scss' ,
34
- ' widgets/_calendar.scss' ,
35
- ' widgets/_checks.scss' ,
36
- ' widgets/_color-chooser.scss' ,
37
- ' widgets/_dialogs.scss' ,
38
- ' widgets/_dropdowns.scss' ,
39
- ' widgets/_emoji-chooser.scss' ,
40
- ' widgets/_entries.scss' ,
41
- ' widgets/_expanders.scss' ,
42
- ' widgets/_file-chooser.scss' ,
43
- ' widgets/_header-bar.scss' ,
44
- ' widgets/_labels.scss' ,
45
- ' widgets/_level-bar.scss' ,
46
- ' widgets/_linked.scss' ,
47
- ' widgets/_links.scss' ,
48
- ' widgets/_lists.scss' ,
49
- ' widgets/_menus.scss' ,
50
- ' widgets/_message-dialog.scss' ,
51
- ' widgets/_misc.scss' ,
52
- ' widgets/_notebook.scss' ,
53
- ' widgets/_paned.scss' ,
54
- ' widgets/_popovers.scss' ,
55
- ' widgets/_preferences.scss' ,
56
- ' widgets/_progress-bar.scss' ,
57
- ' widgets/_scale.scss' ,
58
- ' widgets/_scrolling.scss' ,
59
- ' widgets/_shortcuts-window.scss' ,
60
- ' widgets/_sidebars.scss' ,
61
- ' widgets/_spinner.scss' ,
62
- ' widgets/_spin-button.scss' ,
63
- ' widgets/_switch.scss' ,
64
- ' widgets/_tab-view.scss' ,
65
- ' widgets/_text-selection.scss' ,
66
- ' widgets/_toolbars.scss' ,
67
- ' widgets/_tooltip.scss' ,
68
- ' widgets/_transition-shadow.scss' ,
69
- ' widgets/_trees.scss' ,
70
- ' widgets/_views.scss' ,
71
- ' widgets/_view-switcher.scss' ,
72
- ' widgets/_window.scss' ,
73
- ]
74
-
75
- # Generate .css files and install
76
- gtk4_scss_dependencies = files (gtk4_scss_dependencies)
77
- #
78
- foreach f : gtk4_scss_sources
79
- custom_target (' generate_' + f,
80
- input : f + ' .scss' ,
81
- output : f + ' .css' ,
82
- depend_files : gtk4_scss_dependencies,
6
+ generate_gtk4_light = custom_target (' generate_gtk4_light' ,
7
+ input : ' gtk.scss' ,
8
+ output : ' gtk.css' ,
83
9
command : [sass, ' --no-source-map' , ' -s' , ' compressed' , ' @INPUT@' , ' @OUTPUT@' ],
84
10
build_by_default : true ,
85
11
install : true ,
86
12
install_dir : gtk4_dir,
87
13
)
88
- endforeach
14
+
15
+ if get_option (' dark' )
16
+ generate_gtk4_dark = custom_target (' generate_gtk4_dark' ,
17
+ input : ' gtk-dark.scss' ,
18
+ output : ' gtk-dark.css' ,
19
+ command : [sass, ' --no-source-map' , ' -s' , ' compressed' , ' @INPUT@' , ' @OUTPUT@' ],
20
+ build_by_default : true ,
21
+ install : true ,
22
+ install_dir : gtk4_dir,
23
+ )
24
+ endif
0 commit comments