Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Previewer: in active window title the font is usually bold #24

Closed
Anixx opened this issue Aug 16, 2022 · 5 comments
Closed

Previewer: in active window title the font is usually bold #24

Anixx opened this issue Aug 16, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Anixx
Copy link

Anixx commented Aug 16, 2022

In default Windows schemes, the font in the active title is bold. This is configurable but in Win Standard scheme and others it is the case.

@Abdelrhman-AK
Copy link
Owner

4444

The classic mode I used (Simple Classic theme) in Windows 10 didn't make the active titlebars bold, but Windows XP and 7 showed it bold.
So I'm confused if I make it bold or normal 😂

@Anixx
Copy link
Author

Anixx commented Aug 16, 2022

The font style is part of the color scheme and is not depended on the method of disabling theming. It can be bold or not, but in Windows 2000 and Windows 95 schemes it is bold.
изображение

@Abdelrhman-AK
Copy link
Owner

Ok, very nice.
I'll make it detect from Windows Metrics if its font is bold or not

@Anixx
Copy link
Author

Anixx commented Aug 17, 2022

It also can be Italic (the next button)

@Abdelrhman-AK
Copy link
Owner

  • Yup, I have used the LOGFONTA module to convert bytes of registry into font info .. I will implement both font weight (Regular/Bold) and "LFItalic"

  • Getting font size from Byte() is kind of complicated and I can't find a method to get it from WindowsMetrics, so I used Segoe UI and Size 9. Font Style is from "LFWeight"

https://docs.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfonta

@Abdelrhman-AK Abdelrhman-AK added the enhancement New feature or request label Aug 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants