-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Allow selecting custom icons for user defined scripts #11709
Conversation
It's hard to overstate how MUCH better script icons look in the toolbar with 4K screen with this change. This also made me realize that all other icons are of the CRT-monitor-smeared-with-greasy-fingers quality level 😅 but I don't know of an easy way to upgrade them. |
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.
just nits, have not run
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.ScriptInfoProxy.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.ScriptInfoProxy.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.cs
Outdated
Show resolved
Hide resolved
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.
have not run
Thank you for the effort and the back-and-forth with me 🙏 |
Photo of the screen. Look at the bottom row and how blurry the icons are. Once I saw the custom icons selected for the scripts almost all other GE icons became perceptibly blurry once there was something to contrast them against. EDIT: Never mind, scratch that, all info was in that same mentioned commit, the website that had these icons is no longer working and I've only managed to find 16x16 icons https://www.flickr.com/photos/ddt3065snky/ These are "Xiao Icon" once hosted at ineversay.com |
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.ScriptInfoProxy.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/ScriptsSettingsPage.cs
Outdated
Show resolved
Hide resolved
…nvocations of SetLabelColumnWidth
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.
Few nits and naming feedback. Other than that - 👍
Co-authored-by: Igor Velikorossov <RussKie@users.noreply.github.com>
* Allow selecting custom icons for user defined scripts * Adjust PropertyGrid "properties" column width Refs: gitextensions#11709
Proposed changes
Scripts
in addition toIcon
property, addIconPathName
in the property gridPropertyGrid
is ridonculous. StackOverflow listed the only option of using reflection to read into internal control and adjusting its splitter position.. not pretty but no downsides even if underling API changes and it looks much better.Screenshots
Before
100% scaling
200% scaling
After
100% scaling
200% scaling
Test methodology
Icon
andIconPathName
, etc.Test environment(s)
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.