-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
When a daughter window (e.g. Piano Roll, Pitch-bend window) is maximized, it cannot be normalized #4215
Comments
You can close issues that you've opened yourself. |
This seems to have been introduced with Qt5. I spent a considerable amount of time investigating the restore buttons to no avail: #2611 (comment). Help here is appreciated, but I think it's a base Qt5 bug that occurs when running the non-default themes available. |
I took a second look after reviewing my screenshots from Windows, Mac and Ubuntu and it appears our theme is influencing it. Here's the main property: LmmsPalette {
/** .... **/
qproperty-button: #3f4750; If we change it to: Reopening and tagging @Umcaruje. We might be able to workaround this bug. |
Changing that property also changes other buttons' background color. |
Perhaps, we could draw a button at this place. This would be a little bit "hacky", but we do this all the time in our subwindows. |
Proposed a CSS-only fix in #4242 |
Haha yeah that's one of the side effects, I'll see to fix those. What's weird is the buttons in the menu are not |
@Umcaruje did you mean the white headers of the windows? (I had raised another bug that some dialogs in LMMS have white headers: They do not follow the theme.) Probably that can also be resolved by Qt code? (Both the screenshots have white headers.) |
How strange that classic does have that button 😕 |
@raindropsfromsky, Please stop talking about "white headers", this is the Windows 10 default theme. |
Then why is it not consistently used in all windows? It is of to see it in
only some places.
…On Tue 13 Mar, 2018, 18:03 Tres Finocchiaro, ***@***.***> wrote:
@raindropsfromsky <https://github.com/raindropsfromsky>, Please stop
talking about "white headers", this is the Windows 10 default theme.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4215 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AIoMgHcIrjVHuUiXB817NlxiCiaLRPoYks5td7ybgaJpZM4Sb-iV>
.
|
@Umcaruje Some more side effects... |
CSS approach seems to bring too many side effects. After some investigation, I found that |
Here's a proof-of-concept codewhich makes subwindow control buttons red. index b883a2b2f..f48f59eec 100644
--- a/src/gui/LmmsStyle.cpp
+++ b/src/gui/LmmsStyle.cpp
@@ -177,6 +177,14 @@ void LmmsStyle::drawComplexControl( ComplexControl control,
return;
}
}
+ else if (control == CC_MdiControls)
+ {
+ QStyleOptionComplex so(*option);
+ so.palette.setColor(QPalette::Button, QColor(255, 0, 0));
+ QProxyStyle::drawComplexControl(control, &so,
+ painter, widget);
+ return;
+ }
/* else if( control == CC_ScrollBar )
{
painter->fillRect( option->rect, QApplication::palette().color( QPalette::Active, |
Edited by @tresf, corrected description
MDI Subwindow controls are hard to see when maximized.
LMMS provides a Mximize button for all its daughter windows (e.g. Piano Roll, Pitch-bend window) (See screenshot bellow, with red circle.)
If this button is pressed, LMMS maximizes that daughter window. Now this daughter window occupies the entire right side of the main window, and cannot be detached from it. The effect is as if LMMS suddenly switches to modeless.
After this, LMMS does not allow us to make this window a floating window, as before.
Its size control () simply vanishes.
The text was updated successfully, but these errors were encountered: