Skip to content

Commit 3a9bf58

Browse files
committed
Compliance fixes for gtk-3.20, gtk-4.0, and gnome-shell
This commit fixes all immediate errors that would cause `dart-sass` to error out.
1 parent 484b940 commit 3a9bf58

30 files changed

+105644
-20108
lines changed

Gulpfile.js

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,23 @@ gulp.task('styles-gtk4', function(done) {
1616
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"'))
1717
done();
1818
});
19-
gulp.task('shell-style', function(done) {
19+
gulp.task('shell-styles', function(done) {
2020
gulp.src('gnome-shell/**/*.scss')
2121
.pipe(sass().on('error', sass.logError))
2222
.pipe(gulp.dest('./gnome-shell/'))
2323
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Ant"'))
2424
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Dracula"'))
2525
done();
2626
});
27-
28-
gulp.task('cinnamon-style', function(done) {
27+
gulp.task('shell40-styles', function(done) {
28+
gulp.src('gnome-shell/v40/**/*.scss')
29+
.pipe(sass().on('error', sass.logError))
30+
.pipe(gulp.dest('./gnome-shell/v40'))
31+
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Ant"'))
32+
.pipe(exec('gsettings set org.gnome.shell.extensions.user-theme name "Dracula"'))
33+
done();
34+
});
35+
gulp.task('cinnamon-styles', function(done) {
2936
gulp.src('cinnamon/**/*.scss')
3037
.pipe(sass().on('error', sass.logError))
3138
.pipe(gulp.dest('./cinnamon/'))
@@ -41,9 +48,9 @@ gulp.task('default',function() {
4148
});
4249

4350
gulp.task('shell',function() {
44-
gulp.watch('gnome-shell/**/*.scss', gulp.series('shell-style'));
51+
gulp.watch('gnome-shell/**/*.scss', gulp.series(gulp.parallel('shell-styles', 'shell40-styles')));
4552
});
4653

4754
gulp.task('cinnamon',function() {
48-
gulp.watch('cinnamon/**/*.scss', gulp.series('cinnamon-style'));
55+
gulp.watch('cinnamon/**/*.scss', gulp.series('cinnamon-styles'));
4956
});

gnome-shell/_drawing.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
// $tc is the text color
8080
// $bg is the background color
8181
//
82-
$_lbg: lightness($bg)/100%;
82+
$_lbg: calc(lightness($bg) / 100%);
8383
@if lightness($tc)<50% { @return transparentize(white,1-$_lbg/($_lbg*1.3)); }
8484
@else { @return transparentize(black,$_lbg*0.8); }
8585
}

0 commit comments

Comments
 (0)