summaryrefslogtreecommitdiff
path: root/Userland/Applets
AgeCommit message (Collapse)Author
2023-01-29AK: Move `Stream` and `SeekableStream` from `LibCore`Tim Schumacher
`Stream` will be qualified as `AK::Stream` until we remove the `Core::Stream` namespace. `IODevice` now reuses the `SeekMode` that is defined by `SeekableStream`, since defining its own would require us to qualify it with `AK::SeekMode` everywhere.
2023-01-27Applets: Replace uses of JsonObject::get_deprecated()/get_ptr()Sam Atkins
2023-01-26LibGfx: Remove `try_` prefix from bitmap creation functionsTim Schumacher
Those don't have any non-try counterpart, so we might as well just omit it.
2023-01-17AK+Everywhere: Rename JsonObject::get() to ::get_deprecated()Sam Atkins
This is a preparatory step to making `get()` return `ErrorOr`.
2023-01-15ClipboardHistory: Add a Clear history actionTim Ledbetter
This clears the history from the table view and clears the clipboard.
2023-01-15ClipboardHistory: Ensure model is populated on startupTim Ledbetter
This ensures that, if the applet restarts, it will remain in sync with the clipboard.
2023-01-15ClipboardHistory: Update clipboard when the topmost item is deletedTim Ledbetter
2023-01-15ClipboardHistory: Don't attempt to delete an item if nothing is selectedTim Ledbetter
This prevents a crash if the delete action is invoked using the delete key while nothing is selected.
2023-01-15ClipboardHistory: Invalidate model on item removalTim Ledbetter
Not doing this caused the window to not update until the mouse was clicked again.
2023-01-13Userland: Remove a bunch of unveil calls on /sys/kernel/processesLiav A
These are not needed anymore since the introduction of the new get_root_session_id syscall.
2023-01-06LibGUI+Everywhere: Use fallible Window::set_main_widget() everywhere :^)Sam Atkins
Rip that bandaid off! This does the following, in one big, awkward jump: - Replace all uses of `set_main_widget<Foo>()` with the `try` version. - Remove `set_main_widget<Foo>()`. - Rename the `try` version to just be `set_main_widget` because it's now the only one. The majority of places that call `set_main_widget<Foo>()` are inside constructors, so this unfortunately gives us a big batch of new `release_value_but_fixme_should_propagate_errors()` calls.
2023-01-05LibGfx: Avoid rounding/truncating glyph positions till blittingMacDue
This keeps some overloads that accept ints to avoid adding calls to .to_type<float>() all over the place.
2023-01-02Everywhere: Fix badly-formatted includesBen Wiederhake
In 7c5e30daaa615ad3a2ef55222423a747ac0a1227, the focus was "only" on Userland/Libraries/, whereas this commit cleans up the remaining headers in the repo, and any new badly-formatted include.
2022-12-12LibCore: Rename `Stream::read_all` to `read_until_eof`Tim Schumacher
This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line.
2022-12-06Everywhere: Rename to_{string => deprecated_string}() where applicableLinus Groh
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-19LibGUI+Taskbar+Applets+Applications: Set various windows as Popupsthankyouverycool
Makes the Audio applet, Taskbar clock, CommandPalette, EmojiPicker, and Assistant work as Popup windows. Popups are frameless, unmovable, and unresizable by default, in addition to their preemptive function. Also sets Assistant not to obey widget min size so its search result area resizes correctly
2022-11-19LibGUI+WindowServer+Applets+Taskbar: Remove active input conceptsthankyouverycool
and the CaptureInput mode. They are a source of unneeded complexity in WindowServer and have proven prone to regressions, so this patch replaces them with a simple input preemption scheme using Popups. Popup windows now have ergonomics similar to menus: When open, a popup preempts all mouse and key events for the entire window stack; however, they are fragile and will close after WindowServer swallows the first event outside them. This is similar to how combo box windows and popups work in the classic Windows DE and has the added benefit of letting the user click anywhere to dismiss a popup without having to worry about unwanted interactions with other widgets.
2022-11-01Everywhere: Mark dependencies of most targets as PRIVATETim Schumacher
Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
2022-10-25Applets: Use new global variables at /sys/kernel/ directoryLiav A
2022-10-03Userland: Tighten promises by removing 'proc' where it isn't usedTimothy Flynn
This is a partial revert of commit 7af5eef. After 97d15e9, the 'proc' promise is not needed for operations using getsid(). This also fixes launching several applications in which 7af5eef added the 'proc' promise only in the second call to pledge().
2022-10-03SystemServer+LoginServer+Userland: Switch to sid-based socketsPeter Elliott
This commit does three things atomically: - switch over Core::Account+SystemServer+LoginServer to sid based socket names. - change socket names with %uid to %sid. - add/update necessary pledges and unveils. Userland: Switch over servers to sid based sockets Userland: Properly pledge and unveil for sid based sockets
2022-09-18Applets/ResourceGraph: Port to Core::StreamSam Atkins
2022-09-18Applets/Network: Stop marking methods virtual unnecessarilySam Atkins
None of these are overridden, and NetworkWidget is a final class.
2022-09-18Applets/Network: Remove `include_loopback` parameterSam Atkins
This is always false, so we can do without it and simplify things a little.
2022-09-18Applets/Network: Port to Core::StreamSam Atkins
2022-09-12Everywhere: Use my very shiny serenityos.org email :^)networkException
2022-09-09Keymap: Rename context menu item "Settings" to "Keyboard Settings"Cr4xy
This is a very small change to improve consistency between applet context menu item names.
2022-08-16WindowServer+WorkspacePicker: Adjust active and inactive colorsthankyouverycool
Now uses the Selection ColorRole for the active desktop and a slightly darkened Window for inactive ones. Several themes use the same color for thread highlighting and inactive windows which was causing frames to draw without the correct perception of depth.
2022-08-14Base: Launch AudioServer at session start-upLucas CHOLLET
2022-08-14Base: Launch NotificationServer at session start-upLucas CHOLLET
2022-08-14WorkspacePicker: Add missing unveil(nullptr, nullptr)Andreas Kling
Thanks Dex for pointing this out! :^)
2022-08-14WorkspacePicker: Tweak applet height and draw frame around desktop rectsAndreas Kling
2022-08-14WorkspacePicker: Allow opening workspace settings via a context menuAndreas Kling
Previously you had to open Display Settings and navigate to the "Workspaces" tab in order to edit workspace settings. This patch adds a context menu shortcut to the same place.
2022-08-01WorkspacePicker: Hide tray applet entirely when there's only 1 workspaceAndreas Kling
Instead of collapsing to a 1x1 applet, we now hide the applet window entirely, which stops it from taking up space in the system tray.
2022-07-22WorkspacePicker: Immediately update active workspace on click or scrollnetworkException
This patch makes the picker applet react instantly to a click on a workspace or scroll on the widget, instead of waiting for an event from WindowServer and as such until the switching animation has ended. This synchronises the switching with the overlay shown. Note that WindowServer events will still get handled in case the workspace were to be updated from somewhere else.
2022-07-22WorkspacePicker: Use full words for some variable namesnetworkException
This patch updates the spelling of "col" to be "column" and "v{col,row}s" to be spelled out as "workspace_{row,column}s".
2022-07-21Keymap+WindowServer: Add context menu to keymap appletTimur Sultanov
Adding a context menu which lists configured keymaps and allows setting the active keymap
2022-07-19LibAudio: Rename ConnectionFromClient to ConnectionToServerkleines Filmröllchen
The automatic nomenclature change for IPC sockets got this one wrong.
2022-07-14Kernel+Userland: Rename prefix of user_physical => physicalLiav A
There's no such supervisor pages concept, so there's no need to call physical pages with the "user_physical" prefix anymore.
2022-07-13WorkspacePicker: Hide applet if size == 0Filiph Sandström
2022-07-12Everywhere: Replace single-char StringView op. arguments with charssin-ack
This prevents us from needing a sv suffix, and potentially reduces the need to run generic code for a single character (as contains, starts_with, ends_with etc. for a char will be just a length and equality check). No functional changes.
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-07-12Everywhere: Split Error::from_string_literal and Error::from_string_viewsin-ack
Error::from_string_literal now takes direct char const*s, while Error::from_string_view does what Error::from_string_literal used to do: taking StringViews. This change will remove the need to insert `sv` after error strings when returning string literal errors once StringView(char const*) is removed. No functional changes.
2022-07-12Userland: Convert command line arguments to String/StringViewsin-ack
StringView was used where possible. Some utilities still use libc functions which expect null-terminated strings, so String objects were used there instead.
2022-06-03Applets: Use spawn_or_show_error() for common spawn patternMacDue
2022-06-01LibGUI: Fix typo in ConnectionToWindowManagerServerOlivier De Cannière
2022-05-28Applets/ResourceGraph: Open network monitor when clicking network graphMacDue
(Previously, it would open the performance monitor tab)
2022-05-25Userland: Use GUI::Process::spawn_or_show_error() for spawn() from a GUIMacDue
2022-05-25LibCore: Return ErrorOr<pid_t> and support arguments in Process::spawnMacDue
This makes the wrapper more like the rest in LibCore, and also removes the annoying limitation of not supporting arguments. There are three overloads one for String, char const *, and StringView argument lists. As long as there are <= 10 arguments the argv list will be allocated inline, otherwise on the heap.