summaryrefslogtreecommitdiff
path: root/MenuApplets
AgeCommit message (Collapse)Author
2021-01-09MenuApplets: Open the correct tab in SystemMonitor on applet clickTheMorc
ResourceGraph and Network applets now open their SystemMonitor tab
2021-01-05ResourceGraph: Show more accurate picture of memory consumptionTom
Since we now commit memory that isn't actually yet allocated, it is no longer available to other applications. So it is effectively allocated.
2021-01-04MenuApplets: Give executable icons to some menu appletsAndreas Kling
This makes SystemMonitor a bit more pleasant to look at. :^)
2021-01-03ResourceGraph: Re-use the ProcFS file descriptors when updating statsTom
This makes it more likely to be able to get statistics when resources are scarce.
2021-01-03LibCore: Report error condition when reading process statistics failedTom
2021-01-03ResourceGraph: Handle low memory situations bit betterTom
Rather than crashing with an ASSERT, when we can't read from /proc we draw the graph with red instead. This also alerts the user that memory is very low.
2021-01-01ClipboardHistory: Fix crash when deleting without selectionSimon Danner
* Fix by only activating the deletion action if we have a selection
2020-12-30LibGFX: Move default_xxx_font() methods from Font to FontDatabaseStephan Unverwerth
When we have an abstract font class it makes no sense to keep these methods in the Font class.
2020-12-30LibGUI: Rename AbstractSlider::on_value_changed => on_changeAndreas Kling
This matches other similar hook names.
2020-12-30LibGUI: Rewrite layout system in terms of min and max sizesAndreas Kling
This patch removes size policies and preferred sizes, and replaces them with min-size and max-size for each widget. Box layout now works in 3 passes: 1) Set all items (widgets/spacers) to their min-size 2) Distribute remaining space evenly, respecting max-size 3) Place widgets one after the other, adding spacing in between I've also added convenience helpers for setting a fixed size (which is the same as setting min-size and max-size to the same value.) This significantly reduces the verbosity of widget layout and makes GML a bit more pleasant to write, too. :^)
2020-12-26MenuApplets: Username: init app early, pledge early, do not unveil /tmpBrendan Coles
2020-12-25Everywhere: Tweak "2020-2020" => "2020" in copyright headersAndreas Kling
2020-12-21Kernel: Improve time keeping and dramatically reduce interrupt loadTom
This implements a number of changes related to time: * If a HPET is present, it is now used only as a system timer, unless the Local APIC timer is used (in which case the HPET timer will not trigger any interrupts at all). * If a HPET is present, the current time can now be as accurate as the chip can be, independently from the system timer. We now query the HPET main counter for the current time in CPU #0's system timer interrupt, and use that as a base line. If a high precision time is queried, that base line is used in combination with quering the HPET timer directly, which should give a much more accurate time stamp at the expense of more overhead. For faster time stamps, the more coarse value based on the last interrupt will be returned. This also means that any missed interrupts should not cause the time to drift. * The default system interrupt rate is reduced to about 250 per second. * Fix calculation of Thread CPU usage by using the amount of ticks they used rather than the number of times a context switch happened. * Implement CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE and use it for most cases where precise timestamps are not needed.
2020-12-19MenuApplets: Add Network menu appletBrendan Coles
2020-12-18ClipboardHistory: Add window iconBrendan Coles
2020-12-08Clipboard: Remove-unused bpp metadataBen Wiederhake
It's just more attack surface, and can be deduced from the format anyway.
2020-11-24MenuApplets: Added ability to remove entry from ClipboardHistory (#4143)Florian Förster
2020-11-17ClipboardHistoryModel: Prevent duplicate rows (#4073)Zac
Prevents the adding of items to the ClipboardHistoryModel if the raw data and mime_type of the item being added is the same as another item already in the list.
2020-11-15Everywhere: Add missing <AK/ByteBuffer.h> includesAndreas Kling
All of these files were getting ByteBuffer.h from someone else and then using it. Let's include it explicitly.
2020-11-11ClipboardHistory: Bring window to front when applet is clickedAndreas Kling
Fixes #4031.
2020-10-15AudioApplet: Make the slider exponential for finer volume controlMarcin Gasperowicz
The volume slider was linear, which is not ideal for an audio volume control. Perceived volume would not change much within 30-100% range and would change in leaps within 0-30% range where the resolution is not sufficient for fine grained control. The simplest solution is to bring the value into 0.0-1.0 range and square it to obtain an exponential curve. This is a decent approximation of the logarithmic taper used in audio potentiometers.
2020-09-25Meta+MenuApplets: Make clang-format-10 cleanBen Wiederhake
2020-09-19ResourceGraph: Fix graph line position calculationLinus Groh
The calculation was only taking the rect's inner height, but not its top offset into account. Fixes #3540.
2020-09-05ClipboardHistory: Copy metadata when reusing a historical clippingAndreas Kling
2020-09-05ClipboardHistory: Show bitmap width/height/bpp for bitmap clippingsAndreas Kling
2020-09-05ClipboardHistory: Show the size (in bytes) of each remembered clippingAndreas Kling
2020-09-05ClipboardHistory: Cap the history at 20 entries for nowAndreas Kling
Now that we can copy bitmaps, we need some kind of cap here or memory usage quickly skyrockets. This could probably be improved or made adaptive somehow, this is just a simple hard cap for now.
2020-09-05LibGUI: Make the Clipboard API deal in raw byte buffers a bit moreAndreas Kling
To open up for putting not just text/plain content on the clipboard, let's make the GUI::Clipboard API a bit more raw-data-friendly. :^)
2020-08-27Base: Move 16x16 common icons to /res/icons/16x16/thankyouverycool
Drops the '16' suffix from filenames. Resizes inconsistent audio-volume icons to intended size.
2020-08-22MenuApplets: Add a mini calendar to Clock appletthankyouverycool
2020-08-21ResourceGraph: Keep the graph inside the GUI::Frame rectAndreas Kling
Part of the graph was hidden under the frame rect, which had the effect of delaying the appearance of spikes (well, all changes really.)
2020-08-17Clock MenuApplet: Use Core::DateTime to simplify the codeNico Weber
2020-08-16LibGUI: Move GUI::Model::Role to GUI::ModelRoleAndreas Kling
This is preparation for using ModelRole in the ModelIndex API.
2020-08-16AK: Rename KB, MB, GB to KiB, MiB, GiBNico Weber
The SI prefixes "k", "M", "G" mean "10^3", "10^6", "10^9". The IEC prefixes "Ki", "Mi", "Gi" mean "2^10", "2^20", "2^30". Let's use the correct name, at least in code. Only changes the name of the constants, no other behavior change.
2020-08-14ResourceGraph: add tooltips to cpu and memory graphsNico Weber
The tooltip doesn't update while it's visible.
2020-08-04ResourceGraph.MenuApplet: Disown child processes after spawningAndreas Kling
2020-08-04Clock.MenuApplet: Disown child process after spawningAndreas Kling
2020-07-26Base+MenuApplet: Add new controls and icons for AudioAppletthankyouverycool
Adds a classic volume slider to the AudioApplet. Percent text and mute state can now be toggled via checkboxes. Left click opens, right click mutes. Updates existing icons and adds unique icons for muted vs zero volume states.
2020-07-23LibGUI: Rename GUI::Image => GUI::ImageWidgetAndreas Kling
"Image" was a bit too vague, "ImageWidget" is obviously a widget of some sort.
2020-07-21Base: rename audio volume icons with descriptive namesBenoît Lormeau
2020-07-21AudioApplet: Scrolling the Audio applet will adjust the main mix volumeBenoît Lormeau
The Audio applet now dislays the main mix volume next to the speaker icon. A click on the applet still mutes the global mixer. By scrolling the mouse wheel while on the applet, you can decrease/increase the mixer volume. Different icons will be painted depending on the volume and the mute state. Happy listening :^)
2020-07-05Userland+MenuApplets: Replace two more fork/exec with posix_spawnNico Weber
2020-07-04LibGUI: Make GUI::Application a Core::ObjectAndreas Kling
Having this on the stack makes whole-program teardown iffy. Turning it into a Core::Object allows anyone who needs it to extends its lifetime.
2020-06-29Everywhere: Replace some uses of fork/exec with posix_spawnNico Weber
It's less code, and it's potentially more efficient once posix_spawn is a real syscall.
2020-06-18ClipboardHistory: Use pledge() and unveil() :^)Andreas Kling
2020-06-18ClipboardHistory: Replace IconWidget with GUI::ImageHüseyin ASLITÜRK
2020-06-13AK: JsonParser improvementsMatthew Olsson
- Parsing invalid JSON no longer asserts Instead of asserting when coming across malformed JSON, JsonParser::parse now returns an Optional<JsonValue>. - Disallow trailing commas in JSON objects and arrays - No longer parse 'undefined', as that is a purely JS thing - No longer allow non-whitespace after anything consumed by the initial parse() call. Examples of things that were valid and no longer are: - undefineddfz - {"foo": 1}abcd - [1,2,3]4 - JsonObject.for_each_member now iterates in original insertion order
2020-06-12MenuApplets: Fix using OwnPtr<> with RefCounted typesSergey Bugaev
2020-05-21LibGUI: Get rid of Model::ColumnMetadata and always use auto-sizingAndreas Kling
Auto-sizing of view columns is now enabled by default. This removes the last remaining need for ColumnMetadata, so this patch gets rid of it.
2020-05-20ClipboardHistory: Always place the applet at the same location :^)Andreas Kling