diff --git a/index.html b/index.html
index 9cf2e13472..c694a541c4 100644
--- a/index.html
+++ b/index.html
@@ -28,7 +28,6 @@
-->
+
${self._view.iconpanel}
${self._view.sidepanel}
${self._components.resizeFeature.render()}
@@ -215,6 +237,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
// ----------------- theme servive ----------------------------
const themeModule = new ThemeModule(registry)
registry.put({api: themeModule, name: 'themeModule'})
+ themeModule.initTheme(() => {
+ setTimeout(() => {
+ document.body.removeChild(self._view.splashScreen)
+ self._view.el.style.visibility = 'visible'
+ }, 1500)
+ })
// ----------------- editor servive ----------------------------
const editor = new Editor({}, themeModule) // wrapper around ace editor
registry.put({api: editor, name: 'editor'})
diff --git a/src/app/components/vertical-icons.js b/src/app/components/vertical-icons.js
index 4084948dfb..a3bdd03fc1 100644
--- a/src/app/components/vertical-icons.js
+++ b/src/app/components/vertical-icons.js
@@ -4,6 +4,7 @@ var helper = require('../../lib/helper')
let globalRegistry = require('../../global/registry')
const { Plugin } = require('@remixproject/engine')
import * as packageJson from '../../../package.json'
+import { basicLogo } from '../ui/svgLogo'
const EventEmitter = require('events')
@@ -229,12 +230,7 @@ export class VerticalIcons extends Plugin {
plugin="home" title="Home"
data-id="verticalIconsHomeIcon"
>
-
+ ${basicLogo()}
`
diff --git a/src/app/tabs/theme-module.js b/src/app/tabs/theme-module.js
index 3d5929a98b..b13355f97d 100644
--- a/src/app/tabs/theme-module.js
+++ b/src/app/tabs/theme-module.js
@@ -1,6 +1,7 @@
import { Plugin } from '@remixproject/engine'
import { EventEmitter } from 'events'
import * as packageJson from '../../../package.json'
+import yo from 'yo-yo'
const themes = [
{name: 'Dark', quality: 'dark', url: 'https://res.cloudinary.com/dvtmp0niu/raw/upload/v1578991867/remix-dark-theme.css'},
@@ -52,6 +53,21 @@ export class ThemeModule extends Plugin {
return Object.keys(this.themes).map(key => this.themes[key])
}
+ /**
+ * Init the theme
+ */
+ initTheme (callback) {
+ if (this.active) {
+ const nextTheme = this.themes[this.active] // Theme
+ document.documentElement.style.setProperty('--theme', nextTheme.quality)
+ const theme = yo`
`
+ theme.addEventListener('load', () => {
+ if (callback) callback()
+ })
+ document.head.appendChild(theme)
+ }
+ }
+
/**
* Change the current theme
* @param {string} [themeName] - The name of the theme
diff --git a/src/app/ui/svgLogo.js b/src/app/ui/svgLogo.js
new file mode 100644
index 0000000000..ccce67bfef
--- /dev/null
+++ b/src/app/ui/svgLogo.js
@@ -0,0 +1,9 @@
+import yo from 'yo-yo'
+export function basicLogo () {
+ return yo`
`
+}
diff --git a/src/blockchain/pluginUDapp.js b/src/blockchain/pluginUDapp.js
index dec4b51d1d..93c2f9e369 100644
--- a/src/blockchain/pluginUDapp.js
+++ b/src/blockchain/pluginUDapp.js
@@ -9,8 +9,8 @@ class PluginUdapp {
}
setupEvents () {
- this.blockchain.event.register('newTransaction', (tx, receipt) => {
- this.events.trigger('newTransaction', [tx, receipt])
+ this.blockchain.events.on('newTransaction', (tx, receipt) => {
+ this.events.emit('newTransaction', tx, receipt)
})
}
diff --git a/test-browser/tests/remixd.js b/test-browser/tests/remixd.js
index e4878526eb..5c12b1bf25 100644
--- a/test-browser/tests/remixd.js
+++ b/test-browser/tests/remixd.js
@@ -65,6 +65,7 @@ module.exports = {
.clickLaunchIcon('fileExplorers')
.addFile('test_import_node_modules_with_github_import.sol', sources[4]['browser/test_import_node_modules_with_github_import.sol'])
.clickLaunchIcon('solidity')
+ .setSolidityCompilerVersion('soljson-v0.6.2+commit.bacdbe57.js') // open-zeppelin moved to pragma ^0.6.0
.testContracts('test_import_node_modules_with_github_import.sol', sources[4]['browser/test_import_node_modules_with_github_import.sol'], ['ERC20', 'test11'])
.clickLaunchIcon('pluginManager')
.scrollAndClick('#pluginManager article[id="remixPluginManagerListItem_remixd"] button')
diff --git a/test-browser/tests/solidityImport.js b/test-browser/tests/solidityImport.js
index 1ebb429396..ad871dde8e 100644
--- a/test-browser/tests/solidityImport.js
+++ b/test-browser/tests/solidityImport.js
@@ -27,7 +27,7 @@ module.exports = {
'Test Github Import - from master branch': function (browser) {
browser
- .setSolidityCompilerVersion('soljson-v0.5.0+commit.1d4f565a.js')
+ .setSolidityCompilerVersion('soljson-v0.6.2+commit.bacdbe57.js') // open-zeppelin moved to pragma ^0.6.0 (master branch)
.addFile('Untitled4.sol', sources[3]['browser/Untitled4.sol'])
.clickLaunchIcon('fileExplorers')
.verifyContracts(['test7', 'ERC20', 'SafeMath'], {wait: 10000})
@@ -35,6 +35,7 @@ module.exports = {
'Test Github Import - from other branch': function (browser) {
browser
+ .setSolidityCompilerVersion('soljson-v0.5.0+commit.1d4f565a.js') // switch back to 0.5.0 : release-v2.3.0 branch is not solidity 0.6 compliant
.addFile('Untitled5.sol', sources[4]['browser/Untitled5.sol'])
.clickLaunchIcon('fileExplorers')
.verifyContracts(['test8', 'ERC20', 'SafeMath'], {wait: 10000})
@@ -42,6 +43,7 @@ module.exports = {
'Test Github Import - no branch specified': function (browser) {
browser
+ .setSolidityCompilerVersion('soljson-v0.6.2+commit.bacdbe57.js') // open-zeppelin moved to pragma ^0.6.0 (master branch)
.addFile('Untitled6.sol', sources[5]['browser/Untitled6.sol'])
.clickLaunchIcon('fileExplorers')
.verifyContracts(['test10', 'ERC20', 'SafeMath'], {wait: 10000})