Michel Hermier
51ad3da999
Kernel: Remove unused MBRPartitionTable::m_partitions_count.
2021-03-26 16:54:05 +01:00
Michel Hermier
4ac49eabd5
Kernel: Remove unused FileBlockCondition::m_file.
2021-03-26 16:54:05 +01:00
Michel Hermier
a359f477a7
Kernel: Remove unused EBRPartitionTable::m_partitions_count.
2021-03-26 16:54:05 +01:00
Michel Hermier
37be679d6e
Kernel: Remove unused AHCIPort::ScatterList::m_device_block_size.
2021-03-26 16:54:05 +01:00
Andreas Kling
ecb0ae9c33
WindowServer: Keep menu open when activating a menu item with Ctrl held
...
This makes it easy to "try out" different options (like system themes!)
in a menu without having to re-open the menu over and over. :^)
2021-03-26 14:45:15 +01:00
Andreas Kling
b31b904ad0
WindowServer: Redraw all menus on system theme change
2021-03-26 14:42:38 +01:00
Andreas Kling
4b6fba1e4c
WindowServer+LibGfx: Make menubar menus slightly larger
...
Also make sure the left/right padding is equally large.
2021-03-26 14:25:37 +01:00
Andreas Kling
3020f5efd9
Taskbar: Add more prominent Help app icon in the start menu
2021-03-26 13:54:56 +01:00
Andreas Kling
b8a9f433f9
Taskbar: Move "About SerenityOS" to the top of the start menu
2021-03-26 13:31:10 +01:00
Linus Groh
b220c89c5c
WindowServer: Adjust position of flipped submenus by menu item height
...
Fixes #5950 .
2021-03-26 09:25:22 +01:00
Linus Groh
8461100bf7
WindowServer: Add clip rect to menubar painter
...
Fixes #5951 .
2021-03-26 09:25:22 +01:00
Andreas Kling
6203a4a2e9
WindowServer: Remove unused Menu->MenuBar link and "title font"
...
We kept a backpointer from the Menu to its containing MenuBar, but it
was not used for anything so let's remove it.
Since all menus have the same font now, there's no need to track a
separate "title font".
2021-03-26 09:12:32 +01:00
Andreas Kling
dfb81242f3
WindowServer: Redraw window menubars when moving with arrow keys
...
Also, make sure we don't draw a menu in hovered state while another
menu is open.
Fixes #5949 .
2021-03-26 08:59:32 +01:00
Andreas Kling
6ae174f80a
WindowServer: Remove some leftover unused menubar things
2021-03-26 08:54:33 +01:00
Andreas Kling
e94e94becc
Base: Remove SystemMenu from SystemServer.ini
2021-03-26 08:20:53 +01:00
Andreas Kling
baae3f706a
Taskbar: Only show H:M:S by default, move date to tooltip
2021-03-25 23:32:00 +01:00
Andreas Kling
e9db10e3a9
WindowServer+LibGUI: Remove the global menubar :^)
...
This leaves menu applets running but invisible, and that's a regression
we need to take care of obviously. But not today, because it's getting
too late.
2021-03-25 23:27:11 +01:00
Andreas Kling
1108c41790
WindowServer: Don't fill the active menubar menu with selection color
2021-03-25 23:19:57 +01:00
Andreas Kling
128c4c2db0
Base: Tweak "Redmond 2000" theme menu colors
2021-03-25 23:19:41 +01:00
Andreas Kling
327866520a
WindowServer: Remove "system menu" concept from WindowServer
2021-03-25 23:08:34 +01:00
Andreas Kling
619a223800
SystemMenu: Remove SystemMenu service
...
This has been replaced by the Taskbar's start menu.
2021-03-25 23:08:29 +01:00
Andreas Kling
73a2045c5b
Taskbar: Add start menu :^)
...
This will replace the system menu in the top left of the screen.
The button behavior doesn't feel quite perfect yet, but this will
work for now!
2021-03-25 22:55:10 +01:00
Andreas Kling
32c6e31f4c
LibGUI: Make it possible to tweak icon spacing on a GUI::Button
...
This is the space between the icon and the text on buttons that have
both icon and text.
2021-03-25 22:41:40 +01:00
Andreas Kling
11e190b323
Base: Remove clock and username applets from startup
...
The clock has moved to the taskbar, and let's see how we feel without
the username being on screen all the time.
2021-03-25 22:40:51 +01:00
Andreas Kling
0668b5beef
Taskbar: Integrate clock widget into taskbar window
...
Instead of running the clock widget as a separate menu applet,
let's just draw a clock here in the taskbar window.
2021-03-25 22:14:09 +01:00
Andreas Kling
fc84076f18
WindowServer: Remove SetApplicationMenubar IPC message
2021-03-25 22:14:09 +01:00
Andreas Kling
78b12e1521
Userland: Turn all application menus into window menus :^)
2021-03-25 22:14:09 +01:00
Andreas Kling
fcc8e3484f
WindowServer: Remove the global app menu
...
The SetApplicationMenu IPC message is still there, since we also need
to clean up all of the client code before we can remove that.
2021-03-25 22:14:09 +01:00
Andreas Kling
05cc7d69ac
WindowServer: Tweak the look of menus
...
Paint menus with a flatter outline instead of giving them the regular
window border.
2021-03-25 22:14:09 +01:00
Andreas Kling
91a68cb5d8
Base: Tweak menu colors in default theme a little bit
...
Let's brighten up the menu stripe for a slightly fresher look.
2021-03-25 22:14:09 +01:00
Andreas Kling
e76771bfad
WindowServer+LibGfx: Show menus in windows! :^)
...
This patch begins the transition away from the global menu towards
per-window menus instead.
The global menu looks neat, but has always felt clunky, and there
are a number of usability problems with it, especially in programs
with multiple windows.
You can now call GUI::Window::set_menubar() to add a menubar to
your window. It will be specific to that one window only.
2021-03-25 22:14:09 +01:00
Andreas Kling
1daaa4f38d
LibGUI: Add GUI::MenuBar::menubar_id()
...
Just exposing the menubar ID on the WindowServer side.
2021-03-25 22:14:09 +01:00
lucastarche
115348147d
TextEditorWidget: Whitespace related options
2021-03-25 11:01:49 +01:00
lucastarche
6d3d097832
TextEditor: Visualize leading whitespace
2021-03-25 11:01:49 +01:00
lucastarche
f6892d1ede
TextEditorWidget: Added tab width submenu
2021-03-25 11:01:49 +01:00
lucastarche
0071dc7be4
TextEditor: Added a setter for soft_tab_width
2021-03-25 11:01:49 +01:00
Idan Horowitz
78f0cabb17
LibJS: Use Utf8View for string prefix checks
...
This commit replaces the usage of String::starts_with with
Utf8View::starts_with, which first decodes the utf8 encoded
string, and as such can take things like overlong encoded
sequences into account (which could otherwise cause the prefix
check to be inconsistent with the following code points check).
2021-03-25 10:59:34 +01:00
Idan Horowitz
edecf8f6a3
AK: Add starts_with to Utf8View
...
Unlike String/StringView::starts_with this compares utf8 code points
instead of "characters" (bytes), which is important when handling
aribtary utf-8 input that could include overlong characters.
2021-03-25 10:59:34 +01:00
David Isaksson
3f9ac88c6e
PropertiesWindow: Show the file size in a human readable format
2021-03-25 10:59:11 +01:00
David Isaksson
17c0349d23
AK: Add longer human readable size to string helper function
...
Wraps the existing AK::human_readable_size function but will always
display the bytes in the base unit as well as the shorter string with
one decimal. E.g. "14 KiB (14396 bytes)".
2021-03-25 10:59:11 +01:00
AnicJov
d3630a7b1f
Ports: Fix m4
...
This patch fixes the m4 port by removing unneeded make subdirs that
would cause the build to fail on some systems. We now only care about
the `lib` and `src`.
2021-03-25 10:58:45 +01:00
Linus Groh
d182f3224a
checksum: Use new format functions
2021-03-25 10:58:26 +01:00
Tom
7626f9e0bb
LibGUI: Process pending window updates after handling input events
...
Since input events may trigger window portions to be invalidated,
rather than making a round trip to WindowServer to get paint events
we can simply fake an immediate paint event and update the window
contents more quickly.
Improves #5881
2021-03-24 21:03:29 +01:00
Linus Groh
edb6ada3ef
test-js+test-web: Replace JSTestRunnerCounts with Test::Counts
2021-03-24 20:38:20 +01:00
Linus Groh
bce1f956e7
LibTest: Add Test::Counts
...
This is the JSTestRunnerCounts struct from test-js and test-web (but
using unsigned integers - no negative counts). Not all test runners will
use all fields, but all will want to keep track of various counts.
2021-03-24 20:38:20 +01:00
Linus Groh
ad4cc19ca0
Meta: Pass arguments to 'serenity.sh run lagom' executable
2021-03-24 20:38:05 +01:00
David Isaksson
391d1ddfd8
Spreadsheet: Ensure that cell exists on drop event for text data
...
Fixes crash where we tried to get a cell to set text from the drop
event. We now create the cell if it does not already exists.
Fixes issue #5923
2021-03-24 20:36:41 +01:00
Cesar Torres
6179c9ad25
jp: add man page
2021-03-24 20:34:26 +01:00
Cesar Torres
6c2f690a74
jp: set input to stdin if there is no file specified and add
...
and customizable indentation level
An example: cat /proc/net/adapters | jp
Another example: cat /proc/all | jp -i 2 (indents are set to 2 spaces, instead of 4 by default)
2021-03-24 20:34:26 +01:00
networkException
4f22c92b99
Keymap: Added de-macintosh.json for German Mac keyboards
...
Some special characters might not match the exact layout
from macOS as this was tested on Linux, but it is close
enough to be well usable
2021-03-24 15:57:49 +01:00