Andreas Kling
56701f91f9
ln: Make the 'path' argument optional
...
If 'path' is omitted, we create a link with the basename of whatever
the target is. This matches what other systems do.
2020-12-16 23:26:35 +01:00
Linus Groh
3d7b8de64f
Shell: Don't run commands with failing redirections
...
Fixes #3423 .
2020-12-16 23:26:19 +01:00
Andreas Kling
5eacf62ba3
FileManager: Fix assertion when drag&dropping a file to the desktop
2020-12-16 19:40:24 +01:00
Andreas Kling
226ac8a47b
LibGUI: Don't fill IconView item text background unless actually wanted
...
We were always filling the rect behind item texts, even when the widget
had fill_with_background_color() == false.
2020-12-16 19:39:26 +01:00
Andreas Kling
4236127fb9
LibGUI: Make the IconView cursor rect show up on the desktop
...
It was getting lost in some bogus coordinate conversion math while
trying to constrain unusually long item texts.
2020-12-16 19:39:26 +01:00
Andreas Kling
50aab509ce
LibGUI: Add ScrollableWidget helpers for rect conversion
...
to_content_rect() and to_widget_rect() help you convert rects from one
coordinate space to the other.
2020-12-16 19:39:26 +01:00
Dan MacDonald
00dc615d53
Meta: Add Hardware Compatbility List
2020-12-16 17:30:09 +01:00
Brendan Coles
b9d99849ad
Userland: Add beep utility
2020-12-16 17:29:28 +01:00
Brendan Coles
3c9a3a9405
EchoServer: Add a simple echo server
2020-12-16 17:29:12 +01:00
Brendan Coles
a46e48089d
UserspaceEmulator: Implement beep syscall
2020-12-16 17:27:20 +01:00
Brendan Coles
3e72fd68b0
TelnetServer: replace getopt with LibCore ArgsParser
2020-12-16 17:26:55 +01:00
Brendan Coles
9d4a0ec50a
Games: Add Pong
2020-12-16 17:12:46 +01:00
Conrad Pankoff
bb4e4921c0
LibCore: Expose some Socket properties to make then inspectable
2020-12-16 17:12:13 +01:00
Conrad Pankoff
ee3056ba11
IRCClient: Remove unnecessary temporary variable from connect()
2020-12-16 17:11:52 +01:00
Andreas Kling
04bc654ae7
FileManager: Make symlink icons show up nicely in properties dialog
2020-12-16 16:09:27 +01:00
Andreas Kling
525509cfe6
LibWeb: The fallback 'color' value should be black, not transparent
...
Fixes #4425 .
2020-12-16 15:46:43 +01:00
Andreas Kling
2759d518b7
FileManager+LibGUI: Draw the item text for desktop icons with shadow
...
This makes it look nice regardless of wallpaper or background color.
2020-12-16 12:16:14 +01:00
Andreas Kling
0fef901513
LibGUI: Show app icons for executables with associated .af files
...
This is a rather ugly hack just to get app icons to show up in the
FileManager. It would be a lot nicer to embed icons in executables
instead but it's not obvious to me how to do that.
2020-12-16 12:08:55 +01:00
Andreas Kling
c44dbabda1
LibGUI: Generate nicer icons for symlinked files
...
Instead of symlinks showing up with the "filetype-symlink" icon, we now
generate a new icon by taking the target file's icon and slapping a
small arrow emblem on top of it.
This looks rather nice. :^)
2020-12-16 12:08:48 +01:00
Andreas Kling
3d5e30a1e6
LibGUI: Add GUI::Icon::sizes()
...
This gives you a Vector<int> with all the sizes contained in the Icon.
2020-12-16 11:53:23 +01:00
AnotherTest
eb7a943641
Meta: Set a 10 second timeout on Shell tests
...
Shell-backgrounding seems to be deadlocking at times, until that's
fixed, let's not take 5 hours to fail the build.
2020-12-15 20:58:32 +01:00
AnotherTest
4668dfa7c7
Shell: Make Subshell actually create a subshell
...
Previously, a "subshell" would just be executed in the parent shell.
2020-12-15 20:58:32 +01:00
Andreas Kling
72bd672da0
LibWeb: Remove use of specified_style() in Layout::ImageBox
2020-12-15 20:50:58 +01:00
Andreas Kling
613764b83c
LibWeb: Actually apply recomputed style to element's layout node
...
Otherwise fetching stuff via LayoutNode::style() will have stale values
since we were only updating the specified_style() here.
LayoutNode::specified_style() should eventually go away since there's
no need to carry those uncooked values around with the layout tree.
2020-12-15 20:49:11 +01:00
Andreas Kling
ef61430738
LibWeb: Update text-decoration hack to use text-decoration-line
...
We have a hack that propagates text-decoration-line through inheritance
even though it's not an inherited property. Once we implement the CSS
cascade properly we can stop doing this.
2020-12-15 20:48:16 +01:00
Andreas Kling
17c529e6c5
LibWeb: Generate the CSS::ValueID enum and its helper functions
2020-12-15 20:40:10 +01:00
Andreas Kling
92d8e559ba
LibWeb: Oops, not all length boxes should default to 'auto' values
...
Only the offset box (left/top/right/bottom) box defaults to 'auto'.
Both the padding and margin boxes default to '0' for all values.
2020-12-15 20:01:00 +01:00
Andreas Kling
30685a7714
LibWeb: Add equals() for LengthStyleValue and ColorStyleValue
...
The default equals() does to_string() on both sides which is pretty
silly when they are of the same type.
2020-12-15 19:40:06 +01:00
Andreas Kling
58bade25dd
LibWeb: Add hack to disable StyleInvalidator while parsing document
...
Running a StyleInvalidator for every attribute set in a new document
was making it impossible to load larger sites. :^)
2020-12-15 19:33:53 +01:00
Andreas Kling
23f70535e2
LibWeb: Dimension inline-block and replaced boxes during splitting
...
Don't wait until fragment layout to compute width/height of boxes on
the line, just do it while we're splitting into lines.
2020-12-15 19:33:53 +01:00
Andreas Kling
4a9dcd974a
LibWeb: Remove unused Element::set_attributes()
2020-12-15 19:33:53 +01:00
Andreas Kling
9c76c4f0cf
LibWeb: Use IdentifierStyleValue for CSS 'list-style-type'
2020-12-15 19:33:53 +01:00
Andreas Kling
c630ae517e
LibWeb: Put final foreground/background colors in LayoutStyle
...
This way we don't have to look them up in the CSS::StyleProperties
every time we want to paint with them.
2020-12-15 19:33:53 +01:00
Andreas Kling
78a51933ad
LibWeb: Use IdentifierStyleValue for CSS 'text-transform'
2020-12-15 19:33:53 +01:00
Andreas Kling
4d7ce81835
LibWeb: Use IdentifierStyleValue for CSS 'text-decoration-line'
...
Also 'text-decoration' is actually a shorthand, so treat it that way.
2020-12-15 19:33:53 +01:00
Andreas Kling
dd9a77099f
FileManager: Simplify breadcrumb bar hook callback
...
Now that we store each partial path with the segments, we can just
open up the path of the segment you clicked on.
2020-12-15 19:33:53 +01:00
Andreas Kling
7e78e4b232
LibWeb: Make CSS "background: none" work again
...
This broke since "none" is now always going to be an identifier value.
2020-12-15 19:33:53 +01:00
Brendan Coles
d8c533f588
Breakout: use pledge and unveil
2020-12-15 14:12:55 +01:00
Brendan Coles
e3114667bc
Breakout: randomize ball start trajectory and velocity
2020-12-15 14:12:37 +01:00
Andreas Kling
d410449d87
HackStudio: Don't take LexicalPath as argument
...
Also make use of LexicalPath::has_extension() in one place.
2020-12-15 11:58:47 +01:00
Andreas Kling
4befc2c282
Kernel: Avoid null dereference in sys$profiling_disable()
...
If we can't create a profiling coredump object, we shouldn't try to
call write() on it.
2020-12-15 11:25:51 +01:00
Andreas Kling
be0816507a
Kernel: Remove harmless OOB ELF header access in core dump generation
2020-12-15 11:24:46 +01:00
Andreas Kling
28c042e46f
Kernel: Make CoreDump::m_num_program_headers const
...
This makes it an error to assign to it after construction.
2020-12-15 11:24:46 +01:00
Andreas Kling
ff8bf4db8d
Kernel: Don't take LexicalPath as argument
...
LexicalPath is a big and heavy class that's really meant as a helper
for extracting parts of a path, not for storage or passing around.
Instead, pass paths around as strings and use LexicalPath locally
as needed.
2020-12-15 11:17:01 +01:00
Andreas Kling
bcabbbda8b
Ports: Bump GNU make to version 4.3
2020-12-15 01:06:18 +01:00
Andreas Kling
fb8ae33633
Ports: Bump ncurses to version 6.2
2020-12-15 00:38:57 +01:00
Linus Groh
5e7945e26f
LibWeb: Add a simple StyleInvalidator class
...
This patch adds a simple, naive & inefficient class for document-wide
style invalidation, e.g. after element attribute updates. During
construction it collects a HashMap of a document's elements and their
matching rules, during destruction it does the same and then compares
the results; dirtying all elements that have a different number or order
of matching rules afterwards.
Much room for improvement, but it solves the problem of stale element
styling after attribute updates for now :^)
Fixes #4404 .
2020-12-14 23:38:08 +01:00
Itamar
9a9d655abe
Chess: Add LibCore as a dependency
...
This fixes Dynamic Loader crash because of an unresolved LibCore symbol
2020-12-14 23:05:53 +01:00
Itamar
1efbbf3ac3
Kernel: Don't generate a backtrace when a process exists with non-zero
...
..status
2020-12-14 23:05:53 +01:00
Itamar
b1e01066fe
Lagom/Fuzzers: Fix creation of ELF::Loader
2020-12-14 23:05:53 +01:00