summaryrefslogtreecommitdiff
path: root/Userland/Applications
AgeCommit message (Collapse)Author
2021-06-09FileManager: Save maximized window state on exitMarcus Nilsson
When exiting FileManager in maximized state, save it and start in maximized state on next launch.
2021-06-09Browser: Fix crash on downloadTimothy
This will unveil the portal for RequestServer which is used to download files in the Browser.
2021-06-08Everywhere: Replace Vector<T*> with nonnull entries with Vector<T&>Ali Mohammad Pur
2021-06-08SoundPlayer: Enable stop button when play button clickedNick Miller
Previously, if you play a file, then stop, then play again, the stop button will be permanently disabled until you open a file again. The stop button should be enabled whenever a file is loaded. This commit fixes the GUI bug by enabling the stop button whenever the play button is clicked (if a file is currently loaded).
2021-06-08LibGUI+SoundPlayer: Add Slider option to jump to cursorNick Miller
When the cursor is clicked outside of the slider knob, the current behavior is that it will step up or down by the Slider page step amount. This commit adds an option to jump the slider knob directly to the where the mouse cursor is on mouse down events. This behavior is disabled by default. It must be enabled with `Slider::set_jump_to_cursor()`. Jump to cursor is enabled in SoundPlayer since most music players have this behavior.
2021-06-07LibWeb+LibSyntax: Implement nested syntax highlightersAli Mohammad Pur
And use them to highlight javascript in HTML source. This commit also changes how TextDocumentSpan::data is interpreted, as it used to be an opaque pointer, but everyone stuffed an enum value inside it, which made the values not unique to each highlighter; that field is now a u64 serial id. The syntax highlighters don't need to change their ways of stuffing token types into that field, but a highlighter that calls another nested highlighter needs to register the nested types for use with token pairs.
2021-06-07WindowServer+Magnifier: Make Magnifier buttery smooth :^)Andreas Kling
This patch moves the magnifier rect computation over to the server side to ensure that the mouse cursor position and the screen image never get out of sync.
2021-06-07Magnifier: Use a GUI::DisplayLink to drive the screen capturesAndreas Kling
This ensures that we don't try to update more often than the screen is updated. It also avoids doing synchronous IPC in paint_event().
2021-06-06LibProtocol: Use URL class in RequestClient::start_request argumentMax Wipfli
This changes the RequestClient::start_request() method to take a URL object instead of a URL string as argument. All callers of the method already had a URL object anyway, and start_request() in turn parses the URL string back into a URL object. This removes this unnecessary conversion.
2021-06-06Magnifier: Add desktop display scale awarenessEugene Barnett
Continues to magnify correctly at the most current desktop scale.
2021-06-06KeyboardMapper: Add GUI alert in case load from file failsNonStdModel
Previously there was no visual clue letting the user know that loading from file failed.
2021-06-06AK+Everywhere: Disallow constructing Functions from incompatible typesAli Mohammad Pur
Previously, AK::Function would accept _any_ callable type, and try to call it when called, first with the given set of arguments, then with zero arguments, and if all of those failed, it would simply not call the function and **return a value-constructed Out type**. This lead to many, many, many hard to debug situations when someone forgot a `const` in their lambda argument types, and many cases of people taking zero arguments in their lambdas to ignore them. This commit reworks the Function interface to not include any such surprising behaviour, if your function instance is not callable with the declared argument set of the Function, it can simply not be assigned to that Function instance, end of story.
2021-06-04LibVT+Terminal: Add color scheme supportDaniel Bertalan
This commit introduces color scheme support to Terminal. These are found in `/res/terminal_colors` and the default color scheme can be set in `~/.config/Terminal.ini`. Furthermore, a combo box is added for setting the color scheme at runtime. The previously used default color scheme has been added to `/res/terminal-colors/Default.ini`. To make the implementation more compatible with other color schemes, `TerminalWidget` now supports overriding the default foreground and background colors.
2021-06-03Everywhere: Remove accidental '\n' from various outln() invocationsAndreas Kling
Also convert outln(stderr, ...) to warnln(...)
2021-06-03KeyboardMapper: Fix crash upon loading an invalid JSON fileNonStandardModel
This fixes #7699. It would be nice to also show a GUI alert informing about the failure, but I will leave that for the future.
2021-06-03TextEditor: Remove unused header includesBrian Gianforcaro
2021-06-02TextEditor/GMLPlayground: Don't close app if user aborts save on exitMatthew Jones
2021-06-02KeyboardMapper: Add default path to keymapsNonStandardModel
2021-06-02Terminal/LibGUI::TextEditor: Add shift+return to search forwardsMarcus Nilsson
This adds support for shift+return key combo in single line TextEditor fields. Used in this case for searching backwards/forwards in the Terminal find window.
2021-06-02Terminal: Remove unused includesMarcus Nilsson
2021-06-02Terminal: Close find & settings windows on application exitMarcus Nilsson
Since the find & settings windows are not children of the main window, they stayed open after exiting the application.
2021-06-02PixelPaint: Update Image.{cpp, h} to use east constMarco Cutecchia
2021-06-02PixelPaint: Support opening more image file formatsMarco Cutecchia
Previously we could only open .pp files, now we can open all formats supported by Gfx::Bitmap::load_from_file
2021-06-02SoundPlayer: Fix playback slider page steppingNick Miller
Fixes a bug that was preventing the playback slider from changing value when clicking ahead/behind the current position.
2021-06-01HexEditor: Fix off-by-one bugs in selected text length calculationsBrendan Coles
find_and_highlight() selected +1 too many bytes. 'Select All' selected +1 too many bytes past the end of the buffer. Status bar 'Selected Bytes' count was off by -1 when more than zero bytes were selected.
2021-06-01Spreadsheet: Remove usage of URL::set_path()Max Wipfli
This replaces a call to URL::set_path() with URL::set_paths(), as set_path() will be deprecated and removed.
2021-06-01AK: Remove URLParserMax Wipfli
This removes URLParser, because its two exposed functions, urlencode() and urldecode(), have been superseded by URL::percent_encode() and URL::percent_decode(). This is in preparation for the introduction of a new URL parser.
2021-06-01AK+Everywhere: Replace usages of URLParser::urlencode() and urldecode()Max Wipfli
This replaces all occurrences of those functions with the newly implemented functions URL::percent_encode() and URL::percent_decode(). The old functions will be removed in a further commit.
2021-05-31Userland: Avoid a bunch of JsonObject copiesLinus Groh
JsonValue::as_object() returns a reference.
2021-05-31SpaceAnalyzer: Replace fprintf(stderr) with warnln()Linus Groh
2021-05-31Debugger: Replace printf() with outln()Linus Groh
2021-05-31Spreadsheet: Keep value when clicking out of a cellBrandon Hamilton
2021-05-30LibWeb: Rename Web::Frame to Web::BrowsingContextAndreas Kling
Our "frame" concept very closely matches what the web specs call a "browsing context", so let's rename it to that. :^) The "main frame" becomes the "top-level browsing context", and "sub-frames" are now "nested browsing contexts".
2021-05-30LibGL: Implement glBindTexture()Stephan Unverwerth
Textures are now initialized with a nullptr upon generation. They are only actually created once they are bound to a target. Currently only the GL_TEXTURE_2D target is supported. The software rasterizer now allows rendering with or without a bound TEXTURE_2D.
2021-05-29DisplaySettings: Set monitor widget color if no image is selectedJesse Buhagiar
The monitor widget now displays the selected colour if no background image has been selected. Resolves #7491
2021-05-29HexEditor: Add find_all_strings() functionBrendan Coles
2021-05-29Browser: Add title to go back/forward context menuMarcus Nilsson
Adds page title to the context menu for go back/forward.
2021-05-29Browser: Pass Tab::on_title_change title argument as const referenceLinus Groh
2021-05-29Browser: Remove redundant parameter names from Tab::on_{g,s}et_cookieLinus Groh
2021-05-28SystemMonitor: Disable menu items for inaccessible processMarcus Nilsson
Disable the context menu items if user cannot access the process. Fixes #7486
2021-05-28SystemMonitor: Use u64 for disk sizesJesse Buhagiar
This fixes #7288, which was being caused by unsigned 32-bit integer overflow
2021-05-27HexEditor: Add 'Find All' option to Find Dialog to find all matchesBrendan Coles
2021-05-27PDFViewer: Reset current page number to 1 when opening a fileLinus Groh
Also use set_current_number() instead of set_text(), so we don't have to create a string from the number ourselves.
2021-05-27PDFViewer: Enable previous/next buttons conditionallyLinus Groh
Instead of having both always enabled once a document is loaded, update them on each page change and disable if appropriate.
2021-05-27PDFViewer: Fix previous/next page toolbar button iconsLinus Groh
go-up.png and go-down.png don't exist (and would look silly here, with the buttons being next to each other horizontally). Use go-back.png and go-forward.png instead.
2021-05-273DFileViewer: Add separator before quit menu actionLinus Groh
2021-05-27PDFViewer: Add a Help menuLinus Groh
2021-05-27PDFViewer: Add separator before quit menu actionLinus Groh
2021-05-27PDFViewer: Show app name as "PDF Viewer" when a file is loadedLinus Groh
2021-05-27SoundPlayer: Show app name as "Sound Player" when a file is loadedLinus Groh