Skip to content

Commit

Permalink
Update Gulpfile.js to work with gtk-4.0 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ran-dall committed Aug 6, 2022
1 parent b2314bf commit 484b940
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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() {
Expand Down

0 comments on commit 484b940

Please sign in to comment.