Age | Commit message (Collapse) | Author |
|
This fixes an issue where a corrupted LZW code can result in the first
element of an empty buffer being accessed.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=27863
|
|
Spec: https://tc39.es/ecma262/#sec-object.prototype.isprototypeof
|
|
Fixes #4583.
|
|
Draw a heavy shadow frame around focused push buttons for emphasis.
For now I've used the ThreedShadow2 color role as it feels dark enough.
|
|
Previously we would only auto-focus it when choosing a save location.
It seems nice to have the same behavior when opening a file.
|
|
This way we can use it instead of icon_for_path() in a bunch of places
and avoid loading the full FileIconProvider configuration.
|
|
This is mostly based on TextDocument's similar methods, these will
help implement searching within the terminal application.
The support for unicode code points is shaky at best, and should
probably be improved further.
|
|
Based on GUI::TextRange, This is both a bit more expressive and will
eventually be used for searching within the terminal
|
|
This was mentioned in #4574, and the more I think about it the more it
feels just right - let's move it there! :^)
Having to link LaunchServer against LibGUI explicitly should've been
telling enough...
|
|
Use the inactive selection color for item icon tinting when the item
view is not focused.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
clang trunk with -std=c++20 doesn't seem to properly look for an
aggregate initializer here when the type being constructed is a simple
aggregate (e.g. `struct Thing { int a; int b; };`). This template fails
to compile in a usage added 12/16/2020 in `AK/Trie.h`.
Both forms of initialization are supposed to call the
aggregate-initializers but direct-list-initialization delegating to
aggregate initializers is a new addition in c++20 that might not be
implemented yet.
|
|
This changes the signatures for FILE::seek and FILE::tell, to use
`off_t` as they use lseek internally. `fpos_t` is also redefined to use
`off_t`.
Dr. POSIX says that fpos_t is:
> A non-array type containing all information needed to specify uniquely
> every position within a file.
In practice, most *NIX typedef it to `off_t`, or a struct containing an
`off_t` and some internal state.
|
|
|
|
|
|
Numeric keys were interpreted as their source text, leading to
something like {0x10:true} to end up as {"0x10":true}
instead of {16:true}
|
|
Based on this recommendation in the Unicode standard:
https://www.unicode.org/versions/Unicode13.0.0/ch23.pdf (Page 32)
|
|
|
|
|
|
|
|
Also use "// prettier-ignore" comments where necessary rather than
excluding whole files (via .prettierignore).
|
|
This way, if you press F2 to edit the name of an item, the name will be
selected in the editor that pops up, and you can start typing a new
name for it immediately.
|
|
This fixes a visual glitch where editing the name of an item in an
IconView would cut off the edited text.
|
|
Move the shadow 1 more pixel away from the unhovered icon location,
making a total 2 pixel distance between the icon and the shadow.
Also tweak the shadow color to be a darkened variant of the base color
underneath the icon.
|
|
It doesn't compile with just the forwarding headers when nothing else
(e.g. Button.h) pulls in Bitmap.h.
|
|
|
|
Sometimes you might want your icons to flow from top-to-bottom instead
of from left-to-right. :^)
|
|
Stuff that's only used internally by the class is nice to keep out of
the header when possible.
|
|
This was a goofy kernel API where you could assign an icon_id (int) to
a process which referred to a global shbuf with a 16x16 icon bitmap
inside it.
Instead of this, programs that want to display a process icon now
retrieve it from the process executable instead.
|
|
This was the last remaining client of the per-process icon_id.
|
|
|
|
Oops, I accidentally shadowed the outer scope's "decrypted" ByteBuffer
which caused us to throw away the buffer too early.
Fixes #4533.
|
|
Make it tab-focusable and activate it with the return key. :^)
|
|
We were setting a tooltip when the text overflowed the *window* width,
make this more general by basing it on the *widget* width.
|
|
|
|
Remove some unnecessary includes and make the constructor private.
|
|
|
|
Problem:
- C functions with no arguments require a single `void` in the argument list.
Solution:
- Put the `void` in the argument list of functions in C header files.
|
|
|
|
|
|
|
|
|
|
|
|
This is needed by various String.prototype operations, as well as
the RegExp constructor.
|
|
Fixes #4536.
|