1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00
Commit Graph

341 Commits

Author SHA1 Message Date
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
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
Haoyu Qiu
a7c1f2730f Add missing ETR/TTR markups 2025-03-12 20:12:33 +08:00
Konrad Gadzina
e6f812c056 Modify color in ColorPicker with keyboard or joypad 2025-03-11 22:41:41 +01:00
Thaddeus Crews
deb9705b77 Merge pull request #99662 from beicause/color-picker-wheels-in-okhsl
ColorPicker: Allow other color wheels in okhsl mode
2025-03-11 14:00:59 -05:00
A Thousand Ships
331a43a9d8 Add String::remove_char(s) methods for performance and convenience 2025-03-10 13:19:28 +01:00
kobewi
92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
A Thousand Ships
5dcab0e606 Prevent some internal nodes being duplicated in Controls 2025-02-10 13:27:08 +01:00
LuoZhihao
67c2115c50 ColorPicker: allow other color wheels in okhsl mode
remove `get_shape_override` in ColorMode
2025-02-09 16:18:54 +08:00
Pāvels Nadtočajevs
09822ea1a9 Forward color picker preview mouse button events to the window underneath. 2025-02-08 10:16:03 +02:00
Pāvels Nadtočajevs
05ca80632d [Linux] Implement native color picker. 2025-02-03 16:30:44 +02:00
Thaddeus Crews
00564920d8 Merge pull request #101960 from Giganzo/colorpicker-swatches-menubutton
Fix ColorPicker load/save swatches button interactions
2025-01-31 09:15:37 -06:00
kobewi
66dffca1f2 Fix ColorPicker sliders in overbright RGB 2025-01-31 13:56:39 +01:00
Thaddeus Crews
3c3ff85d33 Merge pull request #101913 from Giganzo/color-hide-button
Fix ColorPicker hide save/load swatches for presets_visible
2025-01-28 16:08:58 -06:00
Giganzo
a36f064204 Fix ColorPicker load/save swatches button interactions 2025-01-22 19:23:29 +01:00
Giganzo
660b5af677 Fix ColorPicker Swatches button width 2025-01-22 16:33:53 +01:00
Giganzo
e9b164adf7 Fix ColorPicker hide save/load swatches for pressets_visible 2025-01-22 15:36:45 +01:00
WhalesState
6caadd57a9 ColorPicker remove unused children and fix sample bugs.
Remove an unused `VBoxContainer`.
Remove 3 unused children from grid (Label, Slider, SpinBox).
Ignore sample input when old color is not displayed.
Fix current color overbright position.
2025-01-17 18:12:36 +02:00
Pāvels Nadtočajevs
730495c215 Fix legacy color picker crash. 2025-01-14 08:25:18 +02:00
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
WhalesState
989161e117 Fix color picking on linux. 2025-01-08 10:32:25 +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
LuoZhihao
9eeeadb037 ColorPicker: Improve the accuracy of hue slider in OKHSL mode 2025-01-04 21:36:27 +08:00
LuoZhihao
47db9c0405 ColorPicker: Fix cursor position in OKHSL wheel 2024-12-30 22:25:20 +08: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