-
-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(bar): add two new display format types #1176
feat(bar): add two new display format types #1176
Conversation
82ab501
to
8950098
Compare
This was on my TODO as well :D |
8950098
to
e4c7350
Compare
One less TODO! 😄 Do you think this new display types need to be handled on any other widget, besides those two? |
I think it makes very good sense on these 2 (saving space) and it can be added to others later (but no other right now that would need it) 👍 @alex-ds13 My only comment on this PR would be to name the new options |
e4c7350
to
0874a1b
Compare
Makes sense to me! I'll change that... |
0874a1b
to
81d8638
Compare
@LGUG2Z As mentioned on Discord, I've rebased this PR on top of #1177, this way you can merge this PR's without conflicts since all three PR's were changing things on the same files. This way the final order to merge should be the following:
|
Ah sorry, this might need another rebase; I updated the icon size commit message to include the context that was on the PR |
81d8638
to
abe5871
Compare
Should be good to go after #1177 |
Weird, I just merged in #1177 without touching it and now this one is again saying there are conflicts 🤔 |
This commit adds two new `DisplayFormat` types: - `TextAndIconOnSelected`: which displays icon and text for the selected element and the other elements only have text. - `IconAndTextOnSelected`: which displays icon and text for the selected element and the other elements only have icon.
abe5871
to
0120725
Compare
Weird I couldn't even rebase it to master since it considered it a Maybe github can't or doesn't allow or isn't configured to do the same... But now it should work. |
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 theIconAndTextOnSelected
:Currently I've only setup this new types to the
workspaces
andfocused_window
widgets. Any other widget that usesDisplayFormat
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.