1
0
Fork 0
Commit Graph

1075 Commits

Author SHA1 Message Date
Thaddeus Crews 2c1ad5b07a
Merge pull request #109031 from bruvzg/tab_spacing
Include `SPACING_SPACE` in tab stops calculation.
2025-09-19 09:17:00 -05:00
Pāvels Nadtočajevs 7368d148c1
[TextEdit] Fix text edit font update order. 2025-09-02 08:51:18 +03:00
aaronp64 019f4ab403 Update TextEdit to use center alignment for inline objects
Updated to use center alignment instead of top to avoid shifting the line of text up when adding an object.
2025-08-20 17:19:58 -04:00
Pāvels Nadtočajevs d13b5361b4
[TextServer] Fix caret hit test rounding. 2025-08-08 11:06:07 +03:00
Pāvels Nadtočajevs 3f757c41fc
Update access-kit to 0.17.0 2025-07-29 08:37:01 +03:00
Pāvels Nadtočajevs 2409956297
Include `SPACING_SPACE` into tab stops calculation. 2025-07-27 21:26:36 +03:00
kit addae393a4 Fix TextEdit line wrap indent when disabled 2025-07-22 22:29:05 -04:00
Pāvels Nadtočajevs 8624134c89
[TextEdit] Draw guidelines under the text and caret. 2025-07-14 16:31:35 +03:00
kit 927208a92e Fix ScriptEditor line number in color objects 2025-07-09 16:18:57 -04:00
Thaddeus Crews d4fa7e15ed
Merge pull request #106919 from kitbdev/fix-codeedit-hover-word-lookup
Fix CodeEdit hover word lookup
2025-06-18 18:13:43 -05:00
Marwen Azouzi 76d782d291
Fix IME window position not taking into account window transform 2025-06-11 17:43:21 +02:00
Michael Alexsander 454e4f817c
Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
kit ebf71cd4f3 Fix CodeEdit hover word lookup 2025-05-28 18:35:15 -04:00
Thaddeus Crews da9fb81e1f
Merge pull request #89556 from smntic/single-char
Fix words not being selected by endpoints
2025-05-15 14:53:24 -05:00
Thaddeus Crews 8b4dd7a34e
Merge pull request #105724 from dugramen/recovery/split-commit
Add inline color pickers to script editor
2025-05-14 09:44:16 -05:00
Lukas Tenbrink 581e899785 Refactor `TextEdit::search` to be more robust to failure. 2025-05-14 10:16:42 +02:00
dugramen b9f59ae6ca Add color pickers to script editor 2025-05-13 18:03:21 -04:00
Thaddeus Crews cc5857728d
Merge pull request #106114 from m4gr3d/disable_auto_keyboard_popup
Add property to control showing the virtual keyboard on focus events
2025-05-06 08:37:40 -05:00
Fredia Huya-Kouadio f29feac7a5 Add a `LineEdit` / `TextEdit` property to control whether the virtual keyboard should show on focus 2025-05-05 22:01:34 -04:00
Danil Alexeev 413cb795cd
Move `alt_code_oem437` and `alt_code_cp1252` to separate header file 2025-05-03 11:52:49 +03:00
lawnjelly f8f350a32a Add `GLOBAL_GET` cached macros.
GLOBAL_GET is an expensive operation which should not be used each frame / tick.
This PR adds macros which do a cheaper revision check, and only call the expensive GLOBAL_GET when project settings have changed.

Co-authored-by: Lukas Tenbrink <lukas.tenbrink@gmail.com>
2025-04-30 15:08:50 +01:00
Thaddeus Crews fc1ffeb5e0
Merge pull request #105870 from bruvzg/te_margin_round
[TextEdit] Fix margin rounding at sub 100% scale.
2025-04-28 14:10:52 -05:00
Pāvels Nadtočajevs 1794098b47
[TextEdit] Fix margin rounding at sub 100% scale. 2025-04-28 17:22:58 +03:00
Pāvels Nadtočajevs fb99c01381
[TextEdit] Fix caret cut of in RTL layout, account for wrapped line indents in accessibility updates. 2025-04-28 11:22:33 +03:00
Thaddeus Crews 3947cbe3b2
Merge pull request #104386 from Repiteo/core/cpp-math
Core: Replace C math headers with C++ equivalents
2025-04-27 19:21:22 -05:00
Thaddeus Crews d9122205ec
Merge pull request #105656 from Koyper/fix_line_edit_text_edit_composite_character_backspace_delete
[LineEdit/TextEdit] Add composite character backspace delete and get composite character positions
2025-04-24 09:09:30 -05:00
Koyper b668f45fd0 Fix LineEdit and TextEdit composite character backspace delete. 2025-04-23 15:14:09 -05:00
Pāvels Nadtočajevs 5b49fd4207
Selectively apply `FOCUS_ACCESSIBILITY` to the `Label`s instead of setting it by default. 2025-04-23 12:47:31 +03:00
Thaddeus Crews ad40939b6f
Core: Replace C math headers with C++ equivalents
- Minor restructuring to ensure `math_funcs.h` is the central point for math functions
2025-04-16 15:49:02 -05:00
Jayden Sipe 292119dd68 Fix smooth scrolling tied to physics process 2025-04-11 17:14:25 -04:00
Thaddeus Crews 717df3ee88
Merge pull request #105249 from Repiteo/core/math-defs-namespace
Core: Use `Math` namespace for constants
2025-04-11 09:51:04 -05:00
Thaddeus Crews 94282d88f9
Core: Use `Math` namespace for constants 2025-04-10 16:29:30 -05:00
bruvzg aa0ade5b49
[TextEdit / LineEdit] Add support for OEM Alt codes input. 2025-04-10 08:52:19 +03:00
Pāvels Nadtočajevs b106dfd4f9
Base accessibility API. 2025-04-08 20:14:28 +03:00
Thaddeus Crews 9bbda47794
Merge pull request #104776 from BrotherShort/TextEdit-VScroll-max-tolerance
Fix TextEdit VScroll max tolerance
2025-04-03 16:50:14 -05:00
BrotherShort 1077fdb15a fix TextEdit VScroll max tolerance
newline

Co-Authored-By: Kit Bishop <kitbdev@gmail.com>
2025-04-03 21:22:57 +08:00
Yufeng Ying 4f4031a675 Replace size() == 0 with is_empty(). 2025-04-02 19:18:43 +08:00
kobewi 10f6c01b9c Remove ABS in favor of Math::abs 2025-03-19 13:52:40 +01:00
Pāvels Nadtočajevs 2fb5059c63
[TextEdit] Use actual indentation offset instead of space width for wrapped lines. 2025-03-19 12:50:43 +02:00
Rémi Verschelde cbb1e0ef7a
Merge pull request #103653 from dugramen/popup_respect_scale
Apply transforms for LineEdit, RichTextLabel, and TextEdit popup positions
2025-03-12 22:56:58 +01:00
A Thousand Ships 331a43a9d8
Add `String::remove_char(s)` methods for performance and convenience 2025-03-10 13:19:28 +01:00
dugramen ad812cf29d Apply transform for LineEdit, RichTextLabel, and TextEdit popup positions 2025-03-08 17:57:44 -05:00
Thaddeus Crews 3c43508ed7
Merge pull request #102427 from AThousandShips/fix_substr
Clean up some uses of `String::substr`
2025-03-07 15:12:33 -06:00
kobewi 92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
A Thousand Ships 5113022dfe
Clean up some uses of `String::substr`
Cases where the end position is either equvalent to the default or past
the end of the string.
2025-03-07 14:50:38 +01:00
Thaddeus Crews 77231d81b4
Merge pull request #102514 from bruvzg/ts_wrp_indent
[TextEdit] Improve wrapped line indent handling.
2025-03-05 12:07:52 -06:00
Rémi Verschelde 4ca2449470
Merge pull request #103410 from kitbdev/fix-te-adjust-viewport-scroll
Fix TextEdit scrolls wrong on text selection
2025-03-04 01:02:19 +01:00
WinnerWind 6cb04c4984 Fix evaluation of line_background_color in minimap
Fixes #102844 by evaluating the line_background_color in a smarter way.

The previous check would cause black bars appearing when a background_color was set in the theme of a TextEdit or CodeEdit. This tackles that issue, by checking if line_background_color is set at all, and does not set alpha if no color is set.
2025-03-02 15:22:48 +05:30
kit b7a8138907 Fix TextEdit scrolls wrong on text selection 2025-02-28 13:19:46 -05:00
Pāvels Nadtočajevs 84a2e3fdb0 [IME] Do not redraw and move caret on IME update w/o text/position changes. 2025-02-20 08:23:50 +02:00