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 use fit_to_exact_size instead, relying on the font size as a starting point and scaling it to 1.4 of 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.
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.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1184
**Author:** [@CtByte](https://github.com/CtByte)
**Created:** 12/17/2024
**Status:** ✅ Merged
**Merged:** 12/17/2024
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `bar_icon_size`
---
### 📝 Commits (1)
- [`80fdb8d`](https://github.com/LGUG2Z/komorebi/commit/80fdb8d84f1ac80d9426d8c3e155d068e74f709b) feat(bar): scaled icon size relying on the font size
### 📊 Changes
**13 files changed** (+124 additions, -134 deletions)
<details>
<summary>View changed files</summary>
📝 `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)
</details>
### 📄 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 use `fit_to_exact_size` instead, relying on the font size as a starting point and scaling it to `1.4` of 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](https://github.com/LGUG2Z/komorebi/pull/1177)
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.