-
-
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
Add a new window decoration to MDISubWindows #2516
Conversation
I'll at least try to help dress it up nice and pretty with some suggestions by referring to the coding conventions. https://github.com/LMMS/lmms/wiki/Coding-conventions *** please note that I am referring to your commit's new line numbers! My suggestions for SubWindow.h:
And for SubWindow.cpp:
Hope this helps! Thank you. |
3f51f01
to
bb0018e
Compare
Okay, I've changed the suggestions you gave. Thank you. |
I fiddled around with your code, and paired it up with a custom theme + color + icons, and it looks amazing! Here's the stuff I changed:
QColor c("#2c974f");
QBrush brush(c);
|
That's gorgeous!
|
👍 |
@Umcaruje I can't tell from the screenshot, but is there any variation of the shade when the title bar is active vs inactive? That might add some more usability. |
👍 Good catch. |
Nope, that needs to be implemented, and also buttons don't change on hover, but I think that'll be solved by CSS. |
bb0018e
to
ac6e898
Compare
Okay, I added some QPropertys which can be modified per style.css. Have a look. |
I like it. What will the difference be for the title bars that are IN focus On Tue, Feb 23, 2016, 5:20 PM Rebecca DeField [email protected]
|
*out of focus On Tue, Feb 23, 2016, 5:45 PM Nikko Rocksalot [email protected]
|
Looks clear to me! Thanks! On Tue, Feb 23, 2016, 7:19 PM Rebecca DeField [email protected]
|
@RebeccaDeField you have a gradient in there, right? Okay, I add that property soon. And correct the typo @Umcaruje :-) |
@BaraMGB 👍 |
ac6e898
to
0f42b8e
Compare
I worked on this a bit and made a new branch on my fork: I simplified the code a lot, so now we only have one rectrangle for the title, also implemented @RebeccaDeField's color idea. I have yet to fix the titles and the buttons. Review and ideas welcome. I'll post around the challenges of proper title rendering and buttons a bit later. |
@Umcaruje Great work! 👍 My 2 cents: this may be because you have zoomed-in your screenshot, but I feel that the rounded corners are a bit jagged. Is there anything we can do to smooth the corners out a bit? If not, it might be best to keep the corners pointed/straight. |
@RebeccaDeField I noticed the same regarding the corners. I don't know, what looks best, round or pointed, but I think even pointed ones should be at least rounded a bit. |
@claell Perhaps a 2px radius will look better than 3px. |
Maybe, I don't know. Cannot imagine what would look better, but I guess it would be worth a try. |
@Umcaruje Could you try a 2px radius on the corners? If it still doesn't look enough smooth, I think we should go with straight corners. |
@RebeccaDeField are you talking about the bottom or upper corners? Since this is a hack, and we're drawing over the actual window, my control of this is very limited. I'm actually drawing non-rounded rectrangles and lines with the code. |
Okay, I have to look how this works. |
Done |
Ok, done. I've fixed the identation and rephrased some of the comments to make them clearer. I'll leave open for 24 hours, if someone else has any more input, and afterwards, I'm merging 🎉 |
faf4bdd
to
77375c4
Compare
Has someone test this on Mac and Windows? |
Nope. @tresf could you test this on a mac? |
https://drive.google.com/file/d/0B49dcRGtm8vJUGFzVElDUmxmX1U/view?usp=sharing Here's a 32bit windows build. |
👍 @Umcaruje was this Qt4 or Qt5 being tested? |
Qt4, when I tried to install the qt5 packages, my VM couldn't find them in the trusty ppa. |
@Umcaruje You can easily install Qt5 from the Qt site (This is what I did to have both). |
Yes, I know, but this is for windows builds, which use a specific custom mingw PPA |
77375c4
to
7135787
Compare
7135787
to
4fd8fce
Compare
If you have dated PPAs... sudo add-apt-repository ppa:tobydox/mingw-x-trusty
sudo apt-get update
sudo apt-get install mingw32-qt5-base mingw64-qt5-base |
um, after some research, the correct packages are called I'll update the tutorial on wiki. Edit: the current way of making qt5 executables is also wrong. You can call qt5 building by doing ../cmake/build_mingw64.sh -qt5 or
I'll update this as well. |
Not, it is not wrong. That's just a helper to set the |
👍 |
Ok, its been over 24 hours, this has been tested on both linux and windows, and this PR has been open for enough time for devs to make remarks. That said, the travis builds also passed, so I'm merging this. |
Thanks to all! Especially to @Umcaruje for the great help. I hope this makes a lot of people happy. 🎉 |
Thank you to everyone who worked hard to make this a reality! I think I can speak on behalf on all of the themers when I say this feature really improves the interface :) |
Been waiting for this like a kid for Christmas for so much time. Thank you! |
Thanks on the kind words, but I really have to thank @BaraMGB for putting up with this PR, and @RebeccaDeField for providing the graphics. This is a prime example of teamwork and I'm very glad that we finally implemented this much wanted feature. |
Okay, this is only a basis for a discussion. Reference to #2450
Greetings, Steffen