Skip to content

Commit

Permalink
Missing JQuery UI icons #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Aug 30, 2019
1 parent a555c81 commit 92d50b6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PragmaThemePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function init() {
';
}

$themeUrl = $this->getPluginPath();
$additionalLessVariables[] = "@themeUrl: '$themeUrl';";

// Add navigation menu areas for this theme
$this->addMenuArea(array('primary', 'user'));

Expand Down
8 changes: 8 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var concat = require("gulp-concat");
var minifyCSS = require("gulp-csso");
var sourcemaps = require("gulp-sourcemaps");
var minify = require("gulp-minify");
var merge = require("merge-stream");

gulp.task("sass", function () {
return gulp.src(["node_modules/bootstrap/scss/bootstrap.scss", "node_modules/jquery-ui-dist/jquery-ui.min.css", "node_modules/tag-it/css/jquery.tagit.css"])
Expand Down Expand Up @@ -37,3 +38,10 @@ gulp.task("compileAll", gulp.series("sass", "scripts", "compress"));
gulp.task("watch", function () {
return gulp.watch("resources/js/**/*.js", gulp.series("scripts", "compress"));
});

// Keeping merge for copying future dependant files
gulp.task("copyFiles", function () {
var jqueryuiImages = gulp.src("node_modules/jquery-ui-dist/images/ui-icons_444444_256x240.png")
.pipe(gulp.dest("resources/images"));
return merge(jqueryuiImages);
});
Binary file added resources/images/ui-icons_444444_256x240.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/less/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ input {
color: @primary-colour;
}

.ui-icon, .ui-widget-content .ui-icon, .ui-widget-header .ui-icon {
background-image: url("/@{themeUrl}/resources/images/ui-icons_444444_256x240.png");
}

// Button-like dropdown menu

.dropdown-menu {
Expand Down
3 changes: 3 additions & 0 deletions resources/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@
@contrast-colour: rgba(0, 0, 0, 0.95);
@secondary-contrast-colour: rgba(0, 0, 0, 0.75);
@tertiary-contrast-colour: rgba(0, 0, 0, 0.65);

// To be assign by the theme plugin
@themeUrl: '';

0 comments on commit 92d50b6

Please sign in to comment.