diff --git a/Gruntfile.js b/Gruntfile.js index 8e5e976b..087aa618 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -12,6 +12,7 @@ module.exports = function(grunt) { // create a version based on the build timestamp var dateFormat = require('dateformat'); var version = '-' + dateFormat(new Date(), "yyyy-mm-dd-hh-MM"); + var releaseVersion = require('./package.json').version; /** * Helper to prefix all strings in provided array with the provided path @@ -194,7 +195,8 @@ module.exports = function(grunt) { dest: 'dest/tmp/index.html', options : { globals : { - 'version' : version + 'version' : version, + 'releaseVersion' : releaseVersion } } } diff --git a/src/css/settings-application.css b/src/css/settings-application.css index 5d0c9feb..19c3bd86 100644 --- a/src/css/settings-application.css +++ b/src/css/settings-application.css @@ -1,6 +1,16 @@ /*******************************/ /* Application Setting panel */ /*******************************/ +.application-settings-form { + height: 100%; +} + +.settings-section-application { + position: relative; + overflow: hidden; + margin: 0 20px; + height: 100%; +} .background-picker-wrapper { display: inline-block; @@ -67,3 +77,18 @@ .settings-section-application .button-primary { margin-top: 10px; } + +.settings-version-info { + position: absolute; + bottom: 10px; + right: 10px; + color: #888; +} + +/* Override default link styles for the release notes link + It doesn't need to popout too much */ +.settings-version, +.settings-version:hover { + color: white !important; + text-decoration: none !important; +} \ No newline at end of file diff --git a/src/piskel-boot.js b/src/piskel-boot.js index 4292e6f5..644cf467 100644 --- a/src/piskel-boot.js +++ b/src/piskel-boot.js @@ -18,6 +18,7 @@ loadingMask.style.opacity = 0; window.setTimeout(function () {loadingMask.parentNode.removeChild(loadingMask);}, 600); pskl.app.init(); + pskl._releaseVersion = '@@releaseVersion'; // cleanup delete window.pskl_exports; delete window.loadDebugScripts; diff --git a/src/templates/settings/application.html b/src/templates/settings/application.html index e272dead..0509ddd6 100644 --- a/src/templates/settings/application.html +++ b/src/templates/settings/application.html @@ -1,5 +1,5 @@