1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Add leftover scroll hints, and panels for scrollables without hints

This commit is contained in:
Michael Alexsander
2025-12-09 18:09:45 -03:00
parent 1cf3180537
commit 5246b5fba9
18 changed files with 87 additions and 28 deletions

View File

@@ -929,6 +929,7 @@ CreateDialog::CreateDialog() {
search_options->connect("item_activated", callable_mp(this, &CreateDialog::_confirmed));
search_options->connect("cell_selected", callable_mp(this, &CreateDialog::_item_selected));
search_options->connect("button_clicked", callable_mp(this, &CreateDialog::_script_button_clicked));
search_options->set_theme_type_variation("TreeSecondary");
vbc->add_margin_child(TTR("Matches:"), search_options, true);
help_bit = memnew(EditorHelpBit);

View File

@@ -317,11 +317,16 @@ QuickOpenResultContainer::QuickOpenResultContainer() {
}
{
MarginContainer *mc = memnew(MarginContainer);
mc->set_theme_type_variation("NoBorderHorizontalWindow");
mc->set_h_size_flags(Control::SIZE_EXPAND_FILL);
mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
panel_container->add_child(mc);
// Search results
scroll_container = memnew(ScrollContainer);
scroll_container->set_h_size_flags(Control::SIZE_EXPAND_FILL);
scroll_container->set_v_size_flags(Control::SIZE_EXPAND_FILL);
scroll_container->set_horizontal_scroll_mode(ScrollContainer::SCROLL_MODE_DISABLED);
scroll_container->set_scroll_hint_mode(ScrollContainer::SCROLL_HINT_MODE_ALL);
scroll_container->hide();
panel_container->add_child(scroll_container);