You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
-make animationplayer thinner, also toolbuttons too. fixes #3526
This commit is contained in:
@@ -264,8 +264,8 @@ void make_default_theme() {
|
|||||||
// ToolButton
|
// ToolButton
|
||||||
|
|
||||||
Ref<StyleBox> tb_empty = memnew( StyleBoxEmpty );
|
Ref<StyleBox> tb_empty = memnew( StyleBoxEmpty );
|
||||||
tb_empty->set_default_margin(MARGIN_LEFT,8);
|
tb_empty->set_default_margin(MARGIN_LEFT,6);
|
||||||
tb_empty->set_default_margin(MARGIN_RIGHT,8);
|
tb_empty->set_default_margin(MARGIN_RIGHT,6);
|
||||||
tb_empty->set_default_margin(MARGIN_TOP,4);
|
tb_empty->set_default_margin(MARGIN_TOP,4);
|
||||||
tb_empty->set_default_margin(MARGIN_BOTTOM,4);
|
tb_empty->set_default_margin(MARGIN_BOTTOM,4);
|
||||||
|
|
||||||
|
|||||||
@@ -1298,7 +1298,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(EditorNode *p_editor) {
|
|||||||
|
|
||||||
frame = memnew( SpinBox );
|
frame = memnew( SpinBox );
|
||||||
hb->add_child(frame);
|
hb->add_child(frame);
|
||||||
frame->set_custom_minimum_size(Size2(80,0));
|
frame->set_custom_minimum_size(Size2(60,0));
|
||||||
frame->set_stretch_ratio(2);
|
frame->set_stretch_ratio(2);
|
||||||
frame->set_tooltip("Animation position (in seconds).");
|
frame->set_tooltip("Animation position (in seconds).");
|
||||||
|
|
||||||
|
|||||||
@@ -846,7 +846,7 @@ void ProjectSettings::_autoload_edited() {
|
|||||||
undo_redo->create_action("Toggle Autoload GlobalVar");
|
undo_redo->create_action("Toggle Autoload GlobalVar");
|
||||||
undo_redo->add_do_property(Globals::get_singleton(),base,path);
|
undo_redo->add_do_property(Globals::get_singleton(),base,path);
|
||||||
undo_redo->add_undo_property(Globals::get_singleton(),base,Globals::get_singleton()->get(base));
|
undo_redo->add_undo_property(Globals::get_singleton(),base,Globals::get_singleton()->get(base));
|
||||||
undo_redo->add_do_method(Globals::get_singleton(),"set_order",base,order);
|
undo_redo->add_do_method(Globals::get_singleton(),"set_order",base,order); // keep order, as config order matters for these
|
||||||
undo_redo->add_undo_method(Globals::get_singleton(),"set_order",base,order);
|
undo_redo->add_undo_method(Globals::get_singleton(),"set_order",base,order);
|
||||||
undo_redo->add_do_method(this,"_update_autoload");
|
undo_redo->add_do_method(this,"_update_autoload");
|
||||||
undo_redo->add_undo_method(this,"_update_autoload");
|
undo_redo->add_undo_method(this,"_update_autoload");
|
||||||
|
|||||||
Reference in New Issue
Block a user