Commit Graph

347 Commits

Author SHA1 Message Date
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
7668360c68 SpinBox: Add a property to set whether custom_arrow_step rounds value 2025-11-18 12:12:33 -06:00
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
a07bd3fd31 Move ColorPicker shaders to ColorPickerShape class 2025-10-24 02:49:12 +03:00
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
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
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
7eaf1ee62d Merge pull request #110278 from KoBeWi/controledraw
Redraw shape controls when ColorPicker theme changes
2025-10-01 13:12:33 -05:00
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
52df1aeb59 ColorPicker: Fix preset button order after calling add_preset 2025-09-21 22:17:38 +08:00
aeb3a45c97 Hide Control focus when given via mouse input 2025-09-19 13:43:29 -03:00
2ef3ebf934 Fix ColorPickerButton close popup on mouse click
Fixes #91813
2025-09-18 08:52:30 -03:00
b22e266d71 Allow all ColorPicker Shapes to expand horizontally
Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>
2025-09-16 21:35:46 +03:00
502f49d7f9 Redraw shape controls when ColorPicker theme changes 2025-09-05 18:04:38 +02:00
5412885a7a Fix ColorPicker after adding intensity sliders. 2025-09-01 13:06:44 +03:00
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
a272376f89 Cleanup accessibility names. 2025-06-23 11:08:36 +03:00
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
22b5a2fc5c Change editor button focus mode to FOCUS_ACCESSIBILITY. 2025-06-08 15:53:27 +03:00
7b4c95e6d8 ColorPicker: Add okhsl HS and HL rectangular picker shapes 2025-06-07 22:30:40 +08:00
454e4f817c Make build profile project detection also set build options 2025-06-03 11:11:33 -03:00
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
daaf4119de Improve ColorPicker 2025-04-30 11:50:35 +02:00
4cc50e40ec Fix ColorPicker preset button format string typo. 2025-04-28 08:03:52 +03:00
e6d3cf63fb [ColorPicker, macOS] Add link to request required screen recording permission. 2025-04-23 22:25:10 +03:00
4d48c8f69a Merge pull request #102240 from KoBeWi/RAWR
Fix ColorPicker sliders in overbright RGB
2025-04-22 10:44:24 -05:00
b106dfd4f9 Base accessibility API. 2025-04-08 20:14:28 +03:00
5045d549f9 Merge pull request #99515 from KoBeWi/shapez.godot
Refactor ColorPicker shapes
2025-03-19 14:53:57 +01:00
ef0408e704 Refactor ColorPicker shapes 2025-03-18 18:57:26 +01:00
49fcd4ce46 Merge pull request #101546 from bruvzg/portal_color_picker
[Linux] Implement native color picker.
2025-03-17 10:52:29 -05:00
d51f33e1b4 Fix game crashes when adding color preset after clearing presets in another control 2025-03-16 13:19:04 +01:00
a7c1f2730f Add missing ETR/TTR markups 2025-03-12 20:12:33 +08:00
e6f812c056 Modify color in ColorPicker with keyboard or joypad 2025-03-11 22:41:41 +01:00
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
331a43a9d8 Add String::remove_char(s) methods for performance and convenience 2025-03-10 13:19:28 +01:00
92ab92114e Don't duplicate internal nodes 2025-03-07 16:08:53 +01:00
5dcab0e606 Prevent some internal nodes being duplicated in Controls 2025-02-10 13:27:08 +01:00
67c2115c50 ColorPicker: allow other color wheels in okhsl mode
remove `get_shape_override` in ColorMode
2025-02-09 16:18:54 +08:00
09822ea1a9 Forward color picker preview mouse button events to the window underneath. 2025-02-08 10:16:03 +02:00
05ca80632d [Linux] Implement native color picker. 2025-02-03 16:30:44 +02:00
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
66dffca1f2 Fix ColorPicker sliders in overbright RGB 2025-01-31 13:56:39 +01:00
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
a36f064204 Fix ColorPicker load/save swatches button interactions 2025-01-22 19:23:29 +01:00
660b5af677 Fix ColorPicker Swatches button width 2025-01-22 16:33:53 +01:00
e9b164adf7 Fix ColorPicker hide save/load swatches for pressets_visible 2025-01-22 15:36:45 +01:00
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
730495c215 Fix legacy color picker crash. 2025-01-14 08:25:18 +02:00
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