From 32bc2a1e0aa31995f40ab5686070eed5b50a98b6 Mon Sep 17 00:00:00 2001 From: Randall Date: Thu, 2 Jun 2022 13:11:48 -0700 Subject: [PATCH] Update `Gulpfile.js` to work with `gtk-4.0` styles --- Gulpfile.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Gulpfile.js b/Gulpfile.js index 7450813a..c5958a14 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -2,13 +2,20 @@ var gulp = require('gulp'); var sass = require('gulp-sass')(require('sass')); var exec = require('gulp-exec'); -gulp.task('styles', function(done) { +gulp.task('styles-gtk3', function(done) { gulp.src('gtk-3.20/**/*.scss') .pipe(sass().on('error', sass.logError)) .pipe(gulp.dest('./gtk-3.20/')) .pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"')) done(); }); +gulp.task('styles-gtk4', function(done) { + gulp.src('gtk-4.0/**/*.scss') + .pipe(sass().on('error', sass.logError)) + .pipe(gulp.dest('./gtk-4.0/')) + .pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"')) + done(); +}); gulp.task('shell-style', function(done) { gulp.src('gnome-shell/**/*.scss') .pipe(sass().on('error', sass.logError)) @@ -28,9 +35,9 @@ gulp.task('cinnamon-style', function(done) { done(); }); -//Watch task +//Watch tasks gulp.task('default',function() { - gulp.watch('gtk-3.20/**/*.scss', gulp.series('styles')); + gulp.watch(['gtk-4.0/**/*.scss', 'gtk-3.20/**/*.scss'], gulp.series(gulp.parallel('styles-gtk4', 'styles-gtk3'))); }); gulp.task('shell',function() {