Improved styling of editor tabs.

This commit is contained in:
Oliver Hamlet
2014-11-17 20:48:33 +00:00
parent c7bda51de7
commit 7212fcdf02
3 changed files with 24 additions and 4 deletions
+2 -2
View File
@@ -50,11 +50,11 @@ html /deep/ paper-item[disabled] {
}
/* These overrides change the colour of the tab ink effect and their underline. */
html /deep/ paper-tabs::shadow #selectionBar {
#mainToolbar paper-tabs::shadow #selectionBar {
background-color: white;
height: 4px;
}
html /deep/ paper-tab::shadow #ink {
#mainToolbar paper-tab::shadow #ink {
color: #f1f1f1;
}
+1 -1
View File
@@ -265,7 +265,7 @@ loot-clear-metadata
this.shadowRoot.getElementById('loadsBSA').setPosition();
/* Also re-calculate editor tooltip positions. */
this.shadowRoot.getElementById('editor').setTooltipPositions();
this.shadowRoot.getElementById('editor').updatePolymerElements();
},
onShowEditor: function(evt) {
+21 -1
View File
@@ -131,6 +131,19 @@ loot-editor-close
core-icon {
vertical-align: inherit !important;
}
#tableTabs {
border: 2px solid #f1f1f1;
}
paper-tabs {
background: #f1f1f1;
}
/* These overrides change the colour of the tab ink effect and their underline. */
paper-tabs::shadow #selectionBar {
background-color: #4285f4;
}
paper-tab::shadow #ink {
color: #4285f4;
}
</style>
<core-toolbar>
<core-tooltip id="activeTick" label="Active Plugin">
@@ -528,11 +541,18 @@ loot-editor-close
}
},
setTooltipPositions: function() {
updatePolymerElements: function() {
/* Set tooltip positions. */
this.shadowRoot.getElementById('activeTick').setPosition();
this.shadowRoot.getElementById('dummyPlugin').setPosition();
this.shadowRoot.getElementById('loadsBSA').setPosition();
this.shadowRoot.getElementById('globalPriority').parentElement.setPosition();
/* Update tab bar position. */
this.shadowRoot.getElementById('tableTabs').firstElementChild.updateBar();
/* Also make sure right arrow is visible. */
this.shadowRoot.getElementById('tableTabs').firstElementChild.shadowRoot.querySelector('.scroll-button:last-child').firstElementChild.classList.remove('hidden');
},
});
</script>