mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1190] [MERGED] fix(bar): normalize areas of widgets #1246
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/1190
Author: @alex-ds13
Created: 12/18/2024
Status: ✅ Merged
Merged: 12/20/2024
Merged by: @LGUG2Z
Base:
master← Head:fix(bar)/use-all-areas📝 Commits (10+)
a5e522bfix(bar): normalize areas of widgets0602f00fix(bar): actually save the config on apply_config93d699efix(bar): use theframe.inner_marginconfigb555419fix(bar): handle komorebi theme change properly4b9deeffix(bar): apply work_area_offset on config changedab3354fix(bar): use correct transparency_alpha4710df0fix(bar): use bg color before applying transparencye6f0a28fix(bar): apply roundings on komorebi.json change0a0e880fix(bar): fix background color clobberingb489be5fix(bar): use layout on Area to prevent shaking📊 Changes
3 files changed (+290 additions, -130 deletions)
View changed files
📝
komorebi-bar/src/bar.rs(+223 -112)📝
komorebi-bar/src/komorebi.rs(+34 -2)📝
komorebi-bar/src/render.rs(+33 -16)📄 Description
This commit changes the way each of the 3 parts of potential widgets (left, center and right) is created so that they are all done on the same way and look the same. It is using
Areawith different anchors for each part which makes the widgets actually center vertically properly.This created an issue with the
Bargrouping. To fix it we've made theBargrouping change the outer panel frame instead of creating an actual group. This has the side effect (or maybe feature!) of losing the background of the outer frame. Meaning this outer frame will now have the look of theBargrouping only. Currently it is using a fixed outer margin but this can be changed in the future to a config option.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.