Recent

Author Topic: Win32TitleStyler  (Read 445 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 1846
    • UVviewsoft
Win32TitleStyler
« on: April 26, 2022, 12:23:43 am »
This is unit, it works on Windows Vista+ only (it doesn't do anything on older Windows).
https://github.com/Alexey-T/CudaText/blob/master/comp/win32titlestyler.pas

It gives the procedure to make the form's title - dark.

Code: Pascal  [Select][+][-]
  1. procedure ApplyFormDarkTitle(AForm: TForm; ADarkMode: bool; AForceApply: bool);
  2.  
Param AForceApply was needed for my app, you can always pass True here.
With value False my app cannot make the title dark - after restoring from the full-screen mode (Win10 resetted dark style to white style).
« Last Edit: April 26, 2022, 12:26:25 am by AlexTP »

Okoba

  • Sr. Member
  • ****
  • Posts: 304
Re: Win32TitleStyler
« Reply #1 on: April 26, 2022, 08:53:47 am »
Hello Alex
Can you share an screenshot?

AlexTP

  • Hero Member
  • *****
  • Posts: 1846
    • UVviewsoft
Re: Win32TitleStyler
« Reply #2 on: April 26, 2022, 09:30:33 am »
Here it is
(the Win32MenuStyler also works here for the MainMenu)
« Last Edit: April 26, 2022, 09:32:13 am by AlexTP »

Okoba

  • Sr. Member
  • ****
  • Posts: 304
Re: Win32TitleStyler
« Reply #3 on: April 26, 2022, 09:40:59 am »
Cuda is looking very cool with these colors! Well done Alex.

 

TinyPortal © 2005-2018