move back styleguide to remix-ide

pull/1/head
yann300 7 years ago
parent 91fea06319
commit f50e02d41d
  1. 4
      src/app/tabs/styles/analysis-tab-styles.js
  2. 3
      src/app/tabs/styles/compile-tab-styles.js
  3. 2
      src/app/tabs/styles/debugger-tab-styles.js
  4. 2
      src/app/tabs/styles/run-tab-styles.js
  5. 3
      src/app/tabs/styles/settings-tab-styles.js
  6. 2
      src/app/tabs/styles/support-tab-styles.js
  7. 2
      src/app/tabs/styles/tabbed-menu-styles.js
  8. 2
      src/app/ui/contextMenu.js
  9. 2
      src/app/ui/copy-to-clipboard.js
  10. 746
      src/app/ui/styles-guide/style-guide.js
  11. 752
      src/app/ui/styles-guide/styleGuideDark.js
  12. 31
      src/app/ui/styles-guide/theme-chooser.js
  13. 3
      src/app/ui/styles/dropdown-styles.js
  14. 2
      src/app/ui/styles/modaldialog-styles.js
  15. 2
      src/app/ui/styles/renderer-styles.js
  16. 2
      src/app/ui/styles/tooltip-styles.js

@ -1,8 +1,6 @@
var remixLib = require('remix-lib')
// -------------- styling ----------------------
var csjs = require('csjs-inject')
var styleGuide = remixLib.ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,6 +1,5 @@
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var styleGuide = remixLib.ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,6 +1,5 @@
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var styleGuide = remixLib.ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../../ui/styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,7 +1,7 @@
var yo = require('yo-yo')
// -------------- copyToClipboard ----------------------
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('./styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -4,7 +4,7 @@ const copy = require('clipboard-copy')
var addTooltip = require('./tooltip')
// -------------- styling ----------------------
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('./styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -0,0 +1,31 @@
// var remixLib = require('remix-lib')
var styleGuideLight = require('./style-guide')
var styleGuideDark = require('./styleGuideDark')
var Storage = require('remix-lib').Storage
module.exports = {
chooser: function () {
var themeStorage = new Storage('style:')
if (themeStorage.exists('theme')) {
if (themeStorage.get('theme') === 'dark') {
return styleGuideDark()
} else {
return styleGuideLight()
}
} else {
return styleGuideLight()
}
},
switchTheme: function (theme) {
var themeStorage = new Storage('style:')
themeStorage.set('theme', theme)
if (theme === 'dark') {
return styleGuideDark()
} else if (theme === 'light') {
return styleGuideLight()
} else {
return styleGuideLight()
}
}
}

@ -1,6 +1,5 @@
var csjs = require('csjs-inject')
var remixLib = require('remix-lib')
var styleGuide = remixLib.ui.themeChooser
var styleGuide = require('../styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

@ -1,6 +1,6 @@
var yo = require('yo-yo')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = yo`<style>

@ -1,5 +1,5 @@
var csjs = require('csjs-inject')
var styleGuide = require('remix-lib').ui.themeChooser
var styleGuide = require('../styles-guide/theme-chooser')
var styles = styleGuide.chooser()
var css = csjs`

Loading…
Cancel
Save