* * *

Author Topic: Override system theme  (Read 520 times)

Luciano Andress Martini

  • New member
  • *
  • Posts: 41
Override system theme
« on: November 07, 2018, 03:21:45 pm »
There is some way to overrides a system theme for my application?

So it will use always some kind of default theme?

I am needing this for a GTK2 or Win32 Project.


Windsurfer

  • Sr. Member
  • ****
  • Posts: 336
    • Windsurfer
Re: Override system theme
« Reply #1 on: November 07, 2018, 09:17:07 pm »
This old posting is probably still true: https://forum.lazarus.freepascal.org/index.php?topic=26894.0

You can also click on View | Restriction Browser to many component level restritions.

lucamar

  • Sr. Member
  • ****
  • Posts: 358
Re: Override system theme
« Reply #2 on: November 07, 2018, 09:35:42 pm »
You could use custom drawn controls, but then you'll either have to do all the drawing yourself or use a library like p.e. BGRAControls, the ATxxxx series of components, etc.
Been there, done that ... barely kept the timelines.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 1.8.4/fpc 3.0.4 - Ubuntu 10, Kubuntu 14, Windows XP SP3 (Home & Prof.) and various DOS incarnations.

Luciano Andress Martini

  • New member
  • *
  • Posts: 41
Re: Override system theme
« Reply #3 on: November 09, 2018, 12:28:41 pm »
Windsufer i think this solution is not compatible with gtk2.. or it is?

However my another problem with colors are solved for instance. I am having with white text with white background in some components, so i think if i force some kind of theme i will have good results in every desktop. The workaround for this another problem is in my another question here (if you are a user searching for the same solutions):
http://forum.lazarus.freepascal.org/index.php/topic,43125.0.html


« Last Edit: November 09, 2018, 12:31:37 pm by Luciano Andress Martini »

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus