Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions Gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
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('shell-style', function(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-styles', function(done) {
gulp.src('gnome-shell/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./gnome-shell/'))
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Ant"'))
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Dracula"'))
done();
});

gulp.task('cinnamon-style', function(done) {
gulp.task('shell40-styles', function(done) {
gulp.src('gnome-shell/v40/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./gnome-shell/v40'))
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Ant"'))
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Dracula"'))
done();
});
gulp.task('cinnamon-styles', function(done) {
gulp.src('cinnamon/**/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('./cinnamon/'))
Expand All @@ -28,15 +42,15 @@ 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() {
gulp.watch('gnome-shell/**/*.scss', gulp.series('shell-style'));
gulp.watch('gnome-shell/**/*.scss', gulp.series(gulp.parallel('shell-styles', 'shell40-styles')));
});

gulp.task('cinnamon',function() {
gulp.watch('cinnamon/**/*.scss', gulp.series('cinnamon-style'));
gulp.watch('cinnamon/**/*.scss', gulp.series('cinnamon-styles'));
});
2 changes: 1 addition & 1 deletion gnome-shell/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
// $tc is the text color
// $bg is the background color
//
$_lbg: lightness($bg)/100%;
$_lbg: calc(lightness($bg) / 100%);
@if lightness($tc)<50% { @return transparentize(white,1-$_lbg/($_lbg*1.3)); }
@else { @return transparentize(black,$_lbg*0.8); }
}
Expand Down
Loading