Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 6 - 8
BSD 3-Clause "New" or "Revised" License
406 stars 62 forks source link

[Question]: Should the default "Theme fonts" now be changed to Segoe UI 9 pt #288

Closed Smurf-IV closed 1 year ago

Smurf-IV commented 3 years ago

https://docs.microsoft.com/en-gb/dotnet/core/compatibility/winforms#default-control-font-changed-to-segoe-ui-9-pt

PWagner1 commented 3 years ago

Yes, or Segoe Variable UI (Windows 11)

Smurf-IV commented 3 years ago

Is Segoe on WinXP ? (As this suite still supports .net35 so could still be targetting that ?) Cannot use "Segoe variable" as that is not "Everywhere"!

Smurf-IV commented 3 years ago

Is Segoe on WinXP ? (As this suite still supports .net35 so could still be targetting that ?)

Not it is not unless Office 2007 (Or higher) has been installed: https://en.wikipedia.org/wiki/Segoe#Availability

PWagner1 commented 3 years ago

Might need some sort of version check, as I understand, Segoe Variable UI was designed to support larger screen sizes (4k etc). It could come to Win 10 21h2.

Smurf-IV commented 3 years ago

As #290 has been completed, then the default font could be Segoe UI 9 now. As for the Variable style, That may not be needed due to handling the of the following in the Target App exe's manifest

<application xmlns="urn:schemas-microsoft-com:asm.v3">
    <windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
    </windowsSettings>
  </application>

But it could be something that is added to the GlobalSettings in the ThemeManager

PWagner1 commented 3 years ago

@Smurf-IV I don't understand this, but if I try to update the font in the theme bases, it won't update to the new font

PWagner1 commented 2 years ago

@Smurf-IV Just found this https://docs.microsoft.com/en-us/dotnet/desktop/winforms/whats-new/net60?view=netdesktop-6.0#change-the-default-font Is it as easy as configuring the csproj files?

Smurf-IV commented 2 years ago

No, AS the themes have their own fonts The above link will be only applied to default winform elements.

PWagner1 commented 2 years ago

@Smurf-IV Is there any way to find the value of baseFontName?

Smurf-IV commented 2 years ago

@Smurf-IV Is there any way to find the value of baseFontName?

No idea, does it not show up in the palette designer ? Cannot check at the moment.

PWagner1 commented 2 years ago

@Smurf-IV Is there any way to find the value of baseFontName?

No idea, does it not show up in the palette designer ? Cannot check at the moment.

As far as I'm aware, there's no way to set a 'global' font. I'm not sure if the controls inherits the standard WinForms font?

PWagner1 commented 1 year ago

@Smurf-IV Should this be transferred to the extended toolkit?

Smurf-IV commented 1 year ago

No, It should be "Copied" in both

Smurf-IV commented 1 year ago

Also, it should be linked to the new one that you created.

PWagner1 commented 1 year ago

For this to happen, https://github.com/Krypton-Suite/Standard-Toolkit/issues/703 needs to be done