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 TextAndIconOnSelected and the focused window has the IconAndTextOnSelected:
Currently I've only setup this new types to the workspaces and focused_window widgets. Any other widget that uses DisplayFormat is 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.
## 📋 Pull Request Information
**Original PR:** https://github.com/LGUG2Z/komorebi/pull/1176
**Author:** [@alex-ds13](https://github.com/alex-ds13)
**Created:** 12/14/2024
**Status:** ✅ Merged
**Merged:** 12/18/2024
**Merged by:** [@LGUG2Z](https://github.com/LGUG2Z)
**Base:** `master` ← **Head:** `feature/bar-display-icon-text-on-focused`
---
### 📝 Commits (1)
- [`0120725`](https://github.com/LGUG2Z/komorebi/commit/01207255bbc41fac4dc51880b126ccf7b3aebef6) feat(bar): add two new display format types
### 📊 Changes
**2 files changed** (+27 additions, -5 deletions)
<details>
<summary>View changed files</summary>
📝 `komorebi-bar/src/config.rs` (+5 -1)
📝 `komorebi-bar/src/komorebi.rs` (+22 -4)
</details>
### 📄 Description
This commit adds two new `DisplayFormat` types:
- `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 `TextAndIconOnSelected` and the focused window has the `IconAndTextOnSelected`:

Currently I've only setup this new types to the `workspaces` and `focused_window` widgets. Any other widget that uses `DisplayFormat` is 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.
<!--
Please follow the Conventional Commits specification.
If you need to update your PR with changes from `master`, please run `git rebase master`.
By opening this PR, you confirm that you have read and understood this project's `CONTRIBUTING.md`.
-->
---
<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/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.