summaryrefslogtreecommitdiffstats
path: root/scene/gui/color_picker.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit godotengine/godot@f128f383e892865379cb8b14e7bcc9858efe2973Spartan3222024-11-271-10/+10
|\
| * Merge pull request #99516 from KoBeWi/quantum_entanglement_of_source_filesThaddeus Crews2024-11-261-10/+10
| |\ | | | | | | | | | Untangle ColorPicker includes
| | * Untangle ColorPicker includeskobewi2024-11-221-10/+10
| | |
* | | Merge commit godotengine/godot@d09d82d433b03bb3773fd2a8cc8d6ccc2f8739ceSpartan3222024-11-261-21/+37
|\| |
| * | ColorPicker: fix OKHSL circle in HSV modeLuoZhihao2024-11-211-21/+37
| |/
* | Merge pull request #826 from Spartan322/rotate-color-picker-textureGeorge L. Albany2024-10-311-4/+8
|\ \ | | | | | | Add rotation to the `ColorPicker.wheel_picker_cursor` icon
| * | Add rotation to the `ColorPicker.wheel_picker_cursor` iconSpartan3222024-10-301-4/+8
| | | | | | | | | | | | Improved centering of the `ColorPicker.wheel_picker_cursor` icon
* | | Merge commit godotengine/godot@8004c7524fb9f43425c4d6f614410a76678e0f7cSpartan3222024-10-301-8/+8
|\ \ \ | |/ / |/| / | |/
| * Rename internal Button icon to button_icon to match exposed methodsAaron Franke2024-10-291-8/+8
| |
* | Merge pull request #818 from Spartan322/fixup/copyright-headersGeorge L. Albany2024-10-271-2/+2
|\ \ | | | | | | Fix copyright headers referring to Godot
| * | Fix copyright headers referring to GodotSpartan3222024-10-271-2/+2
| | |
* | | Merge pull request #810 from Spartan322/add/wheel_picker_cursorGeorge L. Albany2024-10-271-8/+6
|\ \ \ | | | | | | | | Add `wheel_picker_cursor` theme icon to `ColorPicker`
| * | | Add `wheel_picker_cursor` theme icon to `ColorPicker`Spartan3222024-10-261-8/+6
| |/ / | | | | | | | | | Replaces `ColorPicker`'s HSV wheel hue indicator with `wheel_picker_icon` texture which by default is the same as `picker_cursor`
* | | Merge commit godotengine/godot@61accf060515416da07d913580419fd8c8490f7bSpartan3222024-10-261-11/+9
|\ \ \ | |/ / |/| / | |/
| * Merge pull request #97212 from Riteo/picking-the-right-expand-modeThaddeus Crews2024-10-251-0/+1
| |\ | | | | | | | | | ColorPicker: Ignore TextureRect expand mode during legacy picking
| | * ColorPicker: ignore TextureRect expand mode during legacy pickingRiteo Siuga2024-09-201-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | Merge pull request #98368 from ↵Clay John2024-10-241-11/+8
| |\ \ | | | | | | | | | | | | | | | | KoBeWi/color_picking_active_your_color_is_now_being_picked_please_pick_your_color Fix legacy picking label bounds
| | * | Fix legacy picking label boundskobewi2024-10-221-11/+8
| | | |
* | | | Expose `ColorPicker.old_color` as a propertySpartan3222024-10-241-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose `ColorPicker.display_old_color` as a property (cherry picked from commit blazium-engine/blazium@f7c6762df94867d93465612ec6be86b28593dc47) Co-authored-by: Mounir Tohami <53877170+WhalesState@users.noreply.github.com>
* | | | Merge commit godotengine/godot@b3bcb2dc14691f7729984128dca26a844f662fa1Spartan3222024-10-221-16/+4
|\| | |
| * | | Fix ColorPicker virtual keyboard popup on mobileAnish Mishra2024-10-051-16/+4
| |/ /
* / / Rebrand preambles to RedotDubhghlas McLaughlin2024-10-111-0/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Credits: Co-authored-by: Skogi <skogi.b@gmail.com> Co-authored-by: Spartan322 <Megacake1234@gmail.com> Co-authored-by: swashberry <swashdev@pm.me> Co-authored-by: Christoffer Sundbom <christoffer_karlsson@live.se> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: McDubh <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: Dubhghlas McLaughlin <103212704+mcdubhghlas@users.noreply.github.com> Co-authored-by: radenthefolf <radenthefolf@gmail.com> Co-authored-by: John Knight <80524176+Tekisasu-JohnK@users.noreply.github.com> Co-authored-by: Adam Vondersaar <adam.vondersaar@uphold.com> Co-authored-by: decryptedchaos <nixgod@gmail.com> Co-authored-by: zaftnotameni <122100803+zaftnotameni@users.noreply.github.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: wesam <108880473+wesamdev@users.noreply.github.com> Co-authored-by: Mister Puma <MisterPuma80@gmail.com> Co-authored-by: Aaron Benjamin <lifeartstudios@gmail.com> Co-authored-by: SingleError <isaaconeoneone@gmail.com> Co-authored-by: Bioblaze Payne <BioblazePayne@gmail.com>
* | Expose `LineEdit` `edit` and `unedit` methods.Mounir Tohami2024-10-041-1/+15
| |
* | Add missing ETR macros in ColorPickerHaoyu Qiu2024-09-251-10/+5
|/
* [Scene] Add SceneStringName::toggledYuri Rubinsky2024-08-281-3/+3
|
* Use legacy color picking in single window modekobewi2024-07-291-8/+12
|
* [Scene] Add `SceneStringNames::text/value_changed`A Thousand Ships2024-06-191-3/+3
|
* [Scene] Add `SceneStringNames::panel`A Thousand Ships2024-05-301-1/+1
|
* [Scene] Add `SceneStringNames::id_pressed`A Thousand Ships2024-05-301-2/+2
|
* [Scene] Add SceneStringNames::pressedA Thousand Ships2024-05-141-6/+6
|
* Use Core/Scene stringnames consistentlykobewi2024-05-131-19/+19
|
* Reduce and prevent unnecessary random-access to `List`A Thousand Ships2024-05-041-14/+16
| | | | | | | | | 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
* Don't translate ColorPicker color labelskobewi2024-04-181-1/+2
|
* Fixed undo/redo behaviour of color picker and added ability to ↵Zi Ye2024-03-241-3/+25
| | | | cancel/confirm color selection.
* Add option to add built-in strings in the POT generationMichael Alexsander2024-02-281-10/+26
|
* Fix PopupMenu doesn't respect it's ScrollContainer's marginsMounir Tohami2024-02-231-0/+1
|
* Update deferred calls to use Callableskobewi2024-01-091-1/+1
|
* Allow additional hexadecimal color codes in ColorPickerHugo Locurcio2024-01-081-0/+18
| | | | | | | | | 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)
* Merge pull request #84527 from Calinou/colorpicker-display-revert-iconRémi Verschelde2024-01-031-0/+9
|\ | | | | | | Display a revert icon on ColorPicker's old sample
| * Display a revert icon on ColorPicker's old sampleHugo Locurcio2023-11-071-0/+9
| | | | | | | | This denotes that the color can be clicked to revert to the old color.
* | Merge pull request #85749 from bs-mwoerner/color_picker_quantize_fixYuri Sizov2023-12-181-4/+5
|\ \ | | | | | | | | | Fix unnecessarily quantizing current color in color picker
| * | Changed HTML input color_changed logic.Michael Wörner2023-12-171-4/+5
| | | | | | | | | | | | | | | 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.
* | | Remember last 'color_mode' and 'picker_shape' in 'ColorPicker's in the editorSofox2023-12-141-0/+12
|/ /
* | Fix ColorPicker's alpha slider arrow offsetkleonc2023-12-111-1/+1
| |
* | Fix ColorPicker shape icon is invisible until shape is changedDinDotDout2023-11-061-2/+4
|/
* Increase precision of RAW mode in ColorPickerHugo Locurcio2023-10-231-0/+2
| | | | | This sets the slider step to `0.001` but keeps SpinBox arrow increments at `0.01`.
* Add bulk change guards to successive theme overrides in Editor and GUIYuri Sizov2023-10-191-0/+10
|
* Fix ColorPicker deferred mode not working for sliders.ajreckof2023-10-131-7/+18
|
* Bind remaining theme properties to their respective classesYuri Sizov2023-09-131-6/+7
| | | | | | | | | | | | This adds binds for GraphEdit/GraphElement/GraphNode, which were skipped before due to a rework. This also adds binds for Window, which was skipped before due to a complicated code organization. Also adds theme cache entries/direct cache access to a few places that previously missed it. Some theme properties are now exposed to other classes via friendships or public getters for convenience. This removes all string-based theme access from scene/ classes.
* Register theme properties with ThemeDBYuri Sizov2023-09-111-46/+39
|