Recent

Author Topic: Override system theme  (Read 2246 times)

Luciano Andress Martini

  • New Member
  • *
  • Posts: 43
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: 368
    • 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

  • Hero Member
  • *****
  • Posts: 4219
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.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

Luciano Andress Martini

  • New Member
  • *
  • Posts: 43
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 »

 

TinyPortal © 2005-2018