Size the Tones Editor properly.

This commit is contained in:
Relintai 2023-03-04 15:18:35 +01:00
parent fc969f4331
commit a3da8b16ba
2 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ MMTonesEditor::MMTonesEditor() {
*/ */
_histogram_tr = memnew(TextureRect); _histogram_tr = memnew(TextureRect);
_histogram_tr->set_custom_minimum_size(Vector2(0, 100)); _histogram_tr->set_custom_minimum_size(Vector2(128, 128));
_histogram_tr->set_h_size_flags(Control::SIZE_EXPAND_FILL); _histogram_tr->set_h_size_flags(Control::SIZE_EXPAND_FILL);
add_child(_histogram_tr); add_child(_histogram_tr);

View File

@ -24,7 +24,7 @@ public:
}; };
enum { enum {
HISTOGRAM_IMAGE_SIZE = 256, HISTOGRAM_IMAGE_SIZE = 128,
}; };
void set_value(const Ref<MMTones> &v); void set_value(const Ref<MMTones> &v);