Sam Atkins
e84b3e7110
BrowserSettings: Implement restoring default values
2021-11-26 22:14:56 +01:00
Sam Atkins
f2b8ae7d86
BrowserSettings: Add preferred-color-scheme setting
2021-11-26 22:14:56 +01:00
Sam Atkins
11466c5316
BrowserSettings: Add setting for search engine
2021-11-26 22:14:56 +01:00
Sam Atkins
e927048754
Browser: Move search engine definitions to a json file
...
This both makes them configurable, and means that we can read them from
other applications, such as BrowserSettings. :^)
2021-11-26 22:14:56 +01:00
Sam Atkins
1933076143
Browser+BrowserSettings: Persist the "show bookmarks bar" setting
...
Previously this setting was only temporary, but we now save/load it from
the config file.
2021-11-26 22:14:56 +01:00
Sam Atkins
8a284be5c7
BrowserSettings: Create a BrowserSettings application :^)
...
Browser has a bunch of settings, but most are non-trivial to add here.
So far, these are implemented:
- Homepage URL
- Whether to close download windows when they complete
The others will be added in subsequent commits.
2021-11-26 22:14:56 +01:00
Karol Kosek
20191b58e2
DisplaySettings: Update wallpaper config path only on success
...
The Window Server is ignoring incorrect files since 235f39e449
, so let's
not update the config when that happens and an error message instead!
2021-11-26 11:30:55 -08:00
Karol Kosek
e56ffd11ce
DisplaySettings: Always save the background color to the config
...
Previously, you could notice that the background color isn't being
updated when you picked a small bitmap image with the 'center' mode.
2021-11-26 11:30:55 -08:00
Ralf Donau
1c59cfa28c
SystemMonitor: Remove unveiling /tmp/portal/config
2021-11-25 08:50:31 +01:00
kleines Filmröllchen
a099a77e82
SoundPlayer+LibDSP: Move the FFT implementation to LibDSP
...
LibDSP can greatly benefit from this nice FFT implementation, so let's
move it into the fitting library :^)
Note that this now requires linking SoundPlayer against LibDSP. That's
not an issue (LibDSP is rather small currently anyways), as we can
probably make great use of it in the future anyways.
2021-11-24 23:45:08 +00:00
Andreas Kling
4cbf7f24be
Terminal: Tighten lambda captures in create_find_window()
2021-11-24 23:32:43 +01:00
Andreas Kling
1749442a1c
Terminal: Use LibCore syscall wrapper for ptsname()
2021-11-24 23:25:03 +01:00
Andreas Kling
6b587714e8
Terminal: Use ErrorOr and TRY() when setting up the "find" dialog
2021-11-24 23:11:11 +01:00
Andreas Kling
0ff9df3cd6
Terminal: Use TRY() a lot more in serenity_main()
2021-11-24 23:07:31 +01:00
Andreas Kling
bc2ee02ce0
FileManager: Use TRY() a lot more in the main functions :^)
2021-11-24 23:07:31 +01:00
Maciej
700c76ba23
CrashReporter: Don't visualize whitespace in memory regions text editor
...
This was visible for memory regions with empty name.
2021-11-24 19:44:02 +01:00
Andreas Kling
dbab20782e
LibGUI: Make FilteringProxyModel factory function return ErrorOr
2021-11-24 13:52:01 +01:00
Andreas Kling
71414821b4
Help: TRY() all the things in serenity_main() :^)
...
This patch makes use of all the new fallible APIs in LibGUI together
with TRY() to catch and propagate errors. The main error getting caught
is allocation failures while trying to construct the Help UI.
It's quite interesting to see how the code changes as more and more
fallible calls get branded as such by wrapping them in TRY().
There's a lot of repetitive "TRY(try_foo())" going on right now. Once
this becomes the dominant programming pattern, we can drop the "try_"
prefix everywhere. :^)
2021-11-24 13:52:01 +01:00
Andreas Kling
b6f49924be
LibDesktop: Make allowlist APIs return ErrorOr<void>
...
This makes it very smooth to use TRY() when setting up these lists,
as you can see in the rest of this commit. :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
f526325e24
ImageViewer: Port to LibMain :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
ba4fd8fa15
FontEditor: Port to LibMain :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
973cb0a49e
Calculator: Port to LibMain :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
31867bed5c
KeyboardSettings: Port to LibMain :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
10b5393506
MouseSettings: Port to LibMain :^)
2021-11-24 00:25:23 +01:00
Andreas Kling
db79f1cb78
Welcome: Port to LibMain :^)
2021-11-24 00:25:22 +01:00
Andreas Kling
e7d4622ce0
Help: Port to LibMain :^)
2021-11-24 00:25:22 +01:00
Andreas Kling
6536198693
TextEditor: Port to LibMain :^)
...
This opens up using TRY() for syscalls and Core::Object creation.
2021-11-23 15:44:59 +01:00
Andreas Kling
58fb3ebf66
LibCore+AK: Move MappedFile from AK to LibCore
...
MappedFile is strictly a userspace thing, so it doesn't belong in AK
(which is supposed to be user/kernel agnostic.)
2021-11-23 11:33:36 +01:00
Andreas Kling
21a5fb0fa2
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
...
With this change, System::foo() becomes Core::System::foo().
Since LibCore builds on other systems than SerenityOS, we now have to
make sure that wrappers work with just a standard C library underneath.
2021-11-23 11:33:36 +01:00
Mustafa Quraish
4d302e0e88
Everywhere: Use Application::construct() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Mustafa Quraish
2fbcab46bf
Everywhere: Use ArgsParser::parse() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Pascal Puffke
ca7b603578
Mail: Port to LibMain
2021-11-22 23:56:22 +01:00
Pascal Puffke
41b80f3d85
Piano: Port to LibMain
2021-11-22 23:56:22 +01:00
Pascal Puffke
61408e2397
PDFViewer: Port to LibMain
2021-11-22 23:56:22 +01:00
Pascal Puffke
bec7ffaf0a
PixelPaint: Port to LibMain
2021-11-22 23:56:22 +01:00
Andreas Kling
c5c54f634e
FileManager: Port to LibMain :^)
...
This simplifies a handful of calls to pledge() and sigaction().
2021-11-22 23:52:47 +01:00
Sam Atkins
97eb662e62
Browser: Scope bookmark actions so that they don't block the delete key
...
This fixes #10940 .
Previously, all presses of the Delete key without a modifier in Browser
were uselessly consumed by the "Delete" action in the bookmark context
menu.
2021-11-22 23:48:10 +01:00
kleines Filmröllchen
b14a64b3c8
Piano: Move to LibDSP's Classic synthesizer
...
Almost all synthesizer code in Piano is removed in favor of the LibDSP
reimplementation.
This causes some issues that mainly have to do with the way Piano
currently handles talking to LibDSP. Additionally, the sampler is gone
for now and will be reintroduced with future work.
2021-11-22 22:26:17 +01:00
Ben Wiederhake
afc456edd6
PixelPaint: Use better-fitting image size
...
This makes the default image fit perfectly into the default viewport,
which means the first fit_image_to_view call will end up with a scale of
exactly 1. This scale level has no visual artifacts, which is the more
intuitive 'default' behavior.
Fixes #10975 .
2021-11-22 22:14:53 +01:00
Ben Wiederhake
177478dadf
PixelPaint: Add interactive zoom ComboBox to toolbar
...
Before, there was nothing that tells the user the current zoom level,
which is unknown after a 'fit to image' (the initial state).
2021-11-22 22:14:53 +01:00
Ben Wiederhake
9013d0fe38
PixelPaint: Add ability to fit to either width, height, or image
2021-11-22 22:14:53 +01:00
Ben Wiederhake
be697a440f
PixelPaint: Allow setting ImageEditor scale and listening for changes
2021-11-22 22:14:53 +01:00
Ben Wiederhake
7f962cd9d3
PixelPaint: Floor effective viewport size to whole integers
...
We don't have fractional pixels available, so don't attempt to use them.
2021-11-22 22:14:53 +01:00
Pedro Pereira
272f7c340e
3DFileViewer: Port to LibMain
...
Simplified one pledge() and five unveil() by using TRY().
2021-11-22 21:56:04 +01:00
Andreas Kling
05e45bfdc5
Browser: Port to LibMain :^)
2021-11-22 19:47:14 +01:00
Andreas Kling
e388782f60
Terminal: Port to LibMain :^)
...
This simplifies a bunch of error handling and makes the main function
quite a bit shorter.
It will become shorter yet, as we get better at propagating errors. :^)
2021-11-22 19:28:31 +01:00
Tim Schumacher
8d5fb99703
CrashReporter: Show the available memory region information
2021-11-21 17:29:08 +00:00
Ben Wiederhake
69cbaac50a
FontEditor: Make glyph parsing more robust
...
In particular, we sanity-check the received width, height, and buffer
size, before allocating.
2021-11-21 11:49:06 +00:00
Ben Wiederhake
f22c0ffe0c
LibGUI+Everywhere: Make sync requests to Clipboard server more obvious
2021-11-21 11:49:06 +00:00
Ben Wiederhake
81128c5100
Browser: Make paste access to Clipboard atomic
...
This avoids data race issues and saves a synchronous request to the
ClipboardServer.
2021-11-21 11:49:06 +00:00