nog
nog copied to clipboard
Highlight currently focused tile to help with visablity
I think having a colored border around the currently focus window, would be better to quickly show which window is in focus and follow focus as it changes.
Maybe when the user is switching focus a border shows up and follows the movement of focus and then after a few seconds it fades away. If the user then wants to quickly tell which window has focus they can hold down ALT (or some shortcut) and have some time threshold that once reached it will bring back the border highlight for the current focused window until ALT is let go.
I just researched this a bit and this would be very hacky. Basically we would have to create a new window ontop of each window and move the border along with the window. I am not sure whether I like this. We would have to play round with this a bit, to see how this impacts the usability of the existing windows.
Would you like to tackle this? I probably won't be working on this issue for a bit, because this is very low priority
for me.
Sure I can try to take a swing at this.
Never got around to working on this, I think the codebase was so overwhelming I wasn't even really sure how I would have gone about implementing it especially since I am still a Rust newbie. I think with the current_window component this feature isn't really needed anymore. I will go ahead and close for the time being.
@TimUntersberger oops don't think that was supposed to happen. Sorry about that!
I think this issue should be re-opened. Many applications barely have any visual effect that indicates they are focused in Windows 10. It's very hard to see which window has the focus, especially when you switch to another workspace, and don't remember which window is supposed to be active.
It's really something Windows itself should do, better, as I occassionally have had problems during regular Windows usage as well. But the problem hasn't been too bad, since I usually remember the application I'm working on, and you also switch to other applications explicitely, which focuses them. But that does not seems to be something Microsoft is interested in fixing, because from the screenshots I have seen, Windows 11 does not handle this very differently. In previous Windows version, this was rarely a problem though.
After writing this, I looked deeper into the Windows options, you can enable the accent color for title bars, and it makes things much better for some applications. But Chrome for example becomes very ugly, and additionally it adds a close color to the inactive window as well, so the difference is not that huge. Other applications don't react to the change at all.
I suggest that rather than displaying a window on top of the real window, you display it beneath it. That way it doesn't mess with floating windows on top. This would of course need some spacing between the windows, but that's already supported.
Another option is a layered top level window https://docs.microsoft.com/en-us/previous-versions/ms997507(v=msdn.10)?redirectedfrom=MSDN, and making sure that it is fully transparent if no window in the workspace has focus. That way only one window is needed, and the appbar could also be included in the same window. But that could potentially mess with the performance and some applications.