Commit Graph

4796 Commits

Author SHA1 Message Date
A Thousand Ships a33cf3b6bf Ensure input event is valid in `PopupMenu::activate_item_by_event`
(cherry picked from commit f721b34b4e)
2024-01-23 16:54:02 +01:00
Haoyu Qiu a4912b8a63 Translate TextEdit placeholder
(cherry picked from commit d53529f488)
2024-01-23 16:54:02 +01:00
Brian MacIntosh 04bd9cc06c "Whole Words" search can detect word boundaries inside the search term.
For example, searching for ".func" will now match in "a.func" even with Whole Words enabled.

(cherry picked from commit 676627e1d1)
2024-01-23 16:03:16 +01:00
Yogendra Manawat 2b8dbbccae Fix scrolling popup_menu On keyboard/controller input
(cherry picked from commit a16fdb05ae)
2023-10-24 19:50:22 +02:00
GrammAcc 3c3fad858c AssetLib: Fix long plugin names breaking the UI
The UI was extending past the screen width when loading a page diplaying
a plugin with an especially long title in the asset store plugin.

I implemented a new `EditorAssetLibraryItem::clamp_width` method that
checks that the title text is not longer than the column width minus
some padding and truncates it if it is.

I also noticed that the nav buttons for paginated results were causing the UI to extend past
the screen width on higher editor scales since they were hardcoded to
show ten page buttons if there were enough results. I modified the
pagination slightly to display a dynamic number of nav buttons based on
the editor scale in order to fix this other cause of the same problem.

I had to use the font of the `title`, which is a `LinkButton` in order
to determine the text width, so I added a public getter `get_button_font` to the `LinkButton` class.

(cherry picked from commit d63a88bef1)
2023-10-24 18:17:02 +02:00
BlueCube3310 f220aaa54b Fix TreeItem range slider not working
(cherry picked from commit c759ac0e4f)
2023-10-24 18:17:01 +02:00
Haoyu Qiu b027d000cb Fix OptionButton min size when fit longest item is enabled
(cherry picked from commit 5dd854513e)
2023-10-19 21:45:12 +02:00
Rémi Verschelde aae20e5b10
Fix various typos with codespell
Also includes typo fixes from #79993, #80068, #80276, and #80303.

Co-authored-by: betalars <contact@betalars.de>
Co-authored-by: spaceyjase <429978+spaceyjase@users.noreply.github.com>
Co-authored-by: Swarkin <102416174+Swarkin@users.noreply.github.com>
Co-authored-by: Raul Santos <raulsntos@gmail.com>

(cherry picked from commit faaf27f284)
2023-10-03 20:45:35 +02:00
Michael Alexsander 9bf09194cc Make hovered tabs be drawn with the unselected's width at minimum
(cherry picked from commit decae848a8)
2023-09-27 17:48:41 +02:00
bruvzg 140eb6886f [RTL] Use list iterators for item/paragraph removal.
(cherry picked from commit 88177a5a58)
2023-09-21 15:45:49 +02:00
ajreckof 265fe750a8 Fix CodeEdit completion being very slow in certain cases
(cherry picked from commit 1eb3d99ff7)
2023-09-21 15:44:36 +02:00
Nikola Bunjevac 3b4748f6b5 Fix RichTextLabel character line and paragraph index getters
(cherry picked from commit e2536d0643)
2023-09-21 15:28:23 +02:00
Chia-Hsiang Cheng cdc0e00557 Draw separators before selected style boxes
(cherry picked from commit 749db00227)
2023-09-21 14:57:13 +02:00
Yogendra Manawat a90aac5415 Fix TabContainer's font_hovered_color theme property
(cherry picked from commit d7bf05b490)
2023-09-21 14:09:19 +02:00
Haoyu Qiu 9dfb3ddad5 Fix ItemList not update when icon scale changes
(cherry picked from commit 1bf4c12c0a)
2023-09-21 14:09:19 +02:00
Haoyu Qiu de5a7b3764 Fix Button text when overrun is not trim nothing
(cherry picked from commit 7f70ac56a0)
2023-09-21 14:09:19 +02:00
Markus Sauermann dbae37cc50 Fix global transform validity for `Node2D` and `Control`
Set global transform to invalid when changing transform

(cherry picked from commit 152572ac38)
2023-09-20 22:44:03 +02:00
Danil Alexeev 18f69e9ee1 GUI: Fix text overlapping icon in `Tree`
(cherry picked from commit 07d23489f4)
2023-09-20 22:13:23 +02:00
Danil Alexeev 75db138533 GUI: Fix `Tree` performance regression by using cache
(cherry picked from commit 5fb975e4a5)
2023-09-20 18:40:36 +02:00
Haoyu Qiu 5e7a5cd2b1 Update OptionButton min size when disabling Fit to Longest Item
(cherry picked from commit 5384c1a579)
2023-08-31 20:19:30 +02:00
Haoyu Qiu 71ba2aca63 Fix Button clipping when internal margins exist
(cherry picked from commit 71430cdd48)
2023-08-31 19:48:16 +02:00
Michael Alexsander 3bb05da45f Fix delay on tab resizing when (un)hovering tabs
(cherry picked from commit 7ffad29df8)
2023-08-31 19:48:16 +02:00
kleonc 2796b629e9 Hide/show AcceptDialog's button spacer on button visibility changed
(cherry picked from commit 30a9c90785)
2023-07-11 13:21:07 +02:00
HolonProduction 438a598713 Update FileDialog button activity when file_mode is changed.
(cherry picked from commit cfac7c9a9a)
2023-07-10 18:09:59 +02:00
NiskashY 36ce14a826 Fix disabled slider highlighting
(cherry picked from commit 4394936392)
2023-07-10 18:09:58 +02:00
Florian Kothmeier 240701f95a Fix invalid minimum size for translated messages in option button
(cherry picked from commit c33748d954)
2023-07-10 17:46:08 +02:00
Dawid Marzec 87b4143f3b Fix cursor behaviour in Tree while holding CTRL
(cherry picked from commit 9abbdea95e)
2023-07-10 17:26:15 +02:00
Markus Sauermann 0ec599473d Revert "Fix focusloss of non-exclusive `AcceptDialog` with `close_on_escape`"
This reverts commit 7f547fcf09.

(cherry picked from commit bfa7497c1b)
2023-07-10 17:11:22 +02:00
Rémi Verschelde 1b38e9258b
Merge pull request #78975 from YuriSizov/rtl-fix-refactoring-typo
Prevent crash when processing line caches in `RichTextLabel`
2023-07-03 15:26:31 +02:00
Yuri Sizov 40f2227a65 Prevent crash when processing line caches in RichTextLabel 2023-07-03 13:33:51 +02:00
bruvzg 21365606d3
[RTL] Fix multithreaded scrollbar visibility update 2. 2023-07-03 10:34:42 +03:00
bruvzg ec97c7c1d9
[RTL] Fix multithreaded scrollbar visibility update. 2023-06-29 15:37:54 +03:00
Hendrik Brucker 1e8ca95cdc [GraphEdit] Fix port hotzones at zoom levels other than 100% 2023-06-25 17:13:53 +02:00
Rémi Verschelde f24f615b04
Merge pull request #78556 from QbieShay/qbe/hotzonehotfix
Fix regression in visual nodes hotzones
2023-06-23 08:47:56 +02:00
QbieShay 237e3c6099 Fix regression in visual nodes hotzones 2023-06-22 19:03:17 +02:00
dinoplane e11e9d2b9a Use cached saturation for color picker when value is 0 2023-06-21 15:18:20 -07:00
MewPurPur 6e182d41f4 Hide breakpoint indicator when mouse leaves CodeEdit 2023-06-21 11:30:40 +02:00
Rémi Verschelde 94a4da9de6
Merge pull request #78236 from AThousandShips/nine_tex_fix
Make `NinePatchRect` listen to texture changes
2023-06-20 09:21:15 +02:00
Rémi Verschelde 0653f7a5b0
Merge pull request #77722 from ApplecrispEric/drag-drop-autocomplete
Cancel autocomplete after initiating drag
2023-06-20 09:20:52 +02:00
Ninni Pipping 4492f7ff97 Make `NinePatchRect` listen to texture changes 2023-06-20 08:40:35 +02:00
Eric Brown 42bc437615 Changed autocomplete to cancel when the user begins a drag 2023-06-19 15:44:13 -07:00
Markus Sauermann 7f547fcf09 Fix focusloss of non-exclusive `AcceptDialog` with `close_on_escape`
Fix, that a non-exclusive AcceptDialog with `close_on_escape == true`
gets closed, when the parent window of the parent window receives focus.

There is no need to rely on the focus of the parent visible window.
Instead check if the AcceptDialog loses focus.
2023-06-17 11:05:36 +02:00
Rémi Verschelde c65aba7aff
Merge pull request #78321 from ajreckof/fix-wrong-alphabetical-order-in-autocompletion-sorting
Fix wrong order in autocompletion sorting with empty string to complete.
2023-06-16 16:52:27 +02:00
ajreckof e9a2060b27 Fix wrong alphabetical order in autocompletion sorting.
Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-06-16 14:04:07 +02:00
Markus Sauermann 390aa2a565 Fix ButtonGroup unpressing
It was possible to unpress a button group that had `allow_unpress = false`
using shortcuts.
Adjust `BaseButton::shortcut_input` to use the same logic as
`BaseButton::on_action_event`.
2023-06-16 00:15:37 +02:00
Rémi Verschelde a48285db7b
Merge pull request #78269 from Sauermann/fix-menubutton-popup-position
Fix position and size of MenuButton popup
2023-06-15 16:08:40 +02:00
Rémi Verschelde 95a9089fdd
Merge pull request #74813 from bruvzg/text_edit_autowrap
[TextEdit] Expose all auto-wrap modes.
2023-06-15 16:08:21 +02:00
Markus Sauermann d41665eb5e Fix position and size of MenuButton popup
Use the same logic as in OptionButton::show_popup
2023-06-15 15:29:50 +02:00
Rémi Verschelde 6587a81910
Merge pull request #78268 from Sauermann/fix-remove-unused-variable
Remove unused variable `PopupMenu::parent_rect`
2023-06-15 15:26:36 +02:00
Markus Sauermann 840e2b14f3 Remove unused variable `PopupMenu::parent_rect`
This private variable is not read anywhere.
Remove it and all places, where it is set.
2023-06-15 12:08:47 +02:00