Andreas Kling
6edcf2f16e
WindowServer: Use StylePainter to draw the window close buttons.
2019-03-28 17:46:40 +01:00
Andreas Kling
e2cd7529ab
StylePainter: Tweak ButtonStyle::Normal highlights.
2019-03-28 17:46:24 +01:00
Andreas Kling
c7ab643883
Move LibGUI/GStyle to SharedGraphics/StylePainter.
...
I want to paint some buttons in WindowServer where we don't have LibGUI.
2019-03-28 17:32:38 +01:00
Andreas Kling
d12b6b8677
LibGUI: Tweak GScrollBar gutter color.
2019-03-28 17:29:14 +01:00
Andreas Kling
9fa21fa585
LibGUI: Add a GPainter class that inherits from Painter.
...
This gets rid of the last little piece of LibGUI knowledge in Painter.
2019-03-28 17:19:56 +01:00
Andreas Kling
326c6fd607
WindowServer: Tweak border color of active and dragging windows.
2019-03-28 17:07:58 +01:00
Andreas Kling
3dc4255eb4
LibGUI: Use GFrame to draw the frames around GItemView and GTableView.
2019-03-28 16:58:29 +01:00
Andreas Kling
1fc03a7644
LibGUI: Make GScrollableWidget a GFrame and fix up GTextEditor for it.
2019-03-28 16:14:26 +01:00
Andreas Kling
cb296ffede
LibGUI: Add a GFrame class that can be inherited by framey widgets.
...
This will gather the code for painting sunken/raised frames etc in a single
place and make it easier add a bit of pleasant shading to UI's. :^)
2019-03-28 15:30:29 +01:00
Andreas Kling
b6c5bd3d28
FileManager: Add back/forward buttons (placeholders.)
2019-03-28 03:38:23 +01:00
Andreas Kling
6e7d5e0114
Base: I drew a new filetype-image icon based on my cat friend.
2019-03-27 21:15:01 +01:00
Andreas Kling
670e376e27
Tweak the look of various UI surfaces and buttons.
2019-03-27 20:48:23 +01:00
Andreas Kling
d71820a382
LibGUI: Make the buttons in GInputBox and GMessageBox slightly taller.
2019-03-27 20:47:48 +01:00
Andreas Kling
d63528197b
Base: Add some icons and tweak some existing ones.
2019-03-27 19:41:39 +01:00
Andreas Kling
0058da734e
Kernel: Add Inode::truncate(size).
...
- Use this to implement the O_TRUNC open flag.
- Fix creat() to pass O_CREAT | O_TRUNC | O_WRONLY.
- Make sure we truncate wherever appropriate.
2019-03-27 16:42:30 +01:00
Andreas Kling
e9f2cc3595
Kernel: Save/restore the SSE context on context switch.
2019-03-27 15:27:45 +01:00
Andreas Kling
44e1e7423f
Kernel: Put a bunch of debug spam behind #ifdefs.
2019-03-27 15:07:12 +01:00
Andreas Kling
56f7b392c1
WindowServer: Move the CPU usage graph updates to a secondary thread.
...
This avoids blocking the main thread on filesystem access, which created
noticeable stutters during compilation.
2019-03-27 14:59:22 +01:00
Andreas Kling
a2fe5f8517
Kernel: Don't disable interrupts during Process destruction.
2019-03-27 14:38:32 +01:00
Andreas Kling
1592612a60
Kernel: Don't disable interrupts during Thread destruction.
2019-03-27 14:30:13 +01:00
Andreas Kling
d5508e5116
Ext2FS: Avoid a lot of redundant writes to inode block arrays.
2019-03-27 14:24:37 +01:00
Andreas Kling
750d79dcaf
Kernel: Initialize the CPU to allow SSE on startup.
...
I still need to add support for SSE to the context switching code, but now
at least one process can use it.
2019-03-27 13:40:00 +01:00
Andreas Kling
5808322556
Give the emulator testing environments 128 MB of RAM.
...
I'm working on porting GCC and it needs a fair bit of memory to run.
2019-03-27 13:02:29 +01:00
Andreas Kling
1577217ce1
LibC: Let's remember that headers are in C.
2019-03-27 12:53:05 +01:00
Andreas Kling
23bb276fcd
LibC: Run constructors on process startup.
...
Cooperate with the compiler to generate and execute the _init_array list
of constructor functions on userspace program statup. This took two days
to get working, my goodness. :^)
2019-03-27 12:48:21 +01:00
Andreas Kling
f1a2cb0882
LibC: Fix fread() EOF behavior with ungetc().
2019-03-27 05:13:28 +01:00
Andreas Kling
e145344767
LibC: Remove the validate_mallocation() stuff since Binutils hates it.
2019-03-27 05:02:02 +01:00
Andreas Kling
75207ddffd
Kernel: Load ELF executable pages lazily when possible.
...
This currently only works for "normal" processes created by fork().
It does not work for create_user_process() processes spawned by the
kernel, as those are a bit special during construction.
2019-03-27 04:01:15 +01:00
Andreas Kling
baab9f4402
LibC: Implement atexit() and strtoul().
2019-03-27 01:55:39 +01:00
Andreas Kling
2a858719be
LibM: Stub out ldexp().
2019-03-27 01:41:55 +01:00
Andreas Kling
d1e55fb4d9
LibC: Add ungetc() and automatically flush streams on fclose().
2019-03-27 01:40:55 +01:00
Andreas Kling
0c2face7b0
LibC: Add creat(), execvp() resolution, and exec*() environment inheritance.
2019-03-27 01:39:13 +01:00
Andreas Kling
fb7c7829c2
Terminal: Export a simple PATH=/bin:/usr/bin to shells.
2019-03-27 01:36:33 +01:00
Andreas Kling
aef6030a80
LibC: Time-related POSIX compliance fixes.
2019-03-27 01:31:53 +01:00
Andreas Kling
abd5931184
Kernel: Print an error when trying to load an incompatible ELF image.
2019-03-27 01:29:49 +01:00
Andreas Kling
e2a24e5746
AK: printf() should support %#x and %#o.
2019-03-27 01:29:07 +01:00
Andreas Kling
f2773e05e5
LibC: fread() should return the number of elements (not bytes) read.
2019-03-26 00:10:58 +01:00
Andreas Kling
2444a35365
Base: Tweak 16x16 "open" icon.
2019-03-25 21:22:53 +01:00
Andreas Kling
ede3565e48
Base: Add 32x32 versions of filetype-socket and filetype-symlink.
2019-03-25 14:48:23 +01:00
Andreas Kling
be604652ae
LibGUI: Add GIcon::default_icon(name).
...
This is a convenience helper to instantiate a GIcon like so:
auto icon = GIcon::default_icon("filetype-image");
This will give you the "filetype-image" icon in both 16x16 and 32x32 sizes.
2019-03-25 14:46:37 +01:00
Andreas Kling
43bb7aad4c
GItemView: Some improvements to keyboard navigation.
2019-03-25 14:13:32 +01:00
Andreas Kling
a3390b6f1c
GTextEditor: Draw a simple border around single-line editors.
2019-03-25 14:13:21 +01:00
Andreas Kling
4d3478aa71
GItemView: Hide the horizontal scrollbar since we never need it.
...
This view always relayouts the content to fit the available width, so we
don't need a horizontal scrollbar. :^)
2019-03-25 13:58:47 +01:00
Andreas Kling
20137e45f4
LibGUI: Ignore GWidget::update() on invisible widgets.
2019-03-25 13:58:30 +01:00
Andreas Kling
bc3c199bb1
GItemView: Add slightly more horizontal padding to the icon labels.
2019-03-25 13:35:52 +01:00
Andreas Kling
08085f48a0
SharedGraphics: Font::width() shouldn't add spacing to the very last glyph.
2019-03-25 13:35:24 +01:00
Andreas Kling
838a06096a
GTextEditor: Shift+Delete should delete the current line.
2019-03-25 13:14:02 +01:00
Andreas Kling
fceeb9b695
GLock: Remove some debug spam.
2019-03-25 13:05:24 +01:00
Andreas Kling
500df578fe
LibGUI+Kernel: Add a GLock class (userspace mutex.)
...
It's basically a userspace port of the kernel's Lock class.
Added gettid() and donate() syscalls to support the timeslice donation
feature we already enjoyed in the kernel.
2019-03-25 13:03:49 +01:00
Andreas Kling
108b663618
GScrollBar: Clicking in the gutter should jump directly to that position.
...
I think I like how this feels but I'm not 100% sure yet, so I'm leaving
the old feel in behind an #ifdef.
2019-03-25 05:03:40 +01:00