Feature proposal: Option to display inactive workspaces that have content in it + improved UI in the menu #844
mobile-ar
started this conversation in
feature-ideas
Replies: 2 comments 1 reply
-
I forgot to mention that this is using a custom image to display whatever needed without the OS dictating the menu layout or limiting it. this was achieved using this trick: let renderer = ImageRenderer(content: imagesHStack)
if let cgImage = renderer.cgImage {
Image(cgImage, scale: 2, label: Text(""))
.resizable()
.aspectRatio(contentMode: .fit)
} else {
// In case image cant be rendered fallback to text
Text(viewModel.isEnabled ? viewModel.trayText : "⏸️")
} Here |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also see: #711 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I love this tool, but it was lacking a nicer way to display in the menu, and I always keep forgetting if I have stuff in other workspaces. So I forked the repository and I try implementing myself. (I have experience in iOS mostly, but this is my first time playing around with macOS development)
This is how the status bar menu is looking for me in debug mode. What you can see here in the first 2 squares is the main monitors. 1st monitor is the active one displaying A (because there I put my Alacritty terminal), 2nd square is my external monitor displaying X (because Xcode is running there). Then after the
|
(pipe) it's displaying the list of other workspaces with windows on themF M N S T
(forF
inder, SublimeM
erge,N
otes,S
afari andT
eams)Adding here the menu window to better understand from where that is coming.
And here is how it looks while in service mode. Other modes are supported on the same way, the letter being assigned to the mode will be displayed inside a circle, to differentiate a monitor from a mode.
For example, here I created a mode test
that will display like this
For the icons I'm using native
Image(systemName:)
and icons are from SF Symbols (natively supported).I was thinking that this visual improvement could be added under 1 configuration entry in the
.toml
file (likemenu-bar-style = 'text' // 'text' == default, 'image' == new images display, 'image-with-background-workspaces' == the new one + displaying the inactive workspaces with content
). Also feel free to suggest better naming for this configuration parameters.I will continue working on this, to add this parameter to the
.toml
file, given that I just started this as a prove of concept.I hope this could end up being a PR in the future.
After further reading of closed/rejected PRs I found this might help solve the issue #56
I have a commit implementing this 3 types so the menu can look like this for service mode:
Default using text monospaced (parameter value
text
):Image (parameter value
image
):Image + display workspaces with windows (parameter value
image-with-background-workspaces
):Config .toml:
Beta Was this translation helpful? Give feedback.
All reactions