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 support for setting console emulator font name #9332
Add support for setting console emulator font name #9332
Conversation
Please make sure the solution builds.
|
It might be caused by the changed other submodules. Perhaps the merge went wrong. Basically, please do not merge anything into feature branches - rebase instead. |
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.
Build FAILED.
C:\projects\gitextensions\GitExtensions\Project.Loc.targets(89,5): error : Please update English translations and re-submit the pull-request. Refer to https://github.com/gitextensions/gitextensions/wiki/Translations [C:\projects\gitextensions\GitExtensions\GitExtensions.csproj]
0 Warning(s)
1 Error(s)
GitUI/CommandsDialogs/SettingsDialog/Pages/ConsoleStyleSettingsPage.Designer.cs
Outdated
Show resolved
Hide resolved
GitUI/CommandsDialogs/SettingsDialog/Pages/ConsoleStyleSettingsPage.Designer.cs
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
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.
This is radical, but I think this is a good direction. However now the "Console style" page is pretty empty, and perhaps we could consider moving the console font setting to the "Fonts" page, and the console style dropdown to the "Colors" page (under its own group, like "Console theme"?).
What do you think?
GitUI/Translation/English.xlf
Outdated
<file datatype="plaintext" original="Plugin" source-language="en"> | ||
<body> | ||
<trans-unit id="Description.Text"> | ||
<source>Plugin Manager</source> | ||
<target /> | ||
</trans-unit> | ||
</body> | ||
</file> |
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.
Please revert this piece
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.
This is radical, but I think this is a good direction. However now the "Console style" page is pretty empty, and perhaps we could consider moving the console font setting to the "Fonts" page, and the console style dropdown to the "Colors" page (under its own group, like "Console theme"?).
What do you think?
I could be awayed either way. I like that the console related stuff is in one sub page but I get your thinking as well.
I was contemplating the fact that the entire ConEmu settings xml can be loaded externally as well and that maybe another feature I could work on next. If we want to try that, then we would need the console sub page to place the xml file path picker for example.
i.e. These are all the settings embedded in that xml file
This isn't a reason to keep the console sub page though. Just something that came to my mind. Let me know how you want to proceed. I can go with you suggested approach if you want.
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.
I was contemplating the fact that the entire ConEmu settings xml can be loaded externally as well and that maybe another feature I could work on next. If we want to try that, then we would need the console sub page to place the xml file path picker for example.
Instead of duplicating the ConEmu's settings page, I'd rather see us providing a mechanism to launch the ConEmu configurator. Though personally I don't think it adds any value, you're one of a handful contributors who expressed the desire to tweak it.
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.
Yeah I wouldn't wanna duplicate it. Rather I was thinking let us point to a xml file from our settings. But like you said, it might be overkill.
So provided we want to continue with the reorg of pages, should I tackle the sub page removal/reorg as a separate PR?
I've added the translations but the build still keep failing :( |
This is an open issue if the master has translation changes. |
I don't believe this has anything to do with #9273 |
But that's the change you wanted me to revert right? It fails translation before and after reverting that change. |
Yes. You're introduced trailing spaces, which must be undone for the translation check to pass. |
e340f5e
to
07319d8
Compare
Fixed. |
Please provide an updated screenshot |
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.
👍
Please squash
07319d8
to
4d33064
Compare
@RussKie done and pushed. |
Thank you |
Add Support For Setting Console Emulator Font Name
This is the 2nd part supplementing the PR to the ConEmu fork gitextensions/conemu-inside#28. The idea is to allow powerline supported fonts.
As shown on the screenshot below, setting the font name to a powerline supported font resulted in this nice rendering.
I could not get the design view for
ConsoleStyleSettingsPage
to load in Visual Studio 2019 but I hand edited theConsoleStyleSettingsPage.designer.cs
file directly. It build, runs and renders fine but as an improvement I would like to use the standard button based font selection and combine font name + size. I'll do it as a separate PR next.✒️ I contribute this code under The Developer Certificate of Origin.