Recent

Author Topic: Ugly interface in Windows 10  (Read 2677 times)

AL

  • Sr. Member
  • ****
  • Posts: 261
Ugly interface in Windows 10
« on: December 03, 2019, 04:16:44 am »
I just "upgraded" from Windows 7 to 10.
Oh man  what a dull and ugly interface.  Now my software that had a nice interface in Windows 7 has a dull gray square buttons in Win 10.
Is there a way to go back to the win 7 look without too much code?
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

jamie

  • Hero Member
  • *****
  • Posts: 6091
Re: Ugly interface in Windows 10
« Reply #1 on: December 03, 2019, 04:30:07 am »
Well, I guess you could experiment with your desktop settings but remember that most other users will be seeing what you see now, so you better adjust your program! :D
The only true wisdom is knowing you know nothing

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Ugly interface in Windows 10
« Reply #2 on: December 03, 2019, 04:42:57 am »
is "Use manifest resource (and enable themes)" missing in Project Options?

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Ugly interface in Windows 10
« Reply #3 on: December 03, 2019, 04:47:35 am »
No it is there and checked.
However DPI is deactivated
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Ugly interface in Windows 10
« Reply #4 on: December 03, 2019, 09:48:19 pm »
Something is wrong!
I tried adding a new button with my new setup Laz 2.0.6 r62129  Win64 and it is quite different from the existing ones.  This new button is OK.
It is like the buttons added with the 32 bits version are a different object than the new ones and are not "translated" by LCL!
Do I need to do someting with the LCL ?  The widget set is Win32 is that OK? There is no Win64 widget?
Seems also I cannot change the color of the buttons. Whatever color I put in the property window, once compiled it is always gray.
I really need some directions with this 64 bits transition!
Thank you
« Last Edit: December 03, 2019, 10:17:18 pm by AL »
Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

kupferstecher

  • Hero Member
  • *****
  • Posts: 583
Re: Ugly interface in Windows 10
« Reply #5 on: December 03, 2019, 09:53:22 pm »
I guess it would be the best if you show us screenshots of both button styles.

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Ugly interface in Windows 10
« Reply #6 on: December 03, 2019, 10:14:50 pm »
Here is a screen shot.  The new button has beed added with Laz64.  The other ones with Laz32.
The new button should be cllime in color with clred for the font.
The chart is a TAchart and this seems to be compiling OK.


Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

del

  • Sr. Member
  • ****
  • Posts: 258
Re: Ugly interface in Windows 10
« Reply #7 on: December 03, 2019, 11:37:49 pm »
I had an MFC app that got hosed when we upgraded from Win 7 to Win 10. Basically there's a parameter that gets set to disable themes. Then your GUI goes back to looking the way you designed it. Maybe there's something similar in the Lazarus world. I'll take a look tomorrow - it might relate.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Ugly interface in Windows 10
« Reply #8 on: December 04, 2019, 12:17:06 am »
I just "upgraded" from Windows 7 to 10.
Oh man  what a dull and ugly interface.  Now my software that had a nice interface in Windows 7 has a dull gray square buttons in Win 10.
Is there a way to go back to the win 7 look without too much code?

With BGRAControls you can theme like it's Windows 7 (or anything).

wp

  • Hero Member
  • *****
  • Posts: 11858
Re: Ugly interface in Windows 10
« Reply #9 on: December 04, 2019, 12:29:33 am »
Coming from Win 7, the Win 10 interface looks like a step back. But that's the way it is. In the meantime, I am accustomed to it, and Win 7 looks overloaded to me now.

If you want to Win 7 look in Win 10 you must try to install a corresponding theme, like https://winaero.com/blog/get-windows-7-theme-for-windows-10/. Never tried it myself, though. And it will be applied to all applications, not just for the one you are writing at the moment.

It is the philosophy of the LCL to create applications based on the native widgetsets of the operating system so that they look exactly like any other native applications for the OS. If you don't like that you must switch to non-LCL controls, such as BGRAControls (good) or CustomDrawn (incomplete) or others. However, be aware that leaving the standard interface forces the user to like your interface. If he does not your application will have a short life-time on his disk.

You cannot change the color and sometimes the font of many themed controls. The object inspector contains a page "Restrictions" to tell you which restrictions exist for the various widgetsets in setting properties. The page appears a bit confusing to me, sometimes the "Restriction Browser" in menu "View" is clearer. But in general, forget about setting colors as you like. That's the price for having a common look and feel. Or - as I said - use non-LCL controls.

AL

  • Sr. Member
  • ****
  • Posts: 261
Re: Ugly interface in Windows 10
« Reply #10 on: December 04, 2019, 04:00:07 am »
Thank you all, this is good info!
I have reworked my controls to use clBtnFace and clBtnText, Parent color, etc
Change the button font for Arial which seems a bit better.
Still I do not like it much, but it is better now.
Also played with Windows color setup (which could be more intuitive).
May be it is my screen, I bought a new computer but kept my old Dell screen which had HDMI input.
Well may be I will get used to it.

Laz 3.1, fpc 3.2.2, Win10
Laz 3.1  fpc 3.2.2, MacOS Monterey running on VMWare/Win 10
Laz 3.1  fpc 3.2.2 Ubuntu 20.04

 

TinyPortal © 2005-2018