Recent

Author Topic: Custom Drawn Themes  (Read 921 times)

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Custom Drawn Themes
« on: February 08, 2024, 08:34:12 pm »
Hi, I noticed that the package custom drawn is being mentioned on this forum in several threads.

So I've tested the BGRAControls code for Custom Drawn and still works =)

Attached 4 themes that can be switched on the fly with the button 'change folder', basically zip files that contains the entire theme.

The demo is available in \bgracontrols\test\test_extra\slicescaling_customdrawn_win7

It requires custom drawn installed.

Edited wiki with the screenshots
https://wiki.freepascal.org/Lazarus_Custom_Drawn_Controls#dsWindows7
https://wiki.freepascal.org/Lazarus_Custom_Drawn_Controls#BGRAControls_Custom_Drawn_default_style
« Last Edit: February 08, 2024, 09:23:52 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Custom Drawn Themes
« Reply #1 on: February 08, 2024, 08:34:57 pm »
Also a default dark theme, to replace the default custom drawn theme...

Code fixes and contributions are welcome
github.com/bgrabitmap/bgracontrols
« Last Edit: February 08, 2024, 08:36:29 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Custom Drawn Themes
« Reply #2 on: February 08, 2024, 09:13:54 pm »
I've added a Windows 11 theme as well, attached screenshot

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Custom Drawn Themes
« Reply #3 on: February 08, 2024, 10:05:53 pm »
Your screenshots looking very promising!
Great job with controls! (3d controls style I like a lot, is the text on buttons on purpose very low instead of vertical middle centered?)
Is it possible to include the Captionbar in themes that it does match selected scheme?
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

wp

  • Hero Member
  • *****
  • Posts: 11853
Re: Custom Drawn Themes
« Reply #4 on: February 08, 2024, 10:28:53 pm »
I've added a Windows 11 theme as well, attached screenshot
Sorry, looks like an "imitation". This is native Win-11:

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Custom Drawn Themes
« Reply #5 on: February 09, 2024, 12:59:52 pm »
I've added a Windows 11 theme as well, attached screenshot
Sorry, looks like an "imitation". This is native Win-11:

Hi, is what I have in aero.msstyles in C:\Windows\Resources\Themes, I've not picked all windows 11 controls one by one. Maybe they get rid of msstyles in latest versions.

But feel free to make a zip file with all the images and include the settings theme ini file..
« Last Edit: February 09, 2024, 01:03:43 pm by lainz »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Custom Drawn Themes
« Reply #6 on: February 09, 2024, 01:02:01 pm »
Your screenshots looking very promising!
Great job with controls! (3d controls style I like a lot, is the text on buttons on purpose very low instead of vertical middle centered?)
Is it possible to include the Captionbar in themes that it does match selected scheme?

Thanks.

Is not on purpouse, but the image has a shadow that makes center a bit lower for the eye, but the text is in the center of the bitmap...

KodeZwerg

  • Hero Member
  • *****
  • Posts: 2007
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Custom Drawn Themes
« Reply #7 on: February 09, 2024, 01:06:02 pm »
Also a default dark theme, to replace the default custom drawn theme...
Wich example/demo is that please?
Can you please point to the path/filename please  O:-)
« Last Edit: Tomorrow at 31:76:97 xm by KodeZwerg »

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Custom Drawn Themes
« Reply #8 on: February 09, 2024, 09:26:58 pm »
Also a default dark theme, to replace the default custom drawn theme...
Wich example/demo is that please?
Can you please point to the path/filename please  O:-)

Currently is enabled only in dev-bgracontrols.

test\test_bgracustomdrawn


Or just drop any component from the BGRA Custom Drawn palette and you're done.
« Last Edit: February 09, 2024, 10:38:42 pm by lainz »

 

TinyPortal © 2005-2018