Skip to content

Commit fe9ecd2

Browse files
committed
Add removable/togglable tabs to the editor
1 parent ad4b76f commit fe9ecd2

File tree

13 files changed

+1100
-49
lines changed

13 files changed

+1100
-49
lines changed

src/addons/generated/addon-entries.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/addons/generated/addon-manifests.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import _custom_block_text from "../addons/custom-block-text/_manifest_entry.js";
3232
import _editor_colored_context_menus from "../addons/editor-colored-context-menus/_manifest_entry.js";
3333
import _editor_stage_left from "../addons/editor-stage-left/_manifest_entry.js";
3434
import _editor_buttons_reverse_order from "../addons/editor-buttons-reverse-order/_manifest_entry.js";
35-
import _variable_manager from "../addons/variable-manager/_manifest_entry.js";
3635
import _search_sprites from "../addons/search-sprites/_manifest_entry.js";
3736
import _sprite_properties from "../addons/sprite-properties/_manifest_entry.js";
3837
import _gamepad from "../addons/gamepad/_manifest_entry.js";
@@ -101,7 +100,6 @@ export default {
101100
"editor-colored-context-menus": _editor_colored_context_menus,
102101
"editor-stage-left": _editor_stage_left,
103102
"editor-buttons-reverse-order": _editor_buttons_reverse_order,
104-
"variable-manager": _variable_manager,
105103
"search-sprites": _search_sprites,
106104
"sprite-properties": _sprite_properties,
107105
"gamepad": _gamepad,

src/components/gui/add-tab.svg

Lines changed: 5 additions & 0 deletions
Loading

src/components/gui/gui.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,54 @@
9696
[theme="dark"] .tab {
9797
color: $text-primary;
9898
}
99+
.tab > div {
100+
display: flex;
101+
justify-content: center;
102+
align-items: center;
103+
}
104+
.tab-disabled {
105+
display: none;
106+
}
107+
108+
.add-tab-button {
109+
margin: 8px 0;
110+
margin-left: 4px;
111+
padding: 4px;
112+
font-size: larger;
113+
114+
background: white;
115+
border: 1px solid rgba(0,0,0,.15);
116+
border-radius: 4px;
117+
118+
display: flex;
119+
flex-direction: row;
120+
align-items: center;
121+
justify-content: center;
122+
123+
transform: translateY(6px);
124+
}
125+
[dir="rtl"] .add-tab-button {
126+
margin-left: initial;
127+
margin-right: 4px;
128+
}
129+
[theme="dark"] .add-tab-button {
130+
background: none;
131+
border-color: rgba(255,255,255,.15);
132+
}
133+
[theme="dark"] .add-tab-button img {
134+
filter: invert(1);
135+
}
136+
.add-tab-button-disabled {
137+
cursor: not-allowed;
138+
opacity: 0.5;
139+
}
140+
.tab-addition-item {
141+
display: flex;
142+
align-items: center;
143+
}
144+
.tab-addition-item img {
145+
width: 1.375rem;
146+
}
99147

100148
[dir="ltr"] .tab {
101149
margin-left: -0.5rem;

0 commit comments

Comments
 (0)