How do I change TortoiseHg default UI font? - user-interface

The default TortoiseHg / Hg Workbench UI font appears too small on a system running Win 11 Pro with ClearType disabled. Notably thinner and smaller than other applications.
I'm using TortoiseHg 6.2.3
I see from setting that I can set code windows text, but UI and branches/descriptions in log are still tiny and can't find a way to chang them.
Is there some setting that I didn't see or does it have to be changed elsewhere?

Related

Change Qt Creator Interface Scaling / Font Size

Can I change Qt Creator's (latest version: 4.14.0, Windows 10) general GUI font size (or scaling)?
The problem is, my system display scaling is set to 250% and I have two options for high DPI compatibility in Qt Creator, but both have issues:
I can disable Creator's built-in High DPI Scaling and force System (Enhanced) in the Windows compatibility settings:
Or I can enable Creator's built-in scaling and leave the Windows compatibility scaling override turned off (Application scaling):
In the former case, it's actually a size I find very comfortable except the cursors are all too small and Designer gets wonky (plus it's tricky to layout GUI's because apps all run in System (Enhanced) mode from Creator).
In the latter case, the cursors and Designer work, and it's nice to not have heavy anti-aliasing everywhere, except the GUI font is too large for me, and everything feels cramped (especially the top bar, and the left bar reminds me of one of those old school children's telephones with the huge buttons). Plus the general GUI font is different enough in size from my editor font that the whole thing just feels jarring and kind of stresses me out.
So what I think I'd like to do, ideally, is use application scaling like in the latter example, but just shrink the GUI font size to match the former.
I think I ran through all the options thoroughly, and all I can find is settings for the editor window and the console, but not the rest of the GUI.
To be honest, I'm actually not entirely sure why they don't look the same; my expectation was that Qt's built-in High DPI support would take the scale factor into account in the same way that Windows' System (Enhanced) mode does, but I'm sure it's more complicated than that.
The problem is Qt automatically round up your 250% scaling to 300%. For Qt Creator application, you can create a "QT_SCALE_FACTOR_ROUNDING_POLICY" environment variable, and set it to "PassThrough". You can find details in this question: Qt Creator "too big" on 3840x2160 and 150% scaling on Windows 10.
It's also worth noting that Qt also behaves like this coding a GUI program. This can be fixed with:
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);

Visual Studio 2010 looks "zoomed in"

Today, I installed Visual Studio 2010 Professional on a new laptop with a fresh Windows 7 Ultimate 64-bit install. I, being quite used to the look of Visual Studio 2010, instantly spotted that something was wrong. It seems that the Visual Studio application is "zoomed in", in a way. The text is much larger (even though it says that the zoom level is 100%, and the text size is 10, which is the same as what I used before), and generally, so are the other windows like the Solution Explorer and Output console. The quality of the icons and images is also very bad.
Here are two comparison images (I wasn't allowed to post images, so some links will have to do):
This is the look that I'm used to. I see plenty of text in the windows, and the icons are fine.
http://i51.tinypic.com/2mq8dau.png
This is what greeted me when I installed VS2010 on my new laptop. The icons look stretched, and I can fit a lot less code in the window.
http://i56.tinypic.com/35k0fo4.png
The screen resolution on my old computer is 1920x1200 and the resolution on my new computer is 1920x1080. (I resized the VS window on my old computer to about 1920x1080 to show the difference).
It looks like my image host resized the images as well, but you should still be able to see the difference.
Has anyone had the same problem? I'm hoping it's just some visual settings. If anything is missing, I will be happy to provide more information.
Thanks in advance.
It seems your Font Size DPI is at 150% on the second screenshot. If you right click on the Desktop and select Personalize > Adjust Font Size (DPI)* you should be able to see what it is currently set at.
Check
that your screen is at native resolution (there can only be one, the native max)
that your OS font is
at normal size
antialiasing (i believe windows calls that cleartype or something)
the screen density is 'standard' (usually 96DPI IIRC)
I strongly suspect the latter (the DPI setting). It's under
Desktop Properies
Display Properties
Display Settings
Advanced
DPI Settings
in my Windows
If you hold down Ctrl and roll the wheel on the mouse it will zoom it in and out. You can then get the desired size that you want. I hope that solves it.
EDIT:
Also if you go to Tools->Options and then under Environment->Font and Colors you can then customize the font size for the whole application.
I didn't find any setting that could case this effect.
Did you try reseting the settings of visual studio (Tools - Import and Export Settings) or Import the settings of your working maschine.
Maybe you have configured big-icons / big-font in windows?

Making a vb.net application blend in with the Windows theme

Previously I used to piddle around with VB6 to develop a couple of personal projects. Following my upgrade to Windows 7, I've decided to piddle about with vb.net Express Edition 2010.
If I wanted my VB6 application to blend in with the visual style of Windows, I would use the code and techniques described here. In short, I would use a Manifest file and a couple of calls within the application and most of the elements would look similar to the XP theme applied. If it was run on 2000, 95 or 98 then it would look like a standard Windows app. All was good.
Now I've moved onto vb.net, I've written a simple "Hello, world" application but I have absolutely no idea on how to make it look like the Windows 7 theme (eg. the font matches the system font and the widgets are styled correctly).
Just changing the font is a hack and will look out of place on machines that are set-up differently or run a different version of Windows where the default font is different.
How do I ensure my application matches the applied Windows theme irrespective of the version of Windows?
A lot of this is automatic if you create a Windows Forms app. They will (mostly) use the standard native Windows controls which draw themselves with the theme colors. But there are exceptions:
the Form item template uses a default Font named Microsoft Sans Serif. You'll have to change it to Segoe UI to match the Vista/Win7 default. This is only necessary for the Form class, all controls you put on it will automatically inherit that font. On an XP machine, the Windows font mapper will notice that the font is missing and automatically fall back to MSS.
the MenuStrip class uses custom rendering to draw the menu items. It tries to match the Windows style when you change the RenderMode property to System but the way it draws doesn't match the Win7 style. Right-click the toolbox, Choose Items and select MainMenu. That's a legacy version that does use Windows to draw menus so it produces the proper theme appearance.
A very similar problem for ToolStrip. It's legacy version is ToolBar. This is a hard one to swallow, it doesn't use a rebar which make the tool bar look flat and ugly.
There are similar problems in WPF but with the added problem that WPF doesn't use any of the standard Windows controls. And gets it wrong in subtle places.

How to disable ClearType in Visual Studio 2010? [duplicate]

I just got VS 2010 beta 1, but the text in the text editor is thin, ie not anti aliased, smoothed or cleartyped. It's hard to read. Is there a setting to adjust it, similar to the one in the OS.
This is a known issue with the beta. See the readme. Section 2.4.2.2 "Text may appear slighly blurry".
They are working on a fix and recommend you stick with Consolas font for English, for now.
This will be fixed in Beta 2 once WPF integrates with the DirectWrite code in the latest versions of DirectX.
To workaround this, we decided to override the OS Setting and always for ClearType smoothing to be on when Consolas is the editor font. This way the user who isn't particular about fonts gets the best behaviour and if the user wants to have a non-clear type experience the will also need to switch their font which they would have to do anyways.
ClearType cannot be disabled in source code windows
Let me know if changing the font from Consolas works for you.
The Microsoft H4X0RS decided to force users to adopt ClearType when using Consolas font (scroll down until you see the heading Consolas always uses ClearType)
The way to fix this is to install the Text Sharp extension (yes, you read right, you need to install an extension to turn off BlurType -- ie to have your system-wide setting of no anti-aliasing applied)
How the people who did this got away with it I'll never know.
There is an extension that can help with this:
http://www.svprogramming.net/text-sharp/index.html
You have to both turn it off in the display options and the performance options:
Visual Studio 2010 Text Clarity: ClearType Options

Possible to adjust ClearType on Visual Studio 2010?

I just got VS 2010 beta 1, but the text in the text editor is thin, ie not anti aliased, smoothed or cleartyped. It's hard to read. Is there a setting to adjust it, similar to the one in the OS.
This is a known issue with the beta. See the readme. Section 2.4.2.2 "Text may appear slighly blurry".
They are working on a fix and recommend you stick with Consolas font for English, for now.
This will be fixed in Beta 2 once WPF integrates with the DirectWrite code in the latest versions of DirectX.
To workaround this, we decided to override the OS Setting and always for ClearType smoothing to be on when Consolas is the editor font. This way the user who isn't particular about fonts gets the best behaviour and if the user wants to have a non-clear type experience the will also need to switch their font which they would have to do anyways.
ClearType cannot be disabled in source code windows
Let me know if changing the font from Consolas works for you.
The Microsoft H4X0RS decided to force users to adopt ClearType when using Consolas font (scroll down until you see the heading Consolas always uses ClearType)
The way to fix this is to install the Text Sharp extension (yes, you read right, you need to install an extension to turn off BlurType -- ie to have your system-wide setting of no anti-aliasing applied)
How the people who did this got away with it I'll never know.
There is an extension that can help with this:
http://www.svprogramming.net/text-sharp/index.html
You have to both turn it off in the display options and the performance options:
Visual Studio 2010 Text Clarity: ClearType Options

Resources