Commit Graph

5665 Commits

Author SHA1 Message Date
xtemp09
ebf02483af Reimplementation of Light source dialog (#15877)
* Reimplementation of Light source dialog

Closes #15793.

* Gui: Remove redundant void arguments

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2024-08-22 18:58:14 -05:00
Chris Hennes
8913b84f60 Gui: Correct repeated extension
Fixes #15908
2024-08-19 12:30:52 -04:00
Nino Annighoefer
20549cacd2 Use portable text to set shortcut
At least on macOS, it seems that setting nontrivial shortcuts only works
when the shortcut is converted to `PortableText`, rather than
`NativeText`.

Before, it was impossible to map, eg, the backspace key or CMD-T to an
action. Now this appears to work.
2024-08-18 14:14:35 -05:00
Chris Hennes
ff1409d8bf MacOS: Modify OS detection macro (#15924)
* Fixes #15904
* MacOS: Always use Q_OS_MACOS to detect MacOS because the Conda builds do not define Q_OS_APPLE
2024-08-18 08:29:40 -05:00
MisterMaker
103ab1e28e Stylesheet fixes-part VI: The return of the comma (#15806)
This should fix a bunch of issues, like the white arrows the blue select background. @maxwxyz
2024-08-12 11:58:19 -04:00
Pieter Hijma
7c584433e7 Gui: Fix #15203 filename extension export 2024-08-12 11:52:48 -04:00
Pieter Hijma
8534affff0 Core: Fix adding VarSet props with existing prefix 2024-08-12 11:44:24 -04:00
Syres916
69dac76a3f [Gui] Remove the disabling of CornerCoordinateSystem 2024-08-12 11:42:51 -04:00
Syres916
2995e6aeb7 [Gui] Ensure FreeCAD Classic theme is properly reset...
... but doesn't click Done and so when Preferences>General is opened the Theme displayed in the combobox is always FreeCAD Classic
2024-08-12 11:42:51 -04:00
Max
f79a230db1 Change default to not include the icon file to the file thumbnail on save.
Windows renders the application image on top so it appears twice.
Update example file thumbnails on start page to have a consistent background (classic theme) and remove the old FreeCAD logos.
2024-08-12 11:37:38 -04:00
Syres916
970dc4710d [Gui] Overlay hide mode improve contrast in both themes... 2024-08-12 11:37:06 -04:00
Chris Hennes
e52ef2a525 GUI: Update MacOS detection macros
For GUI-specific things use Q_OS_MACOS, and for other things use
Q_OS_APPLE.
2024-08-12 11:34:39 -04:00
luzpaz
b5281158f3 Fix various typos 2024-08-11 12:09:27 -04:00
Chris Hennes
362cf1c80e Gui: Fix crash in DlgSettingsLightSources
Fixes #13357
2024-08-08 21:34:28 -04:00
MisterMaker
7db8e118b7 Stylesheet-fixes V: The final frontier (#15742) 2024-08-05 11:07:49 -05:00
bgbsww
441fbdd064 Add a command line option to keep application open after running tests 2024-08-05 10:47:59 -05:00
xtemp09
abb362f83a Fix the crash involving context menu
Closes #13637.
2024-08-05 11:43:56 -04:00
Yorik van Havre
aad060c0f0 Translations (#15689)
* Updated ts files

* Merged crowdin translations

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-05 10:42:18 -05:00
Chris Hennes
ef7cbac494 Merge pull request #15588 from cjmayo/ThemeSearchPaths
Remove icon ThemeSearchPaths option on Linux
2024-08-05 10:41:41 -05:00
MisterMaker
c4bb689a85 Stylesheet fixes part IV - A new hope (to be done for 1.0) (#15586)
* Qcolor dialog fixes

* Fix for white hoover on tabbar

* Changes active color and selected feature color

* update same colors in cfg

* fix for tab pan in material editor

* some fixes

mostly theme accent colors fixes.

* fixed text edit being cut off

https://github.com/FreeCAD/FreeCAD/issues/15603

* extend arrow fix

https://github.com/FreeCAD/FreeCAD/issues/15616

* checkboxes links qpushbuttons etc.

Fixed https://github.com/FreeCAD/FreeCAD/issues/15610#event-13642470770
and hopefully also
https://github.com/FreeCAD/FreeCAD/issues/15136#issuecomment-2254156398

* fixed selection-text color in the preference menu also White is white.

* forgot checkbox spacing for light

* colors update

fix for https://github.com/FreeCAD/FreeCAD/issues/15660#event-13670498420
and
https://github.com/FreeCAD/FreeCAD/issues/15620#issuecomment-2251144435

* Delete CMakeSettings.json

* get out of here

* title a tat higher

* change rubberband from white to blue to make it work with white background.

* setting the colors.

* tree colors
2024-07-29 17:31:17 -05:00
Chris Hennes
fe702349e8 Merge pull request #15652 from kadet1090/ui-fixes
Gui: Cosmetic Fixes
2024-07-29 11:26:58 -05:00
wmayer
bb66eeb819 Gui: Fix Gui.Control.showModelView() 2024-07-29 11:06:42 -05:00
David Carter
695fc55c6e Materials: Reset per face when using property editor
In v0.21 changin the color using the propert editor reset the per face
colors. This recreates that behavior when settin the appearance.

fixes #15170
2024-07-29 10:56:29 -05:00
Chris Hennes
9d70d0d2ed Merge pull request #15622 from Syres916/Fix_Display_UI_File
[Gui] Syncronise preferences page Display > UI with default settings
2024-07-29 10:55:01 -05:00
Ladislav Michl
d3bb2068d9 Gui: Buggy Wayland custom cursors workaround
Until Qt v6.6 displaying custom cursors on Wayland is broken,
so add a workaround. See also QTBUG-95434.
2024-07-29 10:51:46 -05:00
Chris Hennes
336a581942 Merge pull request #15451 from Ondsel-Development/fix-single-instance-windows
Core: Fix single instance windows
2024-07-29 10:42:47 -05:00
Kacper Donat
d927cfc438 Gui: Remove unnecessary minimumSizes from Preferences
QT treats setting minimum size very seriously - it applies even if
the size required by the control is smaller than specified resulting in
rendering too small controls.
2024-07-28 00:00:09 +02:00
Kacper Donat
58e7b4ec99 Gui: Remove unnecessary scrollbars from Preferences 2024-07-28 00:00:03 +02:00
Kacper Donat
5326173c5f Gui: Trim tree view column only if one column 2024-07-27 20:29:42 +02:00
Kacper Donat
b3f3b12292 Gui: Fix minor preference pages issues 2024-07-27 20:29:38 +02:00
Chris Mayo
598fa20b03 Copy current icon theme name to the fallback on startup 2024-07-25 19:21:25 +01:00
wmayer
8de6e5e8a8 Qt6: Fix MinGW build 2024-07-25 20:09:06 +02:00
Syres916
d0d414057c [Gui] Add missing checked property 2024-07-25 18:50:46 +01:00
Syres916
acdc6036f9 [Gui] Correct checkbox checked states 2024-07-25 15:04:04 +01:00
Chris Mayo
ff168e345f Remove icon ThemeSearchPaths option on Linux
ThemeSearchPaths option was originally introduced in:
c420de0f9b ("Option to opt-out from using a Linux desktop icon theme.", 2020-01-26)

It was set on by default in:
dc6456caf9 ("Gui: Use FreeCAD supplied icons on Linux by default", 2024-06-26)

The key effect of the option is to select the FreeCAD-default icon theme.
The code also unnecessarily resets QIcon::themeSearchPaths,
":\icons" is always included in the default search paths [1],
when when using QAdwaitaDecorations causes window frame control icons
not to be displayed:

  (qt.qpa.qadwaitadecorations) Failed to find an svg icon for  "window-close-symbolic.svg"
  (qt.qpa.qadwaitadecorations) Failed to find an svg icon for  "window-minimize-symbolic.svg"
  (qt.qpa.qadwaitadecorations) Failed to find an svg icon for  "window-maximize-symbolic.svg"
  (qt.qpa.qadwaitadecorations) Failed to find an svg icon for  "window-restore-symbolic.svg"

A different default icon theme can still be chosen with the Name option.

[1] https://doc.qt.io/qt-6/qicon.html#themeSearchPaths
2024-07-23 19:26:14 +01:00
luzpaz
a71f49f4f6 Fix trailing newlines and minor typo fixes 2024-07-23 16:16:30 +02:00
Syres916
4beef5e0d8 [Gui] Overlay set hide in non 3D view to be true/checked 2024-07-22 11:13:11 -05:00
MisterMaker
9c6663c924 Stylesheet fixes part trois. (#15471)
* fixes Qtoolbox for Freecad CAM

https://github.com/FreeCAD/FreeCAD/issues/14745#issuecomment-2231031485

* Removed offset because of Linux issues.

* fix for to dark cells in propetties panel

* fixed constrain colors in sketcher and arros tabbar.

* tabbar fixes

* This fixes the checkered scrollbar issue

* This fixes the spinbox arrow which had a gap.

* misses somethings in the overlay stylesheets.

* typos

* fixed some overlay issues

* update sketch uncontrained colors

* trying to fix the arrow size

* fixes for treeview

* Update Light Theme + Dark Background.qss

fix for edit text field

* updated checkmarks names and scaled them down.

* Update FreeCAD Dark.qss

oopsie wrong color

* Update icons classic.svg

icons files for the icons

* fix for table edit
2024-07-22 11:12:21 -05:00
wmayer
9c236af83f PD: Fix crash when pressing ESC on chamfer/fillet dialog 2024-07-22 10:53:31 -05:00
Pieter Hijma
692d4526e8 Fix a compatibility issue with old Qt 5
Ubuntu 20.04 uses a currently deprecated API requiring this change.
2024-07-22 17:40:27 +02:00
Pieter Hijma
7b98eac9a0 Core: Improve communication single-instance 2024-07-22 17:39:32 +02:00
Chris Hennes
ac3b5b3c74 Merge pull request #15535 from bgbsww/bgbsww-toponamingSaveRestore3plus
Refactor all elementname pairs into clearer struct names
2024-07-21 11:40:39 -05:00
Yuri D'Elia
41d67f8e10 Gui: Fix Shiboken version detection and compilation error
- Shiboken headers need to be included first to get MAJOR/MINOR version
  flags. Without them the code would still compile, but fail the version
  check a few lines below assuming Shiboken is always older than 5.12
- Fix typo in cast when HAVE_SHIBOKEN_TYPE_FOR_TYPENAME is defined and
  remove the conditional: we have to assume typeForTypeName() always
  results in a valid name, as for the other implementations. There's no
  error handling of any kind in callers.

This fixes the build on debian unstable with shiboken 5.15.
2024-07-21 00:04:37 -05:00
bgbsww
0bddc51805 Refactor all element name pairs into clearer struct names - renames 2024-07-20 16:32:12 -04:00
Chris Hennes
ce4b24029f Merge pull request #15382 from Syres916/Fix_Theme_ComboBox_Lookup
[Gui] Preferences - fix the theme combobox index lookup...
2024-07-16 23:26:47 -05:00
Chris Hennes
a9b29269ec Merge pull request #14970 from kadet1090/use-freecad-icons-by-default
Gui: Use FreeCAD supplied icons by default
2024-07-16 23:21:24 -05:00
Pieter Hijma
44387a793b Core: Add missing Python interpreter locks 2024-07-16 11:57:36 +02:00
Chris Hennes
0278bd8f27 Gui: Add missing include to PCH 2024-07-15 22:35:38 -05:00
Chris Hennes
e186ae9c6f Merge pull request #15376 from wwmayer/issue_15369
Gui: Allow to set MSAA 4x option
2024-07-15 21:06:46 -05:00
MisterMaker
3a32ae9985 Stylesheet fixes (#14749) 2024-07-15 16:26:28 -05:00