summaryrefslogtreecommitdiff
path: root/Userland
AgeCommit message (Collapse)Author
2022-07-17LibGfx: Fix direction of vertical gradientsMacDue
Previously the color blending and alpha blending were working from opposite sides.
2022-07-17LibGfx: Support alpha blending on gradientsMacDue
2022-07-17LibWeb: Support painting simple linear-gradientsMacDue
This is just a quick test that everything is working. Currently it paints the gradients with the existing painter.fill_rect_with_gradient(). This can only handle two-color orthogonal gradients.
2022-07-17LibWeb: Allow having a linear-gradient() as a background-imageMacDue
2022-07-17LibWeb: Parse the linear-gradient() CSS functionMacDue
This should parse linear-gradient()s as defined in the W3 spec https://drafts.csswg.org/css-images/#linear-gradients. Note: This currently cannot parse multi-position color stops, these are shown on MDN and work in Firefox and Chrome, though do not seem to be defined in the spec. See: https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient#gradient_with_multi-position_color_stops P.s. This also allows -webkit-linear-gradient for compatibility.
2022-07-17LibWeb: Add LinearGradientStyleValueMacDue
2022-07-17LibWeb: Add serialize_a_srgb_value()MacDue
This moves the logic from ColorStyleValue::to_string() to a standalone function.
2022-07-17LibWeb: Fix queuing mutation records for node removalLuke Wilde
Step 19 of node removal was missing, which allows the mutations of the descendants of the removed node to still be observed by the parent. Step 20 of node removal queued the mutation record for the removed node instead of it's parent. Since queuing takes place after the node is removed from the tree, the mutation record would be lost as the only inclusive ancestor of the node at this point is only the node itself.
2022-07-17LibWeb: Rename LayoutState::NodeState => LayoutState::UsedValuesAndreas Kling
This object contains all the CSS "used values" as seen during the layout process, so calling it "used values" seems appropriate. :^)
2022-07-17LibWeb: Rename FormattingState to LayoutStateAndreas Kling
This seems a bit more descriptive (and also a bit shorter).
2022-07-17LibWeb: Implement basic stretch alignment for `flex-wrap: wrap`Andreas Kling
We currently ignore the `align-content` property, that's a FIXME for our future selves.
2022-07-17LibWeb: Update flex container intrinsic size algorithm to draft specAndreas Kling
The CSSWG draft Flexbox spec is a bit clearer on some details, so let's update our implementation to match the latest version.
2022-07-17LibWeb: Paper over a VERIFY() crash in ResourceLoader for nowAndreas Kling
2022-07-17Calculator: Set button colors from system paletteKarol Kosek
Previously, changing a system theme with Calculator opened made buttons with custom color not to update to the new theme - the background color remained from the previous one. This is because when setting the color, the widget has to copy the current palette and modify the foreground color there, which means it will no longer refer to the system theme and any change there will not happen here. Using colors from a system palette fixes this issue and makes buttons look slightly different from what was here before. But that is because they're now somewhat more integrated with the system themes! :^) Type | Old color | New color role ---- | --------- | -------------- Numbers | "blue" | SyntaxNumber Functions (sqrt, %) | "blue" | SyntaxFunction Operators (+ - * /) | text-default | SyntaxOperator Backspace, CE and C | "brown" | SyntaxControlKeyword Memory operators, = | "red" | SyntaxPreprocessorValue
2022-07-17PixelPaint: Export images using the editor title as a default basenameKarol Kosek
2022-07-17Shell: Add the |& construct for piping stderr along with stdoutsin-ack
When |& is typed, stderr will be piped to stdout before the actual piping happens. This behaves basically like a 2>&1 | (and the underlying implementation transforms it to that anyway).
2022-07-17LibLine: Ignore empty spans when stylizingsin-ack
Previously we would erroneously apply the stylization to the whoever called stylize next. Now we first check whether the span is non-empty before stylizing. All non-empty spans must have at least one character in them (end-exclusive).
2022-07-17LibWeb: Avoid needless copies during Blob constructionLinus Groh
2022-07-17LibWeb: Add support for XHR response type BlobKenneth Myhra
2022-07-17LibWeb: Introduce BlobKenneth Myhra
2022-07-16LibWeb: Add definitions from '2.2.6. Responses' in the Fetch specLinus Groh
2022-07-15LibJS: Update spec numbers from the array-find-from-last proposal mergeTimothy Flynn
See: https://github.com/tc39/ecma262/commit/5f31dd6
2022-07-15LibJS: Sort TypedArray.prototype methods in spec orderTimothy Flynn
Makes it much easier to scroll through the file while comparing to the spec. Proposals are inserted alphabetically as that's where they will likely end up once merged into the main spec.
2022-07-15LibJS: Sort Array.prototype methods in spec orderTimothy Flynn
Makes it much easier to scroll through the file while comparing to the spec. Proposals are inserted alphabetically as that's where they will likely end up once merged into the main spec.
2022-07-15LibWeb: Add definitions from '2.2.5 Requests' in the Fetch specLinus Groh
2022-07-15LibWeb: Add a couple of missing includes to Fetch's Headers.hLinus Groh
2022-07-15LibWeb: Mark Origin::serialize() as constLinus Groh
2022-07-15LibWeb: Remove weird is_undefined_or_auto() helper in FFCAndreas Kling
This was a leftover from when ComputedValues stored sizes in Optionals. Now that we've gotten rid of the "undefined" state, there's no need for this helper, we can just access the size values directly.
2022-07-15LibWeb: Update flex line "remaining free space" when finishedAndreas Kling
Since we re-use this value later in the layout algorithm, we have to update it before leaving the "resolve flexible lengths" step.
2022-07-15LibGUI: Apply more padding to text on tabsnetworkException
Previously the text would be up close to the left / right border depending on the alignment. This patch increases the padding on either side from one to four pixels.
2022-07-15Kernel+LibC: Add posix_fallocate syscallHendiadyoin1
2022-07-15LibIPC: Retry post_message write on EAGAIN and yieldFrHun
This is a quick and dirty fix to at least get the Inspector working again. This is a very bad solution long term, because it will spin on the EventLoop. That is why there is a message reminding everyone this problem still needs to be fixed, every time this is actually done.
2022-07-15LibCore: InspectorServerConnection send responses with multiple writesFrHun
2022-07-15WidgetGallery: Make inspectableFrHun
WidgetGallery is only a demo anyways, and the perfect target to test the Inspector.
2022-07-15LibGUI: Sync ColorPicker's color slider with other color widgetsCodeforEvolution
The color slider on the ColorPicker widget's "Custom Color" page will now update when changing the color with the individual channel spinboxes and the larger color field box. Fixes #14425
2022-07-15KeyboardSettings: Improve KeymapDialog layoutFrHun
2022-07-15Applications: Make settings outer margins and spacing consistentFrHun
2022-07-15PixelPaint: Tweak FilterGallery layoutFrHun
This brings the spacing in line with the rest of the system, and removes unneeded margins that only bloated the layout and caused edges to be misaligned.
2022-07-15CrashReporter: Tweak layoutFrHun
These changes bring the margins, spacing, and sizes more in line with what is used in the rest of the system.
2022-07-15Taskbar: Center buttons again by fixing marginsFrHun
2022-07-15LibGUI: Fix weird behavior when using Ctrl+Shift+[Up,Down] in TextEditorLucas CHOLLET
Those inconveniences come from cursor and selection not being saved during the switch.
2022-07-15LibGUI: Add a helper for VerticalDirectionLucas CHOLLET
The function converts Key_[Up, Down] to the corresponding VerticalDirection.
2022-07-15LibGUI: Explicitly default initialize class membersLucas CHOLLET
2022-07-15LibJS: Allow specifying keyword values not directly defined for a localeTimothy Flynn
For example, consider the locales "en-u-nu-fullwide" or "en-u-nu-arab". The CLDR only declares the "latn" numbering system for the "en" locale, thus ResolveLocale would change the locale to "en-u-nu-latn". This patch allows using non-latn numbering systems digits.
2022-07-15LibUnicode: Remove obsolete Unicode::get_default_number_systemTimothy Flynn
This has been superseded by get_preferred_keyword_value_for_locale, which doesn't require allocating a Vector just to return its first element.
2022-07-15LibJS: Remove hard-coded lists of collation typesTimothy Flynn
Working around not having collation data in the CLDR now handled in the Unicode generators.
2022-07-15LibUnicode: Generate a method to lookup locale-preferred keyword valuesTimothy Flynn
2022-07-15LibUnicode: Generate a method to lookup available keyword valuesTimothy Flynn
2022-07-15LibUnicode: Generate available values for the keywords co, kf, kn, hcTimothy Flynn
This also ensures we only include values we actually support in the generated list of available values.
2022-07-15Userland: Introduce the lsblk utility to show list of storage devicesLiav A