Forum > Third party

Win32TitleStyler

(1/1)

AlexTP:
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  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure ApplyFormDarkTitle(AForm: TForm; ADarkMode: bool; AForceApply: bool); 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).

Okoba:
Hello Alex
Can you share an screenshot?

AlexTP:
Here it is
(the Win32MenuStyler also works here for the MainMenu)

Okoba:
Cuda is looking very cool with these colors! Well done Alex.

Navigation

[0] Message Index

Go to full version