ddnet/src/base
bors[bot] 05ddfba954
Merge #6755
6755: Remove individual RGBA sliders from editor color picker, add shift+rightclick/leftclick to copy/paste color in editor r=Jupeyy a=Robyt3

Remove the individual RGBA sliders for editor color pickers and only show one button that opens the color picker popup instead.

Decrease size of layer and point popups that previously had color properties which need less space now.

Support shift-rightclicking color picker buttons to copy the color to the clipboard in RRGGBBAA hex format.

Support shift-leftclicking color picker buttons to paste a color from the clipboard in RGB, RGBA, RRGGBB or RRGGBBAA format with optional leading `#` or `$`.

Screenshots:
- Before:
![screenshot_2023-06-20_20-39-43](https://github.com/ddnet/ddnet/assets/23437060/4a8b230c-a66b-4e2a-9744-cb5f80f6a799)
- After:
![screenshot_2023-06-20_20-40-00](https://github.com/ddnet/ddnet/assets/23437060/517f90cf-06a5-4332-9eb8-6a87cbc91b32)
- After (color picker open):
![screenshot_2023-06-25_17-35-55](https://github.com/ddnet/ddnet/assets/23437060/30320b56-e4cb-4e93-bf7b-8cfc8d96620b)


Suggested by `@HiRavie` in https://github.com/ddnet/ddnet/pull/6743#issuecomment-1593886873, though it was easier and also looks better to me when the color picker button has exactly the same size as the other value selectors.

## Checklist

- [X] Tested the change ingame
- [X] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test (especially base/) or added coverage to integration test
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: Robert Müller <robytemueller@gmail.com>
2023-06-27 19:29:43 +00:00
..
tl Fix misspellings 2022-10-25 13:51:56 -03:00
unicode Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
bezier.cpp Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
bezier.h Move src/game/bezier.cpp/h to src/base/bezier.cpp/h 2022-09-24 20:53:59 +02:00
Cargo.toml Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
color.cpp Add color_parse function to parse strings as colors 2023-06-20 23:22:33 +02:00
color.h Add color_parse function to parse strings as colors 2023-06-20 23:22:33 +02:00
color.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
detect.h Emscripten support 2022-03-25 12:42:18 +01:00
dynamic.h Run clang-format 2020-09-26 21:50:15 +02:00
hash.cpp Use size_t for indices in digest_str 2022-10-15 18:08:41 +02:00
hash.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
hash_bundled.cpp Use cpp 2021-06-24 17:19:17 +02:00
hash_ctxt.h Remove useless typedef in c++ 2022-06-25 21:05:54 +02:00
hash_libtomcrypt.cpp Fix more unsafe define 2022-06-29 23:52:03 +02:00
hash_openssl.cpp Ignore openssl deprecation warning for now (fixes #5597) 2022-07-27 09:06:57 +02:00
lib.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
lock_scope.h Fix TSA warnings in Clang 15 (fixes #5548) 2022-09-15 23:31:09 +02:00
log.cpp Fix logging (fixes #6611) 2023-05-18 21:54:30 +02:00
log.h Replace all usages of C standard headers with C++ headers 2023-03-01 19:26:51 +01:00
logger.h Fix logging (fixes #6611) 2023-05-18 21:54:30 +02:00
math.h Add random_float functions with min and max arguments 2023-03-18 12:09:37 +01:00
rust.h Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
rust.rs Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
system.cpp Merge #6755 2023-06-27 19:29:43 +00:00
system.h Merge #6755 2023-06-27 19:29:43 +00:00
types.h Allow multiple addresses per server in the serverbrowser 2022-07-10 16:52:07 +02:00
vmath.h Add random_direction function 2023-03-18 12:09:37 +01:00