mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1176] [MERGED] feat(bar): add two new display format types #1238
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/1176
Author: @alex-ds13
Created: 12/14/2024
Status: ✅ Merged
Merged: 12/18/2024
Merged by: @LGUG2Z
Base:
master← Head:feature/bar-display-icon-text-on-focused📝 Commits (1)
0120725feat(bar): add two new display format types📊 Changes
2 files changed (+27 additions, -5 deletions)
View changed files
📝
komorebi-bar/src/config.rs(+5 -1)📝
komorebi-bar/src/komorebi.rs(+22 -4)📄 Description
This commit adds two new
DisplayFormattypes:TextAndIconOnSelected: which displays icon and text for the focused element and the other elements only have text.IconAndTextOnSelected: which displays icon and text for the focused element and the other elements only have icon.Here's a picture that shows both types in action, the workspaces widget has the
TextAndIconOnSelectedand the focused window has theIconAndTextOnSelected:Currently I've only setup this new types to the
workspacesandfocused_windowwidgets. Any other widget that usesDisplayFormatis probably ignoring these new types. If you find there is any other widget that makes sense to handle these types tell me and I can try adding them or they can be added later if someone asks for it.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.