mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1184] [MERGED] feat(bar): scaled icon size relying on the font size #1242
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1184
Author: @CtByte
Created: 12/17/2024
Status: ✅ Merged
Merged: 12/17/2024
Merged by: @LGUG2Z
Base:
master← Head:bar_icon_size📝 Commits (1)
80fdb8dfeat(bar): scaled icon size relying on the font size📊 Changes
13 files changed (+124 additions, -134 deletions)
View changed files
📝
komorebi-bar/src/bar.rs(+6 -6)📝
komorebi-bar/src/battery.rs(+8 -11)📝
komorebi-bar/src/cpu.rs(+8 -11)📝
komorebi-bar/src/date.rs(+8 -11)📝
komorebi-bar/src/komorebi.rs(+4 -12)📝
komorebi-bar/src/komorebi_layout.rs(+1 -8)📝
komorebi-bar/src/media.rs(+8 -11)📝
komorebi-bar/src/memory.rs(+8 -11)📝
komorebi-bar/src/network.rs(+29 -25)📝
komorebi-bar/src/render.rs(+26 -5)📝
komorebi-bar/src/selected_frame.rs(+2 -1)📝
komorebi-bar/src/storage.rs(+8 -11)📝
komorebi-bar/src/time.rs(+8 -11)📄 Description
This commit changes the way icons are displayed on the bar. There was an issue with how app icons were sized using
shrink_to_fit. This has been changed to usefit_to_exact_sizeinstead, relying on the font size as a starting point and scaling it to1.4of its size, making the icons to appear larger.The same scaling was done to all the widget icons as well to make them look unified.
https://github.com/user-attachments/assets/bae030d4-d444-4f43-b7a9-e860d5a31583
Special thanks to @alex-ds13 for initiating this change. It would be most appreciated if this PR is merged before his
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.