Recent

Author Topic: fpgui support full theming ?!!  (Read 22999 times)

Fred vS

  • Hero Member
  • *****
  • Posts: 1675
    • miXimum is the DJ's best friend
Re: fpgui support full theming ?!!
« Reply #15 on: December 06, 2013, 03:15:46 pm »
Hello.

There is also a "extended" version of uidesigner, synchro with original Graeme version at :

https://github.com/fredvs/uidesigner_ext

I use Lazarus 1.8.0 32/64 and FPC 3.0.3 32/64 on Linux Mint Mate 17 32/64, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: fpgui support full theming ?!!
« Reply #16 on: December 17, 2013, 08:53:13 pm »
Hi All.

Nice Work Fred vS  ;)

In Attachments four others styles for fpgui :   
  - Plastic Dark
  - Plastic Dark Gray
  - Plastic Medium Gray
  - Plastic Light Gray 
+ some modifications on Carbon style
+ compiled exe demo

I hope you will like it  :)
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

airpas

  • Full Member
  • ***
  • Posts: 179
Re: fpgui support full theming ?!!
« Reply #17 on: December 17, 2013, 09:30:11 pm »
ROCABDEL  wow . looking pretty good . Yourr example completely changed my mind about fpgui

Fred vS

  • Hero Member
  • *****
  • Posts: 1675
    • miXimum is the DJ's best friend
Re: fpgui support full theming ?!!
« Reply #18 on: December 18, 2013, 02:29:38 pm »
@ Rocabdel : waooow, super, please, give it to Graeme...

Hum, there is a new patch for Lazarus.

Now uidesigner_ext is WYSIWYG "vice-verse".

You may try it, it is really awesome (i think).

First, apply the patch for your IDE.

>> https://github.com/fredvs/uidesigner_ext

Explanations how to do is here :
>> http://forum.lazarus.freepascal.org/index.php/topic,12481.msg136323.html#msg136323

Now, run Lazarus, load a fpGUI souce file and, in code-editor,
change something in auto-created fpGUI code (in form.AfterCreate).
(There is a template to try in uidesigner_ext/template.)

Press on Ctrl+S, you gonna see that, in uidesigner, the graphic change is
applied.

Also, if you change something in your form with uidesigner (and do not save
with uidesigner) and go back in source editor, if you press Ctrl+S, your form
will become like it was before changes with uidesigner.

All that awesome features of fpGUI announce a future "UNDO" part for
uidesigner (like Delphi does...).

Yep. ;-)
« Last Edit: December 18, 2013, 02:31:48 pm by Fred vS »
I use Lazarus 1.8.0 32/64 and FPC 3.0.3 32/64 on Linux Mint Mate 17 32/64, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs

Dibo

  • Hero Member
  • *****
  • Posts: 1045
Re: fpgui support full theming ?!!
« Reply #19 on: December 18, 2013, 06:23:14 pm »
@ROCABDEL: Respect! :o
And this is done by standard fpGUI render engine. I can't imagine what you could do with fpAgg. Graeme, you should add them into repository

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpgui support full theming ?!!
« Reply #20 on: December 18, 2013, 09:32:40 pm »
In Attachments four others styles for fpgui :   
  - Plastic Dark
  - Plastic Dark Gray
  - Plastic Medium Gray
  - Plastic Light Gray 
Fantastic work! I was only going to add the Carbon theme to the fpGUI repository, but do you mind if I add the remaining ones too. They all look really nice!

ps:
Last night I made some more improvements to widget painting by taking the theme settings into consideration - instead of hard-coded values. Last remaining widget is the control frame painting of the treeview widget. Then I'll add the Carbon (and others if you are okay with it).

Cheers,
  Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpgui support full theming ?!!
« Reply #21 on: December 18, 2013, 09:34:29 pm »
Graeme, you should add them into repository
Awaiting approval from ROCABDEL. :)  He is doing a fantastic job - I'm very impressed.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: fpgui support full theming ?!!
« Reply #22 on: December 18, 2013, 11:22:12 pm »
Hello^

Thank you so much friends. I'm glad you appreciate my work  :) other styles are in developing  ;)

Then I'll add the Carbon (and others if you are okay with it).

Awaiting approval from ROCABDEL. :)  He is doing a fantastic job - I'm very impressed.

Yes you can add them into repository, and you can even change what you want, it will give me great pleasure Graeme  :)

My best regards.
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpgui support full theming ?!!
« Reply #23 on: December 23, 2013, 12:40:16 am »
Yes you can add them into repository, and you can even change what you want, it will give me great pleasure Graeme  :)
Thanks. Added to the 'develop' branch as commit b5a9e3c.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

airpas

  • Full Member
  • ***
  • Posts: 179
Re: fpgui support full theming ?!!
« Reply #24 on: December 23, 2013, 09:43:24 am »
i think there is a bug somewhere ,  in the example of ROCABDEL  go to TabSheet2 and drag the spliter many time  faster  , you'll get a messy drawing widgets.

like this 
« Last Edit: December 23, 2013, 09:48:07 am by airpas »

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpgui support full theming ?!!
« Reply #25 on: December 23, 2013, 10:59:07 am »
i think there is a bug somewhere ,  in the example of ROCABDEL  go to TabSheet2...
Thanks for reporting your issue. To look at the issue, I would require a bit more information. Are you simply running the executable posted by ROCABDEL, or are you compiling the demo project yourself with the latest fpGUI? Can you also give me as much of the following details please... OS, OS Version, Graphics drivers, FPC version, fpGUI version (v1.0 or latest 'develop' branch) etc.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

airpas

  • Full Member
  • ***
  • Posts: 179
Re: fpgui support full theming ?!!
« Reply #26 on: December 23, 2013, 12:43:04 pm »
sure
just runing the exe posted above .
OS : Win7 32bits

i don't think its related to graphic driver , since i can reproduce the problem in 4 different PC's 
to reproduce , as i said drag the splitter right and left (drag until go outside of the form ) . do it quickly many times

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: fpgui support full theming ?!!
« Reply #27 on: December 23, 2013, 04:09:11 pm »
I did see what airpas has described. I noticed that the scroll bars start getting black color first then the lines used to connect entries in the tree do not get drawn then the drawing gets missed up the way the pictures showed. I ran Windows Task Manager and when added GDI Objects to the visible columns (View - Select Columns) I noticed that the objects keep increasing and when they reached close to 10000 objects problems started to show up. That is in accordance with the settings in my registry:

Quote
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\GDIProcessHandleQuota = 10000

Moving the splitter faster just gets you quickly to that point but that is not the only way.
« Last Edit: December 23, 2013, 05:37:18 pm by engkin »

ROCABDEL

  • New Member
  • *
  • Posts: 41
Re: fpgui support full theming ?!!
« Reply #28 on: December 25, 2013, 11:39:51 pm »
Thanks. Added to the 'develop' branch as commit b5a9e3c.

Thank you Graeme   :)
Processor:IntelCore 2 2.19GHz - RAM 2GB
(Lazarus1.0.4 / fpc2.6.0 / qt4.7.3 at4pas2.5 / Xcode4.0)
-Windows 7/8-Intel Mac OS X 10.6.8-Haiku-Openidiana,Solaris11-PC-BSD,GhostBSD-openSUSE,Ubuntu,Fedora,mageia,Sabayon,Chakra..

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: fpgui support full theming ?!!
« Reply #29 on: December 27, 2013, 01:48:10 am »
sure
just runing the exe posted above .
OS : Win7 32bits
Thanks for the feedback. My initial tests show that it is a Windows specific bug - thus in the fpg_gdi.pas backend. Testing under Linux and FreeBSD had no such painting problems. I'll investigate the GDI backend further.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/