Skip to content
nana-4 edited this page Mar 1, 2020 · 1 revision

Ship meson

and maybe leave install.sh.

Meson should be fast, and more useful than test.sh and parse-sass.sh even for testing.

TODO:

  • Require sassc
  • Don't ship generated CSS files in the repo
  • For testing, use Materia instead of Materia.dev
  • For comparison, use MateriaSnapshot instead of Materia
    • Create via meson instead of test.sh
  • Remove parse-sass.sh & test.sh

Questions:

  • Maybe some distros don't have sassc package?
  • How to handle with flatpak without generated CSS?

Restructure directory structure

$ tree src
src
├── gnome-shell
│   ├── assets/
│   ├── assets-dark/
│   ├── gnome-shell-theme.gresource.xml
│   └── sass
│       ├── components/
│       ├── extensions/
│       ├── gnome-shell.scss.in
│       ├── _drawing.scss
│       └── _variables.scss
├── gtk
│   ├── assets/
│   ├── assets.svg
│   ├── assets.txt
│   └── sass
│       ├── apps/
│       ├── gtk.scss.in
│       ├── gtk-dark.scss.in
│       ├── _common.scss
│       ├── _drawing.scss
│       └── _public-colors.scss
├── _theme.scss
├── _theme.template.scss
├── _palette.scss
└── index.theme.in
if [[ "$color" != "-dark" ]]; then
  sassc gtk-dark.scss gtk-dark.css
fi
Clone this wiki locally