Restyle setting tab

pull/1/head
ninabreznik 7 years ago
parent 85327645c2
commit edda84a6c5
  1. 36
      src/app/tabs/settings-tab.js

@ -19,15 +19,22 @@ var css = csjs`
} }
.info { .info {
${styles.rightPanel.settingsTab.box_SolidityVersionInfo} ${styles.rightPanel.settingsTab.box_SolidityVersionInfo}
margin-bottom: 2em; margin-bottom: 1em;
word-break: break-word; word-break: break-word;
} }
.title {
font-size: 1.1em;
font-weight: bold;
margin-bottom: 1em;
}
.crow { .crow {
display: flex; display: flex;
overflow: auto; overflow: auto;
clear: both; clear: both;
padding: .5em; padding: .5em;
font-weight: bold; }
.checkboxText {
font-weight: normal;
} }
.crow label { .crow label {
cursor:pointer; cursor:pointer;
@ -39,6 +46,8 @@ var css = csjs`
font-weight: bold; font-weight: bold;
} }
.select { .select {
font-weight: bold;
margin-top: 1em;
${styles.rightPanel.settingsTab.dropdown_SelectCompiler} ${styles.rightPanel.settingsTab.dropdown_SelectCompiler}
} }
.heading { .heading {
@ -79,12 +88,14 @@ function SettingsTab (container, appAPI, appEvents, opts) {
var el = yo` var el = yo`
<div class="${css.settingsTabView} "id="settingsView"> <div class="${css.settingsTabView} "id="settingsView">
<div class="${css.info}"> <div class="${css.info}">
<div>Your current Solidity version is</div> <div class=${css.title}>Solidity version</div>
<div id="version"></div> <span>Current version:</span> <span id="version"></span>
</div>
<div class="${css.crow}"> <div class="${css.crow}">
<select class="${css.select}" id="versionSelector"></select> <select class="${css.select}" id="versionSelector"></select>
</div> </div>
</div>
<div class="${css.info}">
<div class=${css.title}>General settings</div>
<div class="${css.crow}"> <div class="${css.crow}">
<div><input id="editorWrap" type="checkbox"></div> <div><input id="editorWrap" type="checkbox"></div>
<span class="${css.checkboxText}">Text Wrap</span> <span class="${css.checkboxText}">Text Wrap</span>
@ -97,6 +108,20 @@ function SettingsTab (container, appAPI, appEvents, opts) {
<div><input id="optimize" type="checkbox"></div> <div><input id="optimize" type="checkbox"></div>
<span class="${css.checkboxText}">Enable Optimization</span> <span class="${css.checkboxText}">Enable Optimization</span>
</div> </div>
</div>
<div class="${css.info}">
<div class=${css.title}>Plugin</div>
<div class="${css.crowNoFlex}">
<div>
<i title="Do not use this feature yet" class="fa fa-exclamation-triangle" aria-hidden="true"></i>
<span> Do not use this alpha feature if you are not sure what you are doing!</span>
</div>
<div>
<textarea rows="4" cols="70" id="plugininput" type="text" class="${css.pluginTextArea}" ></textarea>
<input onclick=${loadPlugin} type="button" value="Load" class="${css.pluginLoad}">
</div>
</div>
</div>
<hr> <hr>
<h4 class="${css.heading}">Themes ( Selecting a theme will trigger a page reload )</h4> <h4 class="${css.heading}">Themes ( Selecting a theme will trigger a page reload )</h4>
<div class="${css.crow}"> <div class="${css.crow}">
@ -118,6 +143,7 @@ function SettingsTab (container, appAPI, appEvents, opts) {
</div> </div>
</div> </div>
</div> </div>
` `
function loadPlugin () { function loadPlugin () {

Loading…
Cancel
Save