gui: Adjust connection type icon size scaling and alignment #8645
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.
Currently, the connection type icon size is fixed at 1em (or 16px). This makes it behave differently from the other GUI icons coming from Fork Awesome, which automatically scale to their parent element's font size. Thus, set the background-size to contain in order to automatically let the icon resize itself to the font size.
Also, improve the alignment to a more middle position in relation to text, making it similar to Fork Awesome icons.
Signed-off-by: Tomasz Wilczyński twilczynski@naver.com
Screenshots
Before:
After (larger icon in the title bar and adjusted alignment):