Recent

Author Topic: Modern UI in Lazarus  (Read 158336 times)

Pong

  • New member
  • *
  • Posts: 6
Re: Modern UI in Lazarus
« Reply #255 on: December 02, 2022, 03:06:17 am »
Hey Guys!
How to create modern user interfaces in 2022(like that DaVinci Resolve, adobe ps )?
Create components yourself or use GUI framework?
« Last Edit: December 02, 2022, 03:15:51 am by Pong »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 941
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Modern UI in Lazarus
« Reply #256 on: December 02, 2022, 07:12:47 am »
I do not see anything extra ordinary so you should be more specific.
Adjust colors and use custom glyphs for buttons, the graphic effects are images I guess.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

Pong

  • New member
  • *
  • Posts: 6
Re: Modern UI in Lazarus
« Reply #257 on: December 02, 2022, 08:42:27 am »
I do not see anything extra ordinary so you should be more specific.
Adjust colors and use custom glyphs for buttons, the graphic effects are images I guess.

I try to use Lazarus components , but some components don't have properties set.
for example: Tmainmenu don't have properties set background color, then draw(OnDrawItem) yourself or use other components? 

KodeZwerg

  • Hero Member
  • *****
  • Posts: 941
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Modern UI in Lazarus
« Reply #258 on: December 02, 2022, 09:10:43 am »
In many cases you need to turn off theme support in project options. That way you disable System Operating System default styles and can use your own colors for everything.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

KodeZwerg

  • Hero Member
  • *****
  • Posts: 941
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Modern UI in Lazarus
« Reply #259 on: December 02, 2022, 09:13:59 am »
TMainMenu does not offer, such you need to OwnerDraw yes.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

Pong

  • New member
  • *
  • Posts: 6
Re: Modern UI in Lazarus
« Reply #260 on: December 02, 2022, 10:41:17 am »
In many cases you need to turn off theme support in project options. That way you disable System Operating System default styles and can use your own colors for everything.

I'm sorry, I'm not sure what you mean. Turn off this"use manifest resource"?
if turn off theme support in project options , then lazarus component set properties like css style?(example: Star Button , gradient color, Button Shadow...)

KodeZwerg

  • Hero Member
  • *****
  • Posts: 941
  • Fifty shades of code.
    • Delphi & FreePascal
Re: Modern UI in Lazarus
« Reply #261 on: December 02, 2022, 11:29:25 am »
I just can show you a little how I mean it with a project I did long ago by turning runtime themes off (built with Delphi)

There I do have more control over the used colors.
« Last Edit: Tomorrow at 31:76:97 by KodeZwerg »

Pong

  • New member
  • *
  • Posts: 6
Re: Modern UI in Lazarus
« Reply #262 on: December 06, 2022, 09:28:04 am »
I just can show you a little how I mean it with a project I did long ago by turning runtime themes off (built with Delphi)

There I do have more control over the used colors.

Thank you so much friends ~ :)

 

TinyPortal © 2005-2018