-
Notifications
You must be signed in to change notification settings - Fork 43
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
Minimize GUI Plugins #84
Minimize GUI Plugins #84
Conversation
Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
The PR is currently in draft state. I am working on minimizing the gui plugins when in the docked state. |
Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
* Handle case when user manually minimizes plugin using resize * Replace nested if with switch case for better readability Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
I noticed that the last docked plugin can't be minimized. Did you notice that? It looks like the internal state is collapsed, even though the icon doesn't change, because the height isn't changing.
For completeness, we should make the button configurable from the settings dialog like the other buttons:
It would also be nice to add a collapsed example to examples/config/plugin_params.config
.
@@ -328,6 +328,8 @@ SplitView { | |||
{ | |||
Layout.minimumWidth = child.Layout.minimumWidth; | |||
} | |||
// Set child height to minimu height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Set child height to minimu height | |
// Set child height to minimum height |
* Rename minimize to collapse * Rename states * Add switch in card settings to enable/disable collapse button * Add a collapsed plugin to plugin_params.config Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
Yes, you are right. I looked at it again and found that this case only happens when the sum of minimum heights of the plugins loaded (in split) is less than the height of the app window. If we have many expanded plugins before the last collapsed plugins, the expand and collapse work just fine. But the weird part is if you close the left split and try to expand/close the last (or any) plugins, it works as intended. Here is a gif describing the above-mentioned details. I am not sure why is this happening, can you help me find the issue? |
Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
Sure, I'll take a look this week 😉 |
Thank you for the help, but I believe I fixed it in the last commit 95670a7. Can you please review it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like how you handled the height of the last docked plugin, great job 👍
I just have one last question about undocking while collapsed.
Signed-off-by: Sarathkrishnan Ramesh <[email protected]>
f3ad54e
to
d2edf55
Compare
Signed-off-by: Louise Poubel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great! I just pushed a little fix that I noticed on 3483451.
Will merge when CI is back.
Signed-off-by: Sarathkrishnan Ramesh [email protected]
Reference to issue #74