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
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
Chaosus
9a8d6628de
[Scene] Add SceneStringName::hover
2024-12-11 11:11:25 +03:00
bruvzg
9fece033ab
[macOS, Windows] Add support for excluding windows from a screenshot.
2024-12-10 11:00:13 +02:00
Nông Văn Tình
e6a49ab6ac
Save color palette as resources to reuse later
...
Co-authored-by: Micky <66727710+Mickeon@users.noreply.github.com >
2024-12-06 20:16:06 +07:00
Rémi Verschelde
204ce5a29a
Merge pull request #99882 from vgezer/fixcolorpicker
...
Add horizontal center for ColorPicker buttons
2024-12-02 15:52:04 +01:00
A Thousand Ships
af56d6e8e8
Use SceneStringName in more places
2024-12-02 14:39:16 +01:00
Volkan Gezer
5baedb5826
add horizontal center for colorpicker buttons
2024-11-30 19:55:11 +01:00
kobewi
e0304a7d00
Add helper method to get Window from ID
2024-11-29 21:15:23 +01:00
Thaddeus Crews
0ee60dd543
Merge pull request #99516 from KoBeWi/quantum_entanglement_of_source_files
...
Untangle ColorPicker includes
2024-11-26 13:04:54 -06:00
kobewi
289e548e34
Untangle ColorPicker includes
2024-11-22 21:42:50 +01:00
LuoZhihao
f6751d8d17
ColorPicker: fix OKHSL circle in HSV mode
2024-11-21 13:26:05 +08:00
Aaron Franke
562c666e3d
Rename internal Button icon to button_icon to match exposed methods
2024-10-29 16:23:03 -07:00
Thaddeus Crews
814187de60
Merge pull request #97212 from Riteo/picking-the-right-expand-mode
...
ColorPicker: Ignore TextureRect expand mode during legacy picking
2024-10-25 13:03:59 -05:00
Clay John
6bd24cbad2
Merge pull request #98368 from KoBeWi/color_picking_active_your_color_is_now_being_picked_please_pick_your_color
...
Fix legacy picking label bounds
2024-10-24 18:59:43 -07:00
kobewi
82b53b1e1b
Fix legacy picking label bounds
2024-10-22 13:50:49 +02:00
Anish Mishra
8f9ed35f8b
Fix ColorPicker virtual keyboard popup on mobile
2024-10-05 19:03:29 +05:30
Mounir Tohami
f84f734696
Expose LineEdit edit and unedit methods.
2024-10-04 10:37:33 +00:00
Haoyu Qiu
2e57089135
Add missing ETR macros in ColorPicker
2024-09-25 10:36:07 +08:00
Riteo Siuga
ef48c4d306
ColorPicker: ignore TextureRect expand mode during legacy picking
...
The color picker has a "legacy" fallback mode when
`FEATURE_SCREEN_CAPTURE` is not supported by the current
`DisplayServer`. It works by "freezing" the current view by making a
huge `Popup` with a `TextureRect` inside covering the screen.
Before this patch, said `TextureRect` could get cut off if its buffer
was nominally bigger than the parent popup, such as when the
`canvas_items` content scale mode is active.
This is because the default TextureRect scaling logic only allows
expanding the texture up. `EXPAND_IGNORE_SIZE` fixes that by allowing
the texture to logically "shrink", filling the whole screen
independently of the actual buffer size.
Special thanks to Federico Fausto Santoro for helping with the diagnosis
:D
Co-Authored-By: Federico Fausto Santoro <fedyfausto@hotmail.com >
2024-09-20 02:26:10 +02:00
Yuri Rubinsky
52889ab7ee
[Scene] Add SceneStringName::toggled
2024-08-28 15:14:26 +03:00
kobewi
385284311a
Use legacy color picking in single window mode
2024-07-29 23:44:01 +02:00
A Thousand Ships
fbb879debd
[Scene] Add SceneStringNames::text/value_changed
2024-06-19 09:44:38 +02:00
A Thousand Ships
926afccbd8
[Scene] Add SceneStringNames::panel
2024-05-30 22:54:50 +02:00
A Thousand Ships
755a0efbb6
[Scene] Add SceneStringNames::id_pressed
2024-05-30 22:54:04 +02:00
A Thousand Ships
ee79386f7b
[Scene] Add SceneStringNames::pressed
2024-05-14 15:51:28 +02:00
kobewi
413c11357d
Use Core/Scene stringnames consistently
2024-05-13 23:41:07 +02:00
A Thousand Ships
955d5affa8
Reduce and prevent unnecessary random-access to List
...
Random-access access to `List` when iterating is `O(n^2)` (`O(n)` when
accessing a single element)
* Removed subscript operator, in favor of a more explicit `get`
* Added conversion from `Iterator` to `ConstIterator`
* Remade existing operations into other solutions when applicable
2024-05-04 16:08:55 +02:00
kobewi
9ab3ff04ac
Don't translate ColorPicker color labels
2024-04-18 20:26:56 +02:00
Zi Ye
d827b34ea8
Fixed undo/redo behaviour of color picker and added ability to cancel/confirm color selection.
2024-03-24 15:12:11 -05:00
Michael Alexsander
d70c45b5c8
Add option to add built-in strings in the POT generation
2024-02-28 11:34:26 -03:00
Mounir Tohami
7884d63281
Fix PopupMenu doesn't respect it's ScrollContainer's margins
2024-02-23 15:51:47 +02:00
kobewi
0e8f90f4c8
Update deferred calls to use Callables
2024-01-09 16:11:47 +01:00
Hugo Locurcio
80a770a8ed
Allow additional hexadecimal color codes in ColorPicker
...
The following formats are now accepted (leading `#` is optional):
- `#1` -> `#111111`
- `#12` -> `#121212`
- `#12345` -> `#11223344` (`5` at the end is discarded)
- `#1234567` -> `#123456` (`7` at the end is discarded)
2024-01-08 20:51:45 +01:00
Rémi Verschelde
a6dc1b3907
Merge pull request #84527 from Calinou/colorpicker-display-revert-icon
...
Display a revert icon on ColorPicker's old sample
2024-01-03 09:59:06 +01:00
Yuri Sizov
1125235c95
Merge pull request #85749 from bs-mwoerner/color_picker_quantize_fix
...
Fix unnecessarily quantizing current color in color picker
2023-12-18 18:17:53 +01:00
Michael Wörner
21d778b0c3
Changed HTML input color_changed logic.
...
Made the HTML field send change events based on whether the new color's string is different from the previous color's string (instead of whether the new string parses to the current color value).
Previously, updating the color value even when the corresponding string hadn't changed would unnecessarily quantize the color value to 8 bits just by opening/closing the Color Picker.
2023-12-17 15:36:57 +01:00
Sofox
7979412c75
Remember last 'color_mode' and 'picker_shape' in 'ColorPicker's in the editor
2023-12-14 18:57:57 +00:00
kleonc
d76d8c5f29
Fix ColorPicker's alpha slider arrow offset
2023-12-11 16:17:45 +01:00
Hugo Locurcio
079f1c8ead
Display a revert icon on ColorPicker's old sample
...
This denotes that the color can be clicked to revert to the old color.
2023-11-07 10:04:39 +01:00