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
Change TextImageRelation For "Reset All" Button #8761
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8761 +/- ##
==========================================
+ Coverage 55.66% 56.16% +0.49%
==========================================
Files 894 919 +25
Lines 64855 65497 +642
Branches 11870 11992 +122
==========================================
+ Hits 36103 36784 +681
+ Misses 25809 25716 -93
- Partials 2943 2997 +54
Flags with carried forward coverage won't be shown. Click here to find out more. |
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.
Could you manually apply the essential changes to the designer file, please?
It seems that the modifyCommitMessageButton
or its Text
got lost somehow.
Feel free to force-push to this branch.
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.
The diff contains too many unrelated changes that makes it impossible to reason about the proposed change.
Please remove all irrelevant changes and keep the actual change.
for longer translated languages more button space is required.
the designer is doing so much things in the background :/ But I removed the spam now |
Even when running VisualStudio in no scale mode? https://github.com/gitextensions/gitextensions/wiki/Guidelines:-UI-design Side note for dev team: I don't know how to make contributors aware that it is really important to update forms in no scale mode before they start to update the forms.... |
Sorry to have to tell you but there are still a lot of whitespaces added after |
The current translation "Reset Unstaged Changes" is "Alle ungestagten Änderungen zurücknehmen" (and for "Reset All Changes" "Alle Änderungen zurücknehmen". You can find this in the .xlf files. |
The translations are pushed to transifex constantly, it just we don't pull updated translations that often.
Wow, that's way too long to comfortably present on the button without making the button take half the screen. 🤔 |
#8791 brings the latest translations |
@mstv what do you think? @thimmy687 we don't generally control translations, those are done by the community at Transifex. You are welcome to fix it, though there's no guarantee someone won't attempt to change it later. |
It is a valid option to remove the verb, although this will only be understandable in combination with the icon. But I strongly prefer all development tools in English. |
but the TextImageRelation change is still valid ... this avoid the cutting/wrapping of the icon in the button So for me we could merge this still |
No, the change is not correct because the last button isn't showing the full text: gitextensions/GitUI/Translation/German.xlf Lines 3872 to 3874 in fde9a6e
This is how it supposed to look in German language: But the buttons must not be as wide for English, or any other language. The layouts of the panel and buttons need to be changed to be fluent and autosize based on content. |
I'm far to be an expert in winforms, so I'm really interested to know how to do that (without code behind) because that have always been very difficult to manage autosizing of button containing an image. I always thought that the handling of this case should have been better handled by winforms.... |
we can also keep the origin size and just change the TextImageRelation It's not the best solution for translations but the easiest at the moment. Better integrations are available with other frameworks like WPF |
Let's fix the relationship issue. We can look at the sizing later.
|
rollback button size changes
fix white space
fix missing resize
Thank you |
(cherry picked from commit ac88bd2)
Change TextImageRelation
For some languages e.g. german the button is to small and
the icon was cutted and moved a little bit down.
For this the TextImageRelation was changed to overlay to get
the same behavior as the other buttons.
Fixes #6548 (partially)
Proposed changes
Screenshots
Before
After
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.