mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Improved styling of editor tabs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user