Skip to content
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 option to mirror the webcam image #138

Merged
merged 22 commits into from
Nov 16, 2020

Conversation

igordsm
Copy link
Sponsor Contributor

@igordsm igordsm commented Sep 19, 2020

Fix #38 : add option to mirror image.

mirror-image-2

Following the discussions on #67 , IMHO lacking this kind of feature may take users away from using camera. Specially when recording videos, being able to do simple adjustments directly from the app would make it infinitely more useful for me. I initially implemented it using a simple button, mas changed it to an app menu so that #51 could be implemented as well (I have a prototype, in fact).

What do you think? If you think its better to fix it one at a time I could change this one to use a "object-flip-horizontal" button, like below.

Captura de tela de 2020-09-19 15-15-17

@igordsm igordsm changed the title Add option to mirror the webcam image [Draft] Add option to mirror the webcam image Sep 22, 2020
Copy link
Contributor

@cassidyjames cassidyjames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to wrap this row in a modelbutton like we do in Code/Terminal settings popovers, so you can click anywhere in the row to toggle it.

src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
@igordsm
Copy link
Sponsor Contributor Author

igordsm commented Oct 28, 2020

@cassidyjames You mean like this?

pr-mirror-2

I am having a hard time aligning the button, but at least this looks like an improvement over the initial version. What do you think?

@alainm23
Copy link
Contributor

alainm23 commented Nov 3, 2020

@igordsm I agree with Cassidy, You could use a ModeButton

image

@igordsm
Copy link
Sponsor Contributor Author

igordsm commented Nov 3, 2020

Well, that's embarrassing. It was ModeButton and not ModelButton. Sorry about that. I'll try and fix it.

@cassidyjames
Copy link
Contributor

cassidyjames commented Nov 5, 2020

@igordsm no, I did mean ModelButton, just with a switch—like we use in the Terminal settings popover. 😄

Screenshot from 2020-11-05 12-21-30@2x

@igordsm igordsm changed the title [Draft] Add option to mirror the webcam image Add option to mirror the webcam image Nov 8, 2020
@igordsm
Copy link
Sponsor Contributor Author

igordsm commented Nov 8, 2020

@cassidyjames 😆 You mean like this?

mirror-image

If you do, then this is ready for review.

@cassidyjames
Copy link
Contributor

@igordsm yep, that's much closer. 😁

@igordsm
Copy link
Sponsor Contributor Author

igordsm commented Nov 12, 2020

@cassidyjames I added margin_bottom so now it looks pretty close to the screenshot you sent. Let me know if there's anything else to change.

mirror-image-2

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, just a few comments :)

src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
src/Widgets/HeaderBar.vala Outdated Show resolved Hide resolved
igordsm and others added 2 commits November 12, 2020 21:40
Co-authored-by: Daniel Foré <daniel@elementary.io>
Co-authored-by: Cassidy James Blaede <cassidy@elementary.io>
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for being patient with all of the requested changes! This is looking good. Happy to merge 🎉

@danirabbit danirabbit merged commit 6d14264 into elementary:master Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mirror image created eg text is reversed
6 participants