Commit Graph

365 Commits

Author SHA1 Message Date
StarryWorm 4ae336740d Add missing resource_*.h includes
Add missing `resource_importer.h` includes
Add missing `resource_loader.h` includes
Add missing `resource_saver.h` includes
2026-03-27 07:03:39 -04:00
Rémi Verschelde 8028b65442 Remove unused includes in scene with clangd-tidy 2026-03-10 16:40:00 +01:00
Rémi Verschelde 2dd1f4ef60 Decouple node.h from scene_tree.h, minimize its other includes 2026-03-05 13:54:46 +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
Rémi Verschelde 765362b033 Explicitly include core/config/engine.h where used 2026-03-04 10:17:10 +01:00
Rémi Verschelde f332faf46b Explicitly include core/os/os.h where used 2026-03-04 09:54:10 +01:00
Rémi Verschelde 8c0f175c94 Decouple RenderingServer from as much of the codebase as possible
Notably decouples it from:
- AccessibilityServer
- DisplayServer
- Viewport
- Window
2026-03-03 12:48:07 +01:00
Rémi Verschelde a447ac95ec Move DisplayServer enums and typedefs to DisplayServerEnums
This will allow decoupling `display_server.h` from a number of headers in the
codebase which only require those enums and not all the DisplayServer API.
2026-03-03 12:44:02 +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
Thaddeus Crews 10aa2e3013 Merge pull request #111226 from PhairZ/copy-color
Add a copy button to the color picker dialog.
2026-01-28 12:27:16 -06:00
Nintorch eb019511ed Optimize files that #include input.h header 2026-01-28 14:21:00 +05:00
Rémi Verschelde 6da13253f2 Merge pull request #114506 from passivestar/colorpicker-hover-pressed
Fix color picker mode tabs in modern theme
2026-01-06 18:25:55 +01:00
passivestar 375a8f84d2 Fix inconsistent MenuButton style 2026-01-06 04:38:32 +04:00
passivestar 0e9eb62fb3 Fix color picker mode tabs in modern theme 2026-01-01 22:46:30 +04:00
Seif El-Din Ahmed 95d07468bd Add a copy button to the color picker. 2025-12-19 21:12:19 +02:00
mattia.zirpoli bf85f96a8e Fix memory management for ColorPalette in save file dialog 2025-12-04 17:38:02 +01:00
Konrad Gadzina 846ae11cd7 Fix preset cache usage in ColorPicker 2025-12-03 09:24:24 +01:00
Thaddeus Crews b79fe2e020 Merge pull request #98428 from pafuent/fixing_color_picker_closing_popup_on_mouse_click
Fix `ColorPickerButton` close popup on mouse click
2025-11-20 16:47:08 -06:00
Luo Zhihao 7668360c68 SpinBox: Add a property to set whether custom_arrow_step rounds value 2025-11-18 12:12:33 -06:00
Thaddeus Crews 60f6733d38 Merge pull request #110218 from WhalesState/picker-shape-expand
Allow all ColorPicker Shapes to expand horizontally
2025-10-28 12:19:21 -05:00
Mounir Tohami a07bd3fd31 Move ColorPicker shaders to ColorPickerShape class 2025-10-24 02:49:12 +03:00
Thaddeus Crews 916bfee528 Merge pull request #111230 from GabCoolDude/color_picker_tooltip_fix
Fix color text's tooltip not being updated when the intensity is more than 0
2025-10-07 11:54:33 -05:00
Jared 3d0daf15e1 Add visibility check in color_picker.cpp
Check that the Color Picker Popup is currently visible inside the tree before resetting the color and emitting popup_closed.
2025-10-04 21:30:49 +13:00
GabCoolDude f394656844 Fix color text's tooltip not being updated when the intensity is more than 0
Before, the tooltip would only change when pressing the "#" button in the editor, but it would never change at runtime or in the editor when changing the intensity
2025-10-03 23:33:47 +02:00
Thaddeus Crews 7eaf1ee62d Merge pull request #110278 from KoBeWi/controledraw
Redraw shape controls when ColorPicker theme changes
2025-10-01 13:12:33 -05:00
Thaddeus Crews 7521044465 Merge pull request #110750 from timothyqiu/color-picker-add
ColorPicker: Fix preset button order after calling `add_preset()`
2025-09-22 21:01:01 -05:00
Haoyu Qiu 52df1aeb59 ColorPicker: Fix preset button order after calling add_preset 2025-09-21 22:17:38 +08:00
Michael Alexsander aeb3a45c97 Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
Pablo Andres Fuente 2ef3ebf934 Fix ColorPickerButton close popup on mouse click
Fixes #91813
2025-09-18 08:52:30 -03:00
Mounir Tohami b22e266d71 Allow all ColorPicker Shapes to expand horizontally
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2025-09-16 21:35:46 +03:00
kobewi 502f49d7f9 Redraw shape controls when ColorPicker theme changes 2025-09-05 18:04:38 +02:00
Mounir Tohami 5412885a7a Fix ColorPicker after adding intensity sliders. 2025-09-01 13:06:44 +03:00
kobewi e85e8da55d Enable input when ColorPicker popup exits tree 2025-08-21 13:54:17 +02:00
Hei 1acfbba46a Avoid color conversion roundtrip in colorpicker 2025-07-29 12:44:08 +03:00
Pāvels Nadtočajevs a272376f89 Cleanup accessibility names. 2025-06-23 11:08:36 +03:00
Rémi Verschelde e0ca031eae Merge pull request #107249 from beicause/color-picker-ok-hs-hl-rectangles
ColorPicker: Add okhsl HS and HL rectangular picker shapes
2025-06-09 00:45:18 +02:00
Pāvels Nadtočajevs 22b5a2fc5c Change editor button focus mode to FOCUS_ACCESSIBILITY. 2025-06-08 15:53:27 +03:00
LuoZhihao 7b4c95e6d8 ColorPicker: Add okhsl HS and HL rectangular picker shapes 2025-06-07 22:30:40 +08:00
Michael Alexsander 454e4f817c Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
LuoZhihao 8a9409257b ColorPicker: Add intensity slider
Add intensity slider to all color modes. Replace raw mode by linear mode, which uses linear color space.

When color is overbright, automatically switch hex text to script text. Allow executing expression in script text field to set color. Add the "script" icon to the default theme.
2025-05-23 12:45:29 +08:00
Haoyu Qiu daaf4119de Improve ColorPicker 2025-04-30 11:50:35 +02:00
Pāvels Nadtočajevs 4cc50e40ec Fix ColorPicker preset button format string typo. 2025-04-28 08:03:52 +03:00
Pāvels Nadtočajevs e6d3cf63fb [ColorPicker, macOS] Add link to request required screen recording permission. 2025-04-23 22:25:10 +03:00
Thaddeus Crews 4d48c8f69a Merge pull request #102240 from KoBeWi/RAWR
Fix ColorPicker sliders in overbright RGB
2025-04-22 10:44:24 -05:00
Pāvels Nadtočajevs b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
Rémi Verschelde 5045d549f9 Merge pull request #99515 from KoBeWi/shapez.godot
Refactor ColorPicker shapes
2025-03-19 14:53:57 +01:00
kobewi ef0408e704 Refactor ColorPicker shapes 2025-03-18 18:57:26 +01:00
Thaddeus Crews 49fcd4ce46 Merge pull request #101546 from bruvzg/portal_color_picker
[Linux] Implement native color picker.
2025-03-17 10:52:29 -05:00
Konrad Gadzina d51f33e1b4 Fix game crashes when adding color preset after clearing presets in another control 2025-03-16 13:19:04 +01:00