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 Jun 2, 2022
1 parent cc32ff4 commit 2865d5d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 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 @@ -30,7 +37,7 @@ gulp.task('cinnamon-style', function(done) {

//Watch task
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 2865d5d

Please sign in to comment.