Skip to content

Commit

Permalink
build: Use common input file to generate index.theme files
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsh committed Oct 26, 2021
1 parent 7bec571 commit 860860c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 46 deletions.
6 changes: 3 additions & 3 deletions common/index/dark/index.theme → common/index.theme.in
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[Desktop Entry]
Type=X-GNOME-Metatheme
Name=Arc-Dark
Name=@variant_name@
Comment=A flat theme with transparent elements
Encoding=UTF-8

[X-GNOME-Metatheme]
GtkTheme=Arc-Dark
MetacityTheme=Arc-Dark
GtkTheme=@variant_name@
MetacityTheme=@variant_name@
IconTheme=Adwaita
CursorTheme=DMZ-Black
ButtonLayout=menu:minimize,maximize,close
12 changes: 0 additions & 12 deletions common/index/darker/index.theme

This file was deleted.

12 changes: 0 additions & 12 deletions common/index/light/index.theme

This file was deleted.

12 changes: 0 additions & 12 deletions common/index/lighter/index.theme

This file was deleted.

6 changes: 0 additions & 6 deletions common/index/meson.build

This file was deleted.

16 changes: 15 additions & 1 deletion common/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
subdir('index')
foreach variant : get_option('variants')
index_theme = configure_file(
input: 'index.theme.in',
output : 'index.theme.' + variant,
configuration : {
'variant_name' : variant_name.get(variant),
}
)

install_data(
index_theme,
rename: 'index.theme',
install_dir : prefix / install_dir.get(variant),
)
endforeach

common_dirs = {
'cinnamon' : 'cinnamon',
Expand Down

0 comments on commit 860860c

Please sign in to comment.