StarryWorm
05737cd449
Add "desired size" to Control
...
A `Control` can define `get_desired_size()` which allows it to grow based on its content without increasing its minimum size.
This new size will be respected by parent `Container`s.
Currently used by `Label` and `TabBar`.
2026-05-07 13:01:02 -04:00
StarryWorm
b83cfb00dc
Fix tab bar max width behavior
2026-04-08 14:45:11 -04:00
StarryWorm
bdca8b66e7
Add custom_maximum_size to Control
...
This property mirrors `custom_minimum_size` and enables the user to set a size the `Control`. Enabling `propagate_maximum_size` forces all children to respect this node's maximum_size.
Not all `Control` types handle this gracefully, which may result in content clipping.
2026-04-07 14:34:12 -04:00
Pāvels Nadtočajevs
2c2ed8ddb5
[Editor] Generate and display documentation for the properties generated by PropertyListHelper.
2026-03-18 11:26:03 +02:00
Rémi Verschelde
e015e8bde4
Remove unused includes in core with clangd-tidy
2026-03-11 06:41:36 +01:00
Rémi Verschelde
eabb9a63d4
Rename callable_method_pointer.h to callable_mp.h and include it explicitly
...
This allows removing it from `class_db.h`, significantly reducing the amount of files
that include it transitively.
Also includes some include cleanup in `control.h` and `rich_text_label.h` done while
ensure they don't depend on `callable_mp`.
2026-03-04 16:23:23 +01:00
Pāvels Nadtočajevs
1306221592
Move accessibility methods/enums from DisplayServer to the AccessibilityServer dedicated singleton.
2026-03-02 13:48:29 +02:00
Thaddeus Crews
e380a41752
Style: Add class_db.h includes explicitly
2026-02-26 15:50:28 -06:00
kobewi
f7b9703cbd
Use actual class names in resource type hints
2026-01-29 21:07:56 +01:00
Nintorch
eb019511ed
Optimize files that #include input.h header
2026-01-28 14:21:00 +05:00
Michael Alexsander
1218413a94
Fix wrong offset for TabBar with hidden tabs
2026-01-14 12:49:19 -03:00
kobewi
5a06774885
Make dock tabs switch on button release
2025-12-03 19:32:57 +01:00
Thaddeus Crews
b2b30b437b
Merge pull request #112935 from kitbdev/fix-selecting-disabled-tabs
...
Fix disabled tabs in TabBar are selectable
2025-11-25 09:52:21 -06:00
BrotherShort
1538b2b8e6
Fix tab bar offset
2025-11-24 03:35:45 +08:00
kit
472a26e895
Fix disabled tabs in TabBar are selectable
2025-11-18 17:00:39 -05:00
Logan Detrick
e50cf880c3
Allow tab_rmb_clicked signal to always be emitted
2025-11-07 11:10:09 -08:00
kobewi
682b0f7c54
Add switch on hover to TabBar
2025-10-22 00:34:57 +02:00
Thaddeus Crews
9e96c7d9b8
Merge pull request #110378 from timothyqiu/rtl-preview
...
Make text-related nodes translation domain aware
2025-10-16 12:48:05 -05:00
Logan Detrick
914a72f8a4
Give TabBar overridable colors per tab
2025-10-13 11:52:07 -07:00
Thaddeus Crews
dcb9a0d030
Merge pull request #110151 from FifthTundraG/tabbar_horizontal_scrolling
...
Add horizontal scrolling to `TabBar`
2025-10-13 12:30:02 -05:00
FifthTundraG
14f7cbd74c
Add horizontal scrolling to TabBar
2025-10-13 13:05:25 -04:00
Michael Alexsander
8973c91293
Add icon color theme items for TabBar and TabContainer
2025-10-03 10:41:28 -03:00
Haoyu Qiu
172c80df67
Make text-related nodes translation domain aware
...
- Makes `is_layout_rtl()` translation domain aware
- Makes various text-drawing controls translation domain aware
- Makes translation preview use the project's fallback locale when disabled
2025-09-22 09:39:14 +08:00
Michael Alexsander
aeb3a45c97
Hide Control focus when given via mouse input
2025-09-19 13:43:29 -03:00
Pāvels Nadtočajevs
10fd7163d4
Add methods to check which event first triggered "just pressed/released" state.
2025-08-12 16:25:23 +03:00
Logan Detrick
88280a6b2a
Fix TabBar minimum size with clip_tabs on
2025-07-13 16:40:22 -07:00
Tiger Jove
c6c7b508b6
TabBar current tab now stays -1 when adding first tab on deselect_enable
2025-07-07 10:18:49 +02:00
Logan Detrick
0413297f7f
Add dock dragging area and highlight
2025-06-05 16:02:33 -07:00
kit
48624a0778
Allow TabBar drag and drop to be overridden
...
Add tab mouse tests
2025-05-27 11:56:37 -04:00
Logan Detrick
5fbc8a61fc
Fix TabBar hidden tabs handling
2025-05-13 18:11:00 -07:00
SaNeOr
0785c9ad81
fix Editor Crashes When Middle Mouse Button Is Clicked on Empty Space in scene_tabs
2025-05-08 12:04:53 +08: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
4c66c21542
Merge pull request #103024 from cruglet/master
...
TabBar: Add boolean toggle for middle-click to fire `tab_close_pressed` signal.
2025-04-10 16:53:44 -05:00
Thaddeus Crews
94282d88f9
Core: Use Math namespace for constants
2025-04-10 16:29:30 -05:00
Cruglet
1a1711f1ee
Add middle-click removing for TabBars
...
Added a boolean option field to enable the firing of the "tab_close_pressed" signal when middle clicking on a tab.
2025-04-09 07:56:09 -04:00
Pāvels Nadtočajevs
b106dfd4f9
Base accessibility API.
2025-04-08 20:14:28 +03:00
Aaron J Yoder
117d5cbf96
Add tab spacing modifier for tabs in TabBar and TabContainer
2025-03-05 16:55:37 -05:00
Michael Alexsander
e33a95f6ab
Always pick widest style as min width between unselected and hovered in TabBar
2025-01-14 12:16:44 -03: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
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
kit
f2f34e9c50
Fix TabBar initialization issue and add tests
2024-09-20 18:49:46 -04:00
Haoyu Qiu
14321b8ed5
Set auto translate mode for drag previews
...
- Controls
- `LineEdit`, `TextEdit`: Always disabled since it's dragging user input.
- `TabBar`: Use the same auto translate mode as the node.
- `RichTextLabel`: Always disable since auto translation is done
differently from other controls (selection text you get
programmatically is always after auto translation).
- Editor
- Disable drag preview auto translation if the text is user input,
filename, or class name.
- Also disabled unexpected auto translation for audio bus effect names.
2024-09-19 19:21:29 +08:00
kleonc
d1740e6cbf
Clear TabBar tab close button's rect after it's hidden
2024-08-04 11:59:37 +02:00
Yuri Rubinsky
af5fc8354b
Fix a bunch of orphan StringName errors at ProjectSettings/Editor exit
2024-07-09 19:38:52 +03:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
Gilles Roudière
7705265477
Fix PropertyListHelper::_get_property returning a valid value even if an index is outside the array valid indices
...
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com >
2024-05-10 10:46:04 +02:00
Mansur Isaev
b37ddfc606
Add tab tooltip text
2024-04-23 08:28:48 +04:00
kobewi
e95e954c68
Add PropertyListHelper in all simple cases
2024-04-11 18:13:29 +02:00
A Thousand Ships
a56c03d495
Fix error spam when adding tabs to TabBar without deselect
...
`current` was allowed to be `-1` when deselection was disabled, causing
errors in other methods when updating the size.
2024-02-20 23:38:20 +01:00
jsjtxietian
b7028e5f94
Tweak property order in the inspector for TabBar
2024-02-18 12:54:51 +08:00