Commit Graph

6488 Commits

Author SHA1 Message Date
Benjamin Nauck
86eea6af0f Merge pull request #20668 from kadet1090/stylesheet-params
Gui: Add Style Parameter Manager to contain theme parameters
2025-07-07 02:58:36 +02:00
Kacper Donat
dffdfb1a3b Gui: Fix too small link icon on high dpi (#22359)
* Gui: Fix too small link icon on high dpi

* Gui: suppress warning in ViewProvideLink.cpp

---------

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-07-06 22:37:34 +00:00
Kacper Donat
a32594faea Gui: Add ThemeTokenManager class to contain theme parameters
This class aims to implement Design Token idea into FreeCAD themes. It
allows themes to use generic variables with generic values so we could
use one qss theme and change the style based on values from preference
packs.
2025-07-07 00:07:31 +02:00
Kacper Donat
3d3d3ad6d2 Merge pull request #22138 from chennes/compilerWarningCleanup20250622
Compiler warning cleanup
2025-07-06 16:32:08 +02:00
Kacper Donat
38ec685f2d CAM: Fix origin indicator for Job
This commit fixes how origin (coordinate system) indicator looks. Before
it showed as disc, and now it shows as point which is more approperiate
given the context.
2025-07-05 18:46:01 +02:00
FEA-eng
f958555ea9 Core: Update DlgSettingsLightSources.ui 2025-07-03 02:43:12 -05:00
Samuel Abels
b417c5e180 Avoid triggering circular imports by using traceback instead of inspect 2025-06-30 21:30:34 +02:00
Bas Ruigrok
60aa5ff373 Inform Coin to use EGL when on Wayland (#21917)
* Inform Coin to use EGL when on Wayland

* Only check for Wayland on Linux and BSD
2025-06-30 11:12:02 -05:00
mosfet80
b25c54baee Clean EditableDatumLabel.cpp
removed unused variable
2025-06-28 19:05:06 -05:00
Chris Hennes
f0a44b9e8b Gui: Selectively disable MSVC 4251 warning
This warning is not relevant to our project in this instance. We are not concerned about ABI-compatibility of DLLs since they are all compiled at the same time when building FreeCAD.
2025-06-28 18:58:32 -05:00
Kacper Donat
cd1e5b2b33 Merge pull request #22150 from Rexbas/remove-camera-adjust-method
Remove Command::adjustCameraPosition()
2025-06-25 13:11:00 +02:00
Kacper Donat
69a60a1b08 Gui: Use no_except=true for getExtensionByType in ViewProviderDragger
Fixes: #22166
2025-06-25 12:54:11 +02:00
Kacper Donat
96b006a2dd Spreadsheet Fix '=' regression in spreadsheets (#22146)
* Tools: Add ExpressionLineEdit to QtDesigner plugin

* Spreadsheet: Only use validator when when prefix is not '='

---------

Co-authored-by: wmayer <wmayer@freecad.org>
2025-06-23 22:20:25 +02:00
Benjamin Nauck
a1636cbc27 Merge pull request #21943 from tetektoza/fix/21927_change_enter_ovp_accepting_dim
Sketcher: Change enter behavior on OVP to put OVP in lock state only
2025-06-23 21:18:41 +02:00
Kacper Donat
1f82156948 Gui: Fix wildcard call disconnects warnings Qt6.9 (#22096)
* Gui: Fix wildcard call disconnects warnings Qt6.9

* Gui: Fix typo

---------

Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-06-23 17:42:03 +00:00
tiagomscardoso
5dc523ec27 Gui: prevent hover tooltip from covering menu items (#22019)
* fix #21330: prevent hover tooltip from covering menu items
Instead of showing the tooltip at the mouse cursor,
it is now displayed to the right of the corresponding
menu option, avoiding overlap with the menu itself.

* Update src/Gui/Action.cpp

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
2025-06-23 17:40:16 +00:00
Bas Ruigrok
7fa89f965a Gui: Remove adjustCameraPosition() 2025-06-23 19:29:11 +02:00
tetektoza
75017b2dd2 Sketcher: Make TAB clear the field if user hasn't valid input 2025-06-23 19:25:57 +02:00
mosfet80
63793532f2 fix unused variable
remove unused parameter ‘method’
2025-06-23 18:12:01 +02:00
Benjamin Nauck
4fcb871b5b Spreadsheet: Only use validator when when prefix is not '=' 2025-06-23 16:14:35 +02:00
Kacper Donat
d35b638039 Gui: Use proper placement property for Link
Links require different placement property (LinkPlacement) to be used,
otherwise it breaks the transform.

Fixes: #20776
2025-06-22 23:04:06 -05:00
xtemp09
65f737e859 [GUI] Remove dark fringe around letters (#21536)
Closes #12394

Co-authored-by: Kacper Donat <kacper@kadet.net>
2025-06-22 21:24:51 -05:00
tetektoza
74919b4b81 Core: Use bypass WM hint for X11 for search list in preferences 2025-06-23 01:24:50 +02:00
tetektoza
2bd637206e Core: Handle globalPos for both Qt6 and Qt5 2025-06-23 01:24:50 +02:00
tetektoza
bd231ddb00 Core: Correct font sizes to be smaller in search box in preferences 2025-06-23 01:24:50 +02:00
tetektoza
68464393b9 Core: Remove displayText field from search box's result
Removes displayText from the searchboxes result, as it's being handled
differently and there are two other fields that store this previously
concatenated information separately.
2025-06-23 01:24:50 +02:00
tetektoza
2c5aa541e9 Core: Move reusable parts of MixedFontDelegate to separate functions
Co-Authored-By: Kacper Donat <kacper@kadet.net>
2025-06-23 01:24:50 +02:00
tetektoza
d06651e92c Core: Use separate roles for found item in font delegate for search 2025-06-23 01:15:27 +02:00
tetektoza
53bd5a2ab7 Core: Use designated init for SearchResult in preferences 2025-06-23 01:15:27 +02:00
tetektoza
e3dd8ec134 Core: Use an enum for search bar popup in preferences 2025-06-23 01:15:27 +02:00
tetektoza
4c1f2107dd Core: Extract preferences search bar to it's own class 2025-06-23 01:15:27 +02:00
tetektoza
6a024ea4e1 Core: Formatting changes for search in preferences 2025-06-23 01:15:27 +02:00
tetektoza
01729237b2 Core: Introduce searching in Preferences
This PR introduces search box in preferences.
Features:
*supports left click on the result, taking user to the result
*clicking anywhere cancels searching and closes popup box, same with ESC
key
*double click on the result closes the popup too (same behavior as
enter)
*supports enter (although if you are on the position you are already
on it so enter just closes the popup basically)
*escape closes it
*you can navigate through the list with mouse
*support fuzzy search so stuff like "OVP" is being matched to "On-View-Parameters"
*there is hierarchical display (tab/page/setting)
*some of the results are prioritized but fuzzy search prioritizing is the most important
*highlights found item
*goes to tab/page of found item
*if the pop-up box won't fit next to the right side of the screen,
it is added underneath the search box
2025-06-23 01:15:27 +02:00
Chris Hennes
aa0acc944f Gui: Drop name of unused parameter in PropertyBoolItem 2025-06-22 17:40:25 -05:00
Chris Hennes
edca310fd3 Gui: Make narrowing conversion float->int explicit 2025-06-22 17:11:22 -05:00
Chris Hennes
f8ba2f6615 Gui: Mark widget as [[maybe_unused]] 2025-06-22 17:06:51 -05:00
Chris Hennes
951e8baf19 Gui: Implicit capture of this is deprecated 2025-06-22 17:03:55 -05:00
tetektoza
4c8be343b8 Gui: Allow users to add groups to active objects
As the title says, if right now there is Arch type active (like Level,
Building, etc. etc.), then it's not possible to assign Group to it
automatically (it's being created on root level of the document).

So this patch basically takes an active object and tries to insert it.
2025-06-22 23:50:12 +02:00
tetektoza
b3c83df151 Core: Add a possibility to extract active object based on extension 2025-06-22 23:48:52 +02:00
tetektoza
7515c70b67 Sketcher: Make TAB lock the label if user has typed previously 2025-06-21 13:48:12 +02:00
tetektoza
9912c029dc Sketcher: Add QLabel header for newly added locked icon 2025-06-21 12:46:37 +02:00
tetektoza
1f250fab32 Sketcher: Initialize lock icon only once 2025-06-21 12:46:27 +02:00
tetektoza
ef0b259097 Sketcher: Change enter behavior on OVP to put OVP in lock state only
This patch adds/changes a couple of things:
* if you press enter on a label now, it moves you to another label and
  adds the label and lock on the previous label, instead of previous behavior
  where it was accepting whole dimension
* if you press enter and have lock state on both labels then you move to
  next stage
* if you press ctrl+enter it's as is if you'd press enter on both labels
  (the object becomes constrained with whatever dimensions that were in
  both labels)
* tab still works the same way
* you can remove "Lock" state from the label by typing something
  additional or removing the dimension at all
2025-06-21 12:46:27 +02:00
Benjamin Nauck
f576abd78d Gui: Use middle elide for text in model tree 2025-06-20 22:37:37 +02:00
Max Wilfinger
3c1e197115 Gui: Add toggle overlay icons 2025-06-20 22:36:40 +02:00
Benjamin Nauck
889d708992 Merge pull request #22025 from tetektoza/sketcher_regression_1 2025-06-20 19:21:14 +02:00
tetektoza
deff562dee Sketcher: Handle additional characters for OVP in regexp
Co-authored-by: Benjamin Nauck <benjamin@nauck.se>
2025-06-20 00:33:48 +02:00
Alfredo Monclus
e45cf96afb Gui: Tasks: fix in place close and ok buttons 2025-06-19 18:42:24 +02:00
Kris
0090566724 Gui: Move Submenu Commands in Tool Menu (#20864)
* Moved tools submenu commands and title case

* Apply suggestions from code review

Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>

---------

Co-authored-by: Kacper Donat <kadet1090@gmail.com>
Co-authored-by: Max Wilfinger <6246609+maxwxyz@users.noreply.github.com>
2025-06-19 08:33:36 +02:00
tetektoza
301b201c6d Gui: Change ordering of names in Link property
As the title says, currently it is:
ObjName (Label), this patch changes it to Label (ObjName) to be more
user friendly.
2025-06-18 23:38:52 +02:00