Scale bed icons & text depends on bed size #8621
Merged
+53
−49
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Scales plate text / icons depends on bed size
BEFORE - buttons impossible to use if bed plate is big - Elegoo OrangeStorm

AFTER- icons always on same size

BEFORE - Icons doesnt fit small plates (105x105) Geetech M1

AFTER- icons scaled to fit

AFTER


CODE CHANGES
• Adding factor to all made code too cluttered. i cleaned up code for commit but i can revert that if you want to keep code same
• Matched code order / format on calc_vertex_for_number, calc_vertex_for_plate_name_edit_icon, calc_vertex_for_icons. but didnt used same format on generate_plate_name_texture . I can clean up it and can use same format on that too if approoved
• Aligned plate name to left of plate, previously there vas a extra spacing that doesnt scales