1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00
Commit Graph

6004 Commits

Author SHA1 Message Date
WhalesState
2eded468f9 Add ColorPicker cursor background and reuse the cursor for wheel.
Add a cursor's background to fill the picker cursor.
Unhardcode the wheel radius.
Reuse the picker cursor image for the HSV wheel.
2025-01-10 09:55:54 +02:00
Pāvels Nadtočajevs
b252867145 [macOS/Windows] Add Emoji & Symbols context menu item to LineEdit/TextEdit to show system character picker. 2025-01-10 09:25:34 +02:00
Michael Alexsander
5c63646e87 Change print warnings to config ones for popups that need transparency 2025-01-09 15:59:56 -03:00
Rémi Verschelde
2e657bf2ae Merge pull request #101205 from voylin/get_visible_line_count_fix
Fix `get_visible_line_count` in RichTextLabel
2025-01-09 13:50:51 +01:00
Rémi Verschelde
ef9f0aefd0 Merge pull request #101175 from wareya/wrap_perf_fix
Fix large `TextEdit` width resize performance when wrapping disabled
2025-01-09 13:50:46 +01:00
wareya
b8c52f16e2 Fix large LineEdit x resize perf when wrapping disabled 2025-01-08 21:24:49 -05:00
voylin
3e333df623 fix get_visible_lint_count in RichTextLabel 2025-01-09 10:24:52 +09:00
Rémi Verschelde
8e0f498400 Merge pull request #101266 from WhalesState/color-picking-fix
Fix color picking on Linux/X11.
2025-01-09 00:42:22 +01:00
Rémi Verschelde
bfa351cb44 Merge pull request #101246 from wlsnmrk/dropdown-fix
Fix menus and dropdowns requiring two clicks
2025-01-08 18:20:07 +01:00
Mark Wilson
5fad891759 Fix menus and dropdowns requiring two clicks
Fixes some editor menus and option buttons requiring two clicks to open
by checking status.pressed_down_with_focus separately from other press
status flags. Makes all pressed statuses consistent on toggle buttons
with ACTION_MODE_BUTTON_PRESSED.
2025-01-08 10:07:37 -05:00
Aarni Koskela
f134769506 Fix various typos
* Add TODO notes for typos that should be fixed for 5.0

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2025-01-08 14:47:42 +02:00
Markus Sauermann
2a72f78427 Fix __focus_rect meta access when resizing Tree
`NOTIFICATION_RESIZED` outputs errors, if `select_mode == SELECT_ROW`.
This PR unifies the access to the item focus rect.
2025-01-08 10:53:46 +01:00
WhalesState
989161e117 Fix color picking on linux. 2025-01-08 10:32:25 +02:00
Rémi Verschelde
07093c4a34 Merge pull request #100275 from KoBeWi/highest_level_clearance
Don't emit `text_changed` signal when clearing empty LineEdit
2025-01-07 23:17:13 +01:00
Rémi Verschelde
b194e050d7 Merge pull request #91333 from YeldhamDev/working_on_this_felt_like_constantly_walking_into_rakes
Make `PopupMenu/Panel` shadows properly visible again
2025-01-07 23:17:02 +01:00
bruvzg
cc1db569e1 [TextServer] Improve embedded objects handling performance. 2025-01-07 08:01:29 +02:00
Rémi Verschelde
8c78540d47 Merge pull request #100931 from beicause/color-picker-hue-accuracy-okhsl
ColorPicker: Improve the accuracy of hue slider in OKHSL mode
2025-01-06 22:48:01 +01:00
Rémi Verschelde
c1f65b429d Merge pull request #100329 from eviltrout/add-custom-line-offset
Add `get_selection_line_offset` to `RichTextLabel`
2025-01-06 22:47:33 +01:00
Rémi Verschelde
11f95e7feb Merge pull request #99350 from bruvzg/fs_mime
Support MIME types in file dialog filters on macOS and Linux.
2025-01-06 22:46:59 +01:00
Rémi Verschelde
f99a465956 Merge pull request #81532 from wlsnmrk/button-focus-loss-event-fix
Fix `button_up` and `button_down` signals with focus changes or multiple inputs
2025-01-06 22:46:26 +01:00
havi05
ab5176dfa5 Tree - fix cusor selection in multi selection-mode 2025-01-05 22:23:51 +01:00
HP van Braam
32ef7306f4 Handle changing ItemLists from signals
We make sure we don't touch the ItemList's items array after signals are
emitted as a signal handler might change the item list, causing the
index we had to be invalid.

This fixes #100663
2025-01-05 02:10:28 +01:00
Pāvels Nadtočajevs
e1f129cb52 Support MIME types in file dialog filters on macOS and Linux. 2025-01-04 22:05:35 +02:00
LuoZhihao
9eeeadb037 ColorPicker: Improve the accuracy of hue slider in OKHSL mode 2025-01-04 21:36:27 +08:00
Rémi Verschelde
32b081b2ff Merge pull request #101005 from Sauermann/fix-graph-node-crash
Fix nullptr crash with freed `GraphNode` in GraphEditArranger
2025-01-03 00:50:02 +01:00
Rémi Verschelde
2f4cb705c3 Merge pull request #100930 from beicause/fix-color-picker-cursor-position-in-okhsl
ColorPicker: Fix cursor position in OKHSL wheel
2025-01-03 00:49:37 +01:00
Rémi Verschelde
703552c51b Merge pull request #100240 from WhalesState/line-edit-focus
`LineEdit` add member `keep_editing_on_text_submit`
2025-01-03 00:48:34 +01:00
Mounir Tohami
e89c196a80 LineEdit add member keep_editing_on_text_submit.
Allow users to exit edit mode when Enter is pressed.
2025-01-02 23:41:27 +02:00
Markus Sauermann
54373160df Fix Crash with GraphNode
When using `queue_free()` on GraphNodes, `p_from` can become `nullprt`.
This PR adds a check to prevent crashes in these situations.
2025-01-01 22:20:57 +01:00
LuoZhihao
47db9c0405 ColorPicker: Fix cursor position in OKHSL wheel 2024-12-30 22:25:20 +08:00
Lars Pettersson
3c1ac98f37 Allow overriding SpinBox value on focus_exited 2024-12-27 22:12:57 +01:00
A Thousand Ships
a1846b27ea Improve use of Ref.is_null/valid
Use `is_null` over `!is_valid` and vice versa.
2024-12-23 16:35:02 -05:00
Thaddeus Crews
98c3138804 Merge pull request #92717 from KoBeWi/twisted_frying_pan
Add warped panning to every ViewPanner instance
2024-12-23 11:15:16 -06:00
Yufeng Ying
73d85f46c9 Remove unused headers in scene.
Co-authored-by: Thaddeus Crews <repiteo@outlook.com>

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2024-12-24 00:40:09 +08:00
Rémi Verschelde
a7a2a12bfd Merge pull request #100671 from bruvzg/get_menu
[MenuBar] Use PopupMenu title property as a menu name.
2024-12-20 23:57:47 +01:00
Rémi Verschelde
8a743f23e6 Merge pull request #98385 from RandomShaper/thread_yield
Rationalize busy waits
2024-12-20 23:56:39 +01:00
Pāvels Nadtočajevs
9604e98a52 [MenuBar] Use PopupMenu title property as a menu name. 2024-12-20 23:35:07 +02:00
kobewi
9a96393f46 Add warped panning to every ViewPanner instance 2024-12-20 17:40:27 +01:00
Thaddeus Crews
ddf6e9e3eb Merge pull request #100595 from bruvzg/win_drv_letter
[Windows, FileDialog] Prepend drive letter to the absolute paths without drive letter.
2024-12-19 20:00:15 -06:00
Thaddeus Crews
075567a5b3 Merge pull request #100456 from Sauermann/proposal-hovered-connection-highlight
Highlight hovered `GraphEdit` connection by widening the line
2024-12-19 20:00:08 -06:00
Thaddeus Crews
cbfc34d279 Merge pull request #100444 from Sauermann/fix-view-panner-mouse-warp
Fix `ViewPanner` panning-mouse-warp
2024-12-19 20:00:01 -06:00
Markus Sauermann
0a875ab3bb Highlight hovered GraphEdit connection by widening the line
This change causes the connections to be additionally highlighted by
widening the line with a configurable factor.
2024-12-20 00:55:35 +01:00
Markus Sauermann
4887172a59 Fix ViewPanner panning mouse warp
Currently the mouse cursor jumps in unexpected ways, when a `ViewPanner`
is used in SubViewports or embedded Windows.

This is caused by providing wrong coordinate systems to
Input::warp_mouse_motion.

This PR replaces the use of `Input::warp_mouse_motion` with
`Viewport::wrap_mouse_in_rect` and makes sure, that the correct
coordinate systems are used.

This change makes it necessary, that all classes, that currently
use ViewPanner, need to provide the correct Viewport to ViewPanner.
2024-12-20 00:28:49 +01:00
bruvzg
b9a00feb66 [Windows, FileDialog] Prepend drive letter to the absolute paths without drive letter. 2024-12-19 09:47:46 +02:00
Rémi Verschelde
e69a5618c0 Merge pull request #100494 from havi05/bbcode-rainbow-effect
Fix `RichTextLabel` bbcode rainbow play reversed and paused
2024-12-18 17:23:36 +01:00
Rémi Verschelde
ed51ec999c Merge pull request #100451 from larspet/update-syntax-highlight
Clear syntax highlighter cache when theme or syntax highlighter is changed
2024-12-17 16:19:37 +01:00
Rémi Verschelde
b69a28a613 Merge pull request #100429 from havi05/itemlist-draw-focus-syle-last
`Itemlist` draw focus stylebox after items
2024-12-17 16:19:25 +01:00
Rémi Verschelde
98ca63ae47 Merge pull request #99849 from Sauermann/fix-menu-button-hover
Fix `switch_on_hover` for `MenuButton`
2024-12-17 16:19:03 +01:00
Rémi Verschelde
1c94d13e21 Merge pull request #99721 from ryevdokimov/fix-spin-box
Fix removing last digit in spinbox while `update_on_text_changed` is true
2024-12-17 16:18:58 +01:00
havi05
b905014128 Fix RichTextLabel bbcode rainbow play reversed and paused 2024-12-16 23:52:26 +01:00