-
-
Notifications
You must be signed in to change notification settings - Fork 389
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 missing button shadows in dialogs #4350
Conversation
@ihhub can you please trigger that check again: it built OK, but just failed to upload the artifacts. |
Hi, @a1exsh |
@Branikolog good catch. I think we can fix that by extending the shadow by just one more pixel (currently it is -4,4). |
@a1exsh |
@Branikolog that is because the |
@a1exsh |
@Branikolog I've added missing shadows to all buttons that I have found. Maybe you would like to have a look ;) |
If the issue you're referring to is with button corners — it is not new and I'm waiting for this PR to be merged before addressing these. I think it was discussed already in the comments here. |
Sorry, @a1exsh. I have too much tasks now. :) Missed this moment. |
It may be, but the issue is definitely present in the latest release and it's not directly related to the shadows, so let's address it separately. |
@ihhub please find the time to have a look — I've extracted the relevant code to new subclasses of the base button class. |
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.
Hi @a1exsh , I left few more comments in this pull request. Could you please take a look at them and check if they make sense, especially from architectural point of view?
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.
Hi @a1exsh , I put few more comments here. I feel we're almost there. Can you please check the comments?
@ihhub it complies and works, but I will not pretend I understood this |
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.
Hi @a1exsh , I left just few more optimization related comments. Could you please check them too?
Move semantics are used to avoid memory copy and only for objects which are going to be destroyed just after the call. This is useful when you can just swap values instead of copy them. In case of images it's essential to avoid extensive memory manipulations. |
Well, that is clear. What I don't get is why in some places it's OK to just call |
std::move enforces in some sense to end object's lifetime within your code block. If you don't do this then you're passing by normal reference rather than by r-value. |
@Branikolog please retest the latest build again as we changed a lot of internal code. |
appveyor build failed with an internal error, please re-trigger:
|
@a1exsh , a huge thanks for these changes! |
Relates to #4349