QuiltMC / enigma

A deobfuscation/remapping tool for Java bytecode, fork of cuchaz's Enigma.
GNU Lesser General Public License v3.0
59 stars 31 forks source link

GUI elements don't resize to fit custom font sizes properly #223

Open supersaiyansubtlety opened 2 months ago

supersaiyansubtlety commented 2 months ago

The issue is different for flatlaf and non-flatlaf themes.

All screenshots are taken with 100% scale.

Default (flatlaf) #### 12pt #222 (baseline) ![default 100%, 12pt #222](https://github.com/user-attachments/assets/c549e48a-c8f5-4186-9fb4-4ab8e1866ba4) #### 24pt #222 Class items on the left are too tall. The method item on the right is the correct height. Class/stats/up/down icons are smaller than the text next to them (unscaled?). ![default 100%, 24pt #222](https://github.com/user-attachments/assets/585b0c3b-1b14-4e9e-9d5f-7a485fce6b8d) #### 24pt ddb94ed7 Same as #222 ![default 100% 24pt ddb94ed7](https://github.com/user-attachments/assets/8f58b3b8-d8df-4465-a37f-028f469a235d)
Metal (non-flatlaf) Class and method items are the correct height, but icons are too big #### 12pt #222 (baseline) ![metal 100%, 12pt #222](https://github.com/user-attachments/assets/2a2741eb-cae3-4bba-ba31-05ddfe88f6bb) #### 24pt #222 Class items on the left are the correct height. The method item on the right is too short. Class/stats/up/down icons are bigger than the text next to them (double-scaled?). ![metal 100%, 24pt #222](https://github.com/user-attachments/assets/a9a3b86c-561c-4531-811f-dbecdb802be2) #### 24pt ddb94ed7 Same as #222 except class/stats/up/down icons are smaller than the text next to them (unscaled?). ![metal 100% 24pt ddb94ed7](https://github.com/user-attachments/assets/a8fe2829-8c47-4c3d-85ed-24bc92b4327b)