Skip to content

Commit 484b940

Browse files
committed
Update Gulpfile.js to work with gtk-4.0 styles
1 parent b2314bf commit 484b940

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Gulpfile.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@ var gulp = require('gulp');
22
var sass = require('gulp-sass')(require('sass'));
33
var exec = require('gulp-exec');
44

5-
gulp.task('styles', function(done) {
5+
gulp.task('styles-gtk3', function(done) {
66
gulp.src('gtk-3.20/**/*.scss')
77
.pipe(sass().on('error', sass.logError))
88
.pipe(gulp.dest('./gtk-3.20/'))
99
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"'))
1010
done();
1111
});
12+
gulp.task('styles-gtk4', function(done) {
13+
gulp.src('gtk-4.0/**/*.scss')
14+
.pipe(sass().on('error', sass.logError))
15+
.pipe(gulp.dest('./gtk-4.0/'))
16+
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"'))
17+
done();
18+
});
1219
gulp.task('shell-style', function(done) {
1320
gulp.src('gnome-shell/**/*.scss')
1421
.pipe(sass().on('error', sass.logError))
@@ -28,9 +35,9 @@ gulp.task('cinnamon-style', function(done) {
2835
done();
2936
});
3037

31-
//Watch task
38+
//Watch tasks
3239
gulp.task('default',function() {
33-
gulp.watch('gtk-3.20/**/*.scss', gulp.series('styles'));
40+
gulp.watch(['gtk-4.0/**/*.scss', 'gtk-3.20/**/*.scss'], gulp.series(gulp.parallel('styles-gtk4', 'styles-gtk3')));
3441
});
3542

3643
gulp.task('shell',function() {

0 commit comments

Comments
 (0)