Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
New MovableContainer: allow moving some widgets #3636
I wanted to be able to move some InfoMessage: often, when reading and wanting to do a dict or wiki lookup, I have the habbit of remembering the word, continue reading till I pass the 2/3 of the screen, and then do the lookup - so the InfoMessage doesn't pop on where I am reading, and I can still read a few lines while the lookup is happening.
Anyway, this PR adds a MovableContainer, and plugs it into a few widgets:
It also can set some alpha transparency to the subwidgets (I had in the past tried to plug an AlphaContainer to the SkimToWidget, but I always failed, and didn't really understood why - it was easier to add that to that MovableContainer). (Note that the existing
I first had various options set for different widgets: alpha for SkimTo and Search, whether the move can push the widget off-screen (for the big DictQuickLookup), or whether it should be restricted to screen (for most others), but then decided to have a common behaviour for all of them, which is:
So it shouldn't have any impact on our current habits, as we usually don't use these gestures with these widgets.
In action (animated gif):