[ Fixed with PR7292 ] [ Issue #6102 ] Is there a default stylesheet for Windows?

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

[ Fixed with PR7292 ] [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Roy_043 »

Is there a default stylesheet, as a separate, file for Windows? This reason was given for closing Issue #6102. But AFAICT this file does not exist.

https://github.com/FreeCAD/FreeCAD/issues/6102
Last edited by Roy_043 on Mon Aug 01, 2022 2:25 pm, edited 1 time in total.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Jee-Bee »

As far as i know are stylesheet's not system depended. So the default stylesheet for windows is the default stylesheet of FC.
Only thing i'm not sure of is that it is possible that QT have system depended drop down menu's etc...
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by onekk »

A quick search is giving not more advices on stylesheet on windows, but in:

https://forum.qt.io/topic/78482/windows ... yle-for-qt

There is a discussion about this topic on the qt forum, see if it could help.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by adrianinsaval »

IIRC that stuff is set in code, technically it is a qt stylesheet but it is not stored as a standalone qss file. Tbh I don't understand the bug report, how do you expect proper styling if you remove the used style dll?
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Roy_043 »

The image in this comment clarifies the problem:
https://github.com/FreeCAD/FreeCAD/issu ... 1100674245

The frames (f.e. around "Viewing mode") are invisible if qwindowsvistastyle.dll is available.

So the goal is to have the 'modern' styling of the dll, but with clearly visible frames.

@uwestoehr can you reopen the issue please?
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Jee-Bee »

Here they are
Screenshot 2022-07-26 at 110929.png
Screenshot 2022-07-26 at 110929.png (221.3 KiB) Viewed 650 times
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Roy_043 »

Jee-Bee wrote: Tue Jul 26, 2022 9:15 amHere they are
You have misunderstood the issue. None of the stylesheets in that folder are used as the default stylesheet.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Jee-Bee »

No this has nothing to do with misunderstanding.
This are the default FC stylesheets. FC don't have any other, what basically means FC use the default stylesheet of the operating system it is working on.
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by Roy_043 »

These stylesheets come with FreeCAD, but, OOTB, FreeCAD relies on a built-in, hard-coded stylesheet (the "No style sheet" option in the preferences).
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: [ Issue #6102 ] Is there a default stylesheet for Windows?

Post by adrianinsaval »

Ok I get it now, it would probably been less confusing if your example to showcase the borders was just a regular stylesheet rather than renaming a dll. I agree the issue should be reopen, the actual issue is that the default windows styling is crap, I believe it is not the broders that get styled by freecad but rather the background and IIRC that is done in the task panel code, possibly inside and if windows block, if not then this is just qt's default style for windows. If you happen to find and edit that please ge rid of the god awful gradient too while you're at it :)

edit: after reading it actually I agree with uwe's take, better to create a new issue since the dll stuff has nothing to do and it's jut confusing.
Post Reply