Merge pull request #2600 from ethereum/yann300-patch-4

Default to dark theme
pull/1/head
yann300 5 years ago committed by GitHub
commit 6713f69160
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/tabs/theme-module.js
  2. 1
      test-browser/helpers/init.js

@ -38,7 +38,7 @@ export class ThemeModule extends Plugin {
config: registry.get('config').api
}
this.themes = themes.reduce((acc, theme) => ({ ...acc, [theme.name]: theme }), {})
this.active = this._deps.config.get('settings/theme') ? this._deps.config.get('settings/theme') : 'Flatly'
this.active = this._deps.config.get('settings/theme') ? this._deps.config.get('settings/theme') : 'Dark'
}
/** Return the active theme */

@ -29,5 +29,6 @@ function initModules (browser, callback) {
.clickLaunchIcon('settings')
.setValue('#gistaccesstoken', process.env.gist_token)
.click('#savegisttoken')
.click('#settingsView #Flatly') // e2e tests were initially developed with Flatly. Some tests are failing with the default one (Dark), because the dark theme put uppercase everywhere.
.perform(() => { callback() })
}

Loading…
Cancel
Save