From 944ff1a3cfe8eac9737b5a179961fe87faf1d8fd Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 1 Dec 2014 20:16:41 +0000 Subject: [PATCH] Improved editor layout. Tabs are now part of the toolbar, the priority and enable edits controls are in a "Main" tab, and the accept/cancel buttons have been made icon buttons and moved into the toolbar. --- resources/report/css/overrides.css | 5 + resources/report/html/loot-plugin-editor.html | 217 +++++++++--------- 2 files changed, 114 insertions(+), 108 deletions(-) diff --git a/resources/report/css/overrides.css b/resources/report/css/overrides.css index e016f85e..e72b2014 100644 --- a/resources/report/css/overrides.css +++ b/resources/report/css/overrides.css @@ -107,4 +107,9 @@ html /deep/ paper-item > core-icon { /* This makes checkboxes have the same padding as icons in lists. */ html /deep/ paper-checkbox::shadow #checkboxLabel { padding-left: 1em; +} + +/* This makes the medium-tall toolbars 2x the 56px height, rather than the 64px height. */ +html /deep/ core-toolbar.medium-tall { + height: 112px; } \ No newline at end of file diff --git a/resources/report/html/loot-plugin-editor.html b/resources/report/html/loot-plugin-editor.html index f7b7f9f2..8e1b66aa 100644 --- a/resources/report/html/loot-plugin-editor.html +++ b/resources/report/html/loot-plugin-editor.html @@ -15,7 +15,7 @@ loot-editor-close - + @@ -36,6 +36,12 @@ loot-editor-close #activeTick { color: green; } + #accept { + color: #4285f4; + } + #cancel { + color: red; + } /* Content styling. */ h1 { @@ -57,7 +63,7 @@ loot-editor-close } /* Editor input styling. */ - #editor > div > paper-checkbox, #editor > div > core-tooltip { + #main > paper-checkbox, #main > core-tooltip { display: table; } #enableEdits { @@ -81,7 +87,7 @@ loot-editor-close border-collapse: collapse; width: 100%; } - table:not(.core-selected) { + table:not(.core-selected), #main:not(.core-selected) { display: none; } td input { @@ -112,7 +118,7 @@ loot-editor-close /* Misc Styling. */ core-toolbar { - background: white; + background: #f1f1f1; height: 56px; } core-toolbar > h1, core-toolbar > span { @@ -122,21 +128,15 @@ loot-editor-close #buttons { text-align: right; } - main { + #main { padding: 1em; } - main > core-tooltip, main > paper-checkbox { - display: table; - } 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; @@ -145,7 +145,7 @@ loot-editor-close color: #4285f4; } - + @@ -158,104 +158,105 @@ loot-editor-close - -
- - - + + -
-
Priority Value
- - - + + + + + Main + Load After + Requirements + Incompatibilities + Messages + Bash Tags + Dirty Info + Locations + + + +
+ + + + +
+
Priority Value
+ + + +
-
- - Load After - Requirements - Incompatibilities - Messages - Bash Tags - Dirty Info - Locations - - - - - - - - - - -
FilenameDisplay NameCondition
Add new row...
- - - - - - - - -
FilenameDisplay NameCondition
Add new row...
- - - - - - - - -
FilenameDisplay NameCondition
Add new row...
- - - - - - - - -
TypeContentConditionLanguage
Add new row...
- - - - - - - - -
Add/RemoveBash TagCondition
Add new row...
- - - - - - - - -
CRCITM CountDeleted ReferencesDeleted NavmeshesCleaning Utility
Add new row...
- - - - - - - - -
URLVersion
Add new row...
-
-
-
- Apply - Cancel -
-
+ + + + + + + + +
FilenameDisplay NameCondition
Add new row...
+ + + + + + + + +
FilenameDisplay NameCondition
Add new row...
+ + + + + + + + +
FilenameDisplay NameCondition
Add new row...
+ + + + + + + + +
TypeContentConditionLanguage
Add new row...
+ + + + + + + + +
Add/RemoveBash TagCondition
Add new row...
+ + + + + + + + +
CRCITM CountDeleted ReferencesDeleted NavmeshesCleaning Utility
Add new row...
+ + + + + + + + +
URLVersion
Add new row...
+