roundabout,
created on Friday, 26 March 2021, 09:01:00 (1616749260),
received on Sunday, 11 May 2025, 13:23:02 (1746969782)
Author identity: nana-4 <hnmaigo@gmail.com>
84d2c0508d6f545e4104714238a4e3e82eb7985b
.gitignore
@@ -1,3 +1,4 @@
*.pemtmp/*build*/
node_modules/
HACKING.md
@@ -1,6 +1,6 @@
## Summary- To be able to use the latest/adequate version of Sass, install `sassc`.
- To be able to use the latest/adequate version of Sass, install `dart-sass`.
- `meson install` will regenerate the CSS every time you modify the SCSS files.- Note that Meson always builds out-of-tree, so the regenerated CSS files will appear in your builddir.
INSTALL.md
@@ -5,7 +5,7 @@
Materia requires the following build and runtime dependencies:- `meson` >= 0.47.0- `sassc`
- `dart-sass` >= 1.23.0 (or `npm` if the former is not found)
- `gnome-themes-extra` (or `gnome-themes-standard` for older distributions)- Murrine engine — The package name depends on the distro: - `gtk-engine-murrine` on Arch Linux
meson.build
@@ -17,8 +17,21 @@ else
sh = 'sh'endifsassc = find_program('sassc')sassc_opts = ['-M', '-t', 'expanded']
sass = find_program('sass', required: false)
sass_opts = ['--no-source-map']
if sass.found()
sass_full_version = run_command(sass, '--version').stdout()
sass_is_ruby_sass = sass_full_version.contains('Ruby Sass')
sass_has_module_system = sass_full_version.version_compare('>= 1.23.0')
endif
if not sass.found() or sass_is_ruby_sass or not sass_has_module_system
message('dart-sass >= 1.23.0 not found, installing it locally via npm')
npm = find_program('npm')
run_command(npm, 'install')
sass = find_program('./node_modules/.bin/sass')
endif
themes = []foreach color: get_option('colors')
#!/bin/bashset -ueo pipefailif [[ ! "$(command -v sassc)" ]]; then echo "'sassc' needs to be installed to generate the CSS."
if [[ ! "$(command -v sass)" ]]; then
echo "'sass' needs to be installed to generate the CSS."
exit 1fiSASSC_OPT=('-M' '-t' 'expanded')
SASS_OPT=('--no-source-map')
echo "Generating the chrome-scrollbar CSS..."sassc "${SASSC_OPT[@]}" src/chrome/chrome-scrollbar/scrollbars.{scss,css}sassc "${SASSC_OPT[@]}" src/chrome/chrome-scrollbar-dark/scrollbars.{scss,css}
sass "${SASS_OPT[@]}" src/chrome/chrome-scrollbar/scrollbars.{scss,css}
sass "${SASS_OPT[@]}" src/chrome/chrome-scrollbar-dark/scrollbars.{scss,css}