Skip to content

Commit

Permalink
Compliance fixes for gtk-3.20, gtk-4.0, and gnome-shell
Browse files Browse the repository at this point in the history
This commit fixes all immediate errors that would cause `dart-sass` to error out.
  • Loading branch information
ran-dall committed Aug 8, 2022
1 parent 484b940 commit 3a9bf58
Show file tree
Hide file tree
Showing 30 changed files with 105,644 additions and 20,108 deletions.
17 changes: 12 additions & 5 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,23 @@ gulp.task('styles-gtk4', function(done) {
.pipe(exec(' gsettings set org.gnome.desktop.interface gtk-theme "Dracula"'))
done();
});
gulp.task('shell-style', function(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 @@ -41,9 +48,9 @@ gulp.task('default',function() {
});

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

0 comments on commit 3a9bf58

Please sign in to comment.