[PR #1108] [MERGED] feat(bar): widget grouping #1205

Closed
opened 2026-01-05 14:54:27 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1108
Author: @CtByte
Created: 11/6/2024
Status: Merged
Merged: 11/19/2024
Merged by: @LGUG2Z

Base: masterHead: bar_widget_grouping


📝 Commits (10+)

📊 Changes

15 files changed (+719 additions, -363 deletions)

View changed files

📝 komorebi-bar/src/bar.rs (+69 -22)
📝 komorebi-bar/src/battery.rs (+9 -9)
📝 komorebi-bar/src/config.rs (+7 -0)
📝 komorebi-bar/src/cpu.rs (+16 -15)
📝 komorebi-bar/src/date.rs (+14 -14)
📝 komorebi-bar/src/komorebi.rs (+232 -207)
📝 komorebi-bar/src/main.rs (+2 -3)
📝 komorebi-bar/src/media.rs (+21 -21)
📝 komorebi-bar/src/memory.rs (+16 -15)
📝 komorebi-bar/src/network.rs (+21 -21)
komorebi-bar/src/render.rs (+263 -0)
📝 komorebi-bar/src/storage.rs (+21 -21)
📝 komorebi-bar/src/time.rs (+14 -14)
📝 komorebi-bar/src/widget.rs (+2 -1)
📝 komorebi/src/colour.rs (+12 -0)

📄 Description

This PR is adding a new grouping feature to the bar widgets.

  "transparency_alpha": 200,
  "widget_spacing": 10.0,
  "grouping": {
    "kind": "Bar | Alignment | Widget",
    "transparency_alpha": 190,
    "rounding": 10
  },

image
image
image
image

Style and more rounding

  "transparency_alpha": 200,
  "grouping": {
    "kind": "Widget",
    "style": "Default | DefaultWithShadow",
    "transparency_alpha": 190,
    "rounding": [ 10, 0, 0, 10 ]
  },

image


🔄 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/1108 **Author:** [@CtByte](https://github.com/CtByte) **Created:** 11/6/2024 **Status:** ✅ Merged **Merged:** 11/19/2024 **Merged by:** [@LGUG2Z](https://github.com/LGUG2Z) **Base:** `master` ← **Head:** `bar_widget_grouping` --- ### 📝 Commits (10+) - [`e8f5952`](https://github.com/LGUG2Z/komorebi/commit/e8f5952abb47608ca5f63fb627956f51b2b19142) adding RenderConfig, and some test frames on widgets - [`0a5e0a4`](https://github.com/LGUG2Z/komorebi/commit/0a5e0a4c0aa7b7b2826b18922ef648a741e9470a) no clone - [`a5a7d69`](https://github.com/LGUG2Z/komorebi/commit/a5a7d6906cee7cd3810f59a26261437d596399f7) comment - [`6a91dd4`](https://github.com/LGUG2Z/komorebi/commit/6a91dd46cd28b5f16a74c9bbcda7c453d17a5d86) ignore unused - [`80f0214`](https://github.com/LGUG2Z/komorebi/commit/80f0214e4717f4224811a9e2e9082e046144517c) Group enum, Copy RenderConfig - [`fbe5e2c`](https://github.com/LGUG2Z/komorebi/commit/fbe5e2c1f794694888540fdb596dbcec825d41a9) Group -> Grouping - [`ce49b43`](https://github.com/LGUG2Z/komorebi/commit/ce49b433f9787a9360954e9c8bc2c90e08542a75) GroupingConfig - [`f446a6a`](https://github.com/LGUG2Z/komorebi/commit/f446a6a45f3bfbfea7088288a1194aee58769de3) "|mt --check" fix (thanks VS) - [`d188222`](https://github.com/LGUG2Z/komorebi/commit/d188222be71adea7fcb6e9c32e16e6b3fd156657) added widget grouping and group module - [`1008ec2`](https://github.com/LGUG2Z/komorebi/commit/1008ec2031ab5c9f9ee9cec48883eaeabb904fb4) rounding from settings, and apply_on_side ### 📊 Changes **15 files changed** (+719 additions, -363 deletions) <details> <summary>View changed files</summary> 📝 `komorebi-bar/src/bar.rs` (+69 -22) 📝 `komorebi-bar/src/battery.rs` (+9 -9) 📝 `komorebi-bar/src/config.rs` (+7 -0) 📝 `komorebi-bar/src/cpu.rs` (+16 -15) 📝 `komorebi-bar/src/date.rs` (+14 -14) 📝 `komorebi-bar/src/komorebi.rs` (+232 -207) 📝 `komorebi-bar/src/main.rs` (+2 -3) 📝 `komorebi-bar/src/media.rs` (+21 -21) 📝 `komorebi-bar/src/memory.rs` (+16 -15) 📝 `komorebi-bar/src/network.rs` (+21 -21) ➕ `komorebi-bar/src/render.rs` (+263 -0) 📝 `komorebi-bar/src/storage.rs` (+21 -21) 📝 `komorebi-bar/src/time.rs` (+14 -14) 📝 `komorebi-bar/src/widget.rs` (+2 -1) 📝 `komorebi/src/colour.rs` (+12 -0) </details> ### 📄 Description This PR is adding a new grouping feature to the bar widgets. ```json "transparency_alpha": 200, "widget_spacing": 10.0, "grouping": { "kind": "Bar | Alignment | Widget", "transparency_alpha": 190, "rounding": 10 }, ``` ![image](https://github.com/user-attachments/assets/ee217a99-1a5a-46f9-902b-f96f6a927729) ![image](https://github.com/user-attachments/assets/a0398635-5cc5-4621-a564-9ab86d6feff9) ![image](https://github.com/user-attachments/assets/8f0b40e6-2e52-40c8-9faf-f8c4712fb938) ![image](https://github.com/user-attachments/assets/c2c09240-aeb5-4d18-a385-06d3858915cc) Style and more rounding ```json "transparency_alpha": 200, "grouping": { "kind": "Widget", "style": "Default | DefaultWithShadow", "transparency_alpha": 190, "rounding": [ 10, 0, 0, 10 ] }, ``` ![image](https://github.com/user-attachments/assets/20b30252-f3a8-409a-bfba-c9b2dca62908) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:54:27 +01:00
adam closed this issue 2026-01-05 14:54:27 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1205