spyder icon indicating copy to clipboard operation
spyder copied to clipboard

Better highlight selected pane

Open ghost opened this issue 10 years ago • 18 comments

Hello,

I am using a lot the [Shift+Ctrl+E] and [Shift+Ctrl+C] shortcuts for switching from editor to console and reversely. That way I use spyder without the mouse usually and it's working well. But the only graphical information you have for knowing which of these windows is currently active is the text cursor.

The active window title ('Editor - ...' or 'Console') should be highlighted with darker or colored background.

ghost avatar Apr 21 '15 09:04 ghost

Indeed, it would make it more evident, we will see what we can do about this

goanpeca avatar Apr 21 '15 10:04 goanpeca

After 2.3.3 (I think), this information is visible in

View > Panes

I think that's enough, don't you think?

ccordoba12 avatar Apr 21 '15 20:04 ccordoba12

The thing is that looking at the question, the problem seems to be that besides a blinking cursor on one or the other (pane), there is no direct self evident way (without having to use mouse or keyboard) to know which widget is focused...

Maybe we can change the way the tab that is focused looks. Spyder right now.... Who has focus?

image

To give an example of a random idea (I just inverted the color of the tab in an image editor...). Who has focus?

image

goanpeca avatar Apr 21 '15 20:04 goanpeca

I've made another image to show how it is in matlab : 05376476-e879-11e4-983e-cba228d698492

But maybe it's easier to fix just by bolding the windows title. I think it doesn't break the look and it's evident enough : 05376476-e879-11e4-983e-cba228d698493

ghost avatar Apr 22 '15 08:04 ghost

My advice, at first, was just to darker a little the title background : 05376476-e879-11e4-983e-cba228d698494 That's the way I think it fits the best.

ghost avatar Apr 22 '15 08:04 ghost

Yep, definitely doable, and goes in hand with a pending change on the look of the dockwidget titile bars.

@ccordoba12, the PR #2288 that I closed could also address this issue. Now that some more benefits arise it makes sense to reopen it, and decide what would be the best course of action, we could add a light cerulean blue (or whatever color scheme we choose) to be the background of the title bar.

goanpeca avatar Apr 22 '15 08:04 goanpeca

I find this suggestion of highlighting the active plugin a bit ugly. I'll have to see if it can be done in a more beautiful way :-)

ccordoba12 avatar Apr 22 '15 14:04 ccordoba12

I just saw how things work in Matlab, and I have to agree this is a very good suggestion to improve usability.

Let's wait for @goanpeca to implement it ;-)

ccordoba12 avatar Apr 25 '15 17:04 ccordoba12

Can you post a acreenshot of how it looks in matlab¿

goanpeca avatar Apr 25 '15 21:04 goanpeca

You have it above: https://github.com/spyder-ide/spyder/issues/2344#issuecomment-95068569. There is both a rectangle and a background for the title.

Nodd avatar Apr 25 '15 21:04 Nodd

I mean a screenshot of matlab

goanpeca avatar Apr 26 '15 07:04 goanpeca

Doh, I was certain that it was from matlab, the look is really similar !

Nodd avatar Apr 26 '15 09:04 Nodd

https://duckduckgo.com/?q=matlab+interface&t=canonical&iax=1&ia=images&iai=http%3A%2F%2Fetools.fernuni.ch%2Fmatlab%2Fmatlab2%2Fen%2Fimage%2Fgui.png

ghost avatar Apr 27 '15 08:04 ghost

why not just adding a border to the title : 05376476-e879-11e4-983e-cba228d698495 or to the window : 05376476-e879-11e4-983e-cba228d698496 or both : 05376476-e879-11e4-983e-cba228d698497

Ps : My "hand-made" image will always be uglier than built-in Qt rendering.

ghost avatar Apr 27 '15 08:04 ghost

I find borders of the same colors not obvious enough. Keep in mind that there is a discussion to give the possibility to hide the tockwidgets titles (see https://github.com/spyder-ide/spyder/pull/2345#issuecomment-96438578) so the highligh should also be visible without them. This rules out your first suggestion.

Nodd avatar Apr 27 '15 09:04 Nodd

Another possibility : change the background colour of the whole widget/pane. This can also be an option where the user chooses if he wants that behaviour and chooses the colour of the background of the focused pane.

Let me summarize the possibilities until now : 1 - highlight one tab of the focused pane 2 - add a border to the focused pane 3 - colouring differently the background of the pane and (useless if pane title if removed) : 4 - change the colour of the title background 5 - add a border to title 6 - change title font

ghost avatar Apr 27 '15 14:04 ghost

This issue has been resolved and should be closed I guess.

hprodh avatar Sep 25 '24 08:09 hprodh

The selected pane is highlighted now, yes, but it's barely visible in some screen resolutions. So, I think we can improve that.

ccordoba12 avatar Sep 26 '24 15:09 ccordoba12