mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Popups are now windows also (broken!)
This commit is contained in:
parent
543fb1c4da
commit
441f1a5fe9
159 changed files with 3311 additions and 3285 deletions
|
|
@ -81,7 +81,7 @@ void SpriteFramesEditor::_sheet_preview_draw() {
|
|||
return;
|
||||
}
|
||||
|
||||
Color accent = get_color("accent_color", "Editor");
|
||||
Color accent = get_theme_color("accent_color", "Editor");
|
||||
|
||||
for (Set<int>::Element *E = frames_selected.front(); E; E = E->next()) {
|
||||
int idx = E->get();
|
||||
|
|
@ -223,24 +223,24 @@ void SpriteFramesEditor::_notification(int p_what) {
|
|||
|
||||
switch (p_what) {
|
||||
case NOTIFICATION_ENTER_TREE: {
|
||||
load->set_icon(get_icon("Load", "EditorIcons"));
|
||||
load_sheet->set_icon(get_icon("SpriteSheet", "EditorIcons"));
|
||||
copy->set_icon(get_icon("ActionCopy", "EditorIcons"));
|
||||
paste->set_icon(get_icon("ActionPaste", "EditorIcons"));
|
||||
empty->set_icon(get_icon("InsertBefore", "EditorIcons"));
|
||||
empty2->set_icon(get_icon("InsertAfter", "EditorIcons"));
|
||||
move_up->set_icon(get_icon("MoveLeft", "EditorIcons"));
|
||||
move_down->set_icon(get_icon("MoveRight", "EditorIcons"));
|
||||
_delete->set_icon(get_icon("Remove", "EditorIcons"));
|
||||
new_anim->set_icon(get_icon("New", "EditorIcons"));
|
||||
remove_anim->set_icon(get_icon("Remove", "EditorIcons"));
|
||||
load->set_icon(get_theme_icon("Load", "EditorIcons"));
|
||||
load_sheet->set_icon(get_theme_icon("SpriteSheet", "EditorIcons"));
|
||||
copy->set_icon(get_theme_icon("ActionCopy", "EditorIcons"));
|
||||
paste->set_icon(get_theme_icon("ActionPaste", "EditorIcons"));
|
||||
empty->set_icon(get_theme_icon("InsertBefore", "EditorIcons"));
|
||||
empty2->set_icon(get_theme_icon("InsertAfter", "EditorIcons"));
|
||||
move_up->set_icon(get_theme_icon("MoveLeft", "EditorIcons"));
|
||||
move_down->set_icon(get_theme_icon("MoveRight", "EditorIcons"));
|
||||
_delete->set_icon(get_theme_icon("Remove", "EditorIcons"));
|
||||
new_anim->set_icon(get_theme_icon("New", "EditorIcons"));
|
||||
remove_anim->set_icon(get_theme_icon("Remove", "EditorIcons"));
|
||||
[[fallthrough]];
|
||||
}
|
||||
case NOTIFICATION_THEME_CHANGED: {
|
||||
splite_sheet_scroll->add_style_override("bg", get_stylebox("bg", "Tree"));
|
||||
splite_sheet_scroll->add_theme_style_override("bg", get_theme_stylebox("bg", "Tree"));
|
||||
} break;
|
||||
case NOTIFICATION_READY: {
|
||||
add_constant_override("autohide", 1); // Fixes the dragger always showing up.
|
||||
add_theme_constant_override("autohide", 1); // Fixes the dragger always showing up.
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue