summaryrefslogtreecommitdiff
path: root/Libraries
AgeCommit message (Collapse)Author
2020-08-27Base: Create /res/graphics/ and relocate system art assetsthankyouverycool
2020-08-27LibGUI: Splitter should only override cursor if within grabbable areaTom
Fixes #3284
2020-08-27LibGUI: Don't make views sort by column 0 by defaultAndreas Kling
If you want to sort by some column, you can tell the view which one.
2020-08-27Base+LibGUI+Spreadsheet: Add icons for SpreadsheetAnotherTest
Also adds a Spreadsheet.af.
2020-08-27Meta: Force semi-colon after MAKE_AK_NONXXXABLE()Ben Wiederhake
Before, we had about these occurrence counts: COPY: 13 without, 33 with MOVE: 12 without, 28 with Clearly, 'with' was the preferred way. However, this introduced double-semicolons all over the place, and caused some warnings to trigger. This patch *forces* the usage of a semi-colon when calling the macro, by removing the semi-colon within the macro. (And thus also gets rid of the double-semicolon.)
2020-08-27LibCore: Remove data pointer from CustomEventBen Wiederhake
It wasn't used anywhere. Also, if it were used, then it should have been marked AK_NONCOPYABLE(). Or even more cleanly, it should use a RefPtr<> or OwnPtr<> instead of a 'naked' pointer. And because I didn't want to impose any such decision on a possible future use case that we don't even know, I just removed that unused feature.
2020-08-26LibWeb: Turn the <table height> attribute into the CSS height propertyAndreas Kling
This matches what other engines do.
2020-08-26LibCompress: Implement DEFLATE properly.asynts
Now we have an actual stream implementation that can read arbitrary (dynamic codes aren't supported yet) deflate encoded data. Even if the blocks are really large. And all of that happens with a single buffer of 32KiB. DEFLATE is amazing!
2020-08-26LibWeb: Fix sometimes missing text selection highlightAndreas Kling
There's no selection if it starts and ends at the same column, but only if both columns are in the same node. :^)
2020-08-26LibGUI: Update AbstractTableView row header sizes on set_row_height()Andreas Kling
2020-08-26LibGUI: Make AbstractTableView row height configurableAndreas Kling
The row height is per-table, not per-row, but this is still nice.
2020-08-26LibGUI: Add a top-left-corner button to table viewsAndreas Kling
If both the row and column headers are visible, we now also show a button in the top left corner. This avoids the headers overlapping each other when you scroll the contents. In the future, this could be hooked up to a "select all" action.
2020-08-26LibGUI: Add (optional) row headers to GUI::TableViewAndreas Kling
You can now get row headers in your TableView by simply calling: table_view.row_header().set_visible(true) Note that rows are not yet resizable.
2020-08-26LibGUI: Avoid implementing vertical HeaderView section resize for nowAndreas Kling
Resizable rows will require a bunch of changes in the table view layout code, so let's not make the normal resizing areas grabbable for now.
2020-08-26LibGUI: Don't update key column when clicking vertical headersAndreas Kling
Vertical headers are only concerned with rows, after all.
2020-08-26LibGUI: Fix HeaderView::section_rect() for vertical headersAndreas Kling
Vertical headers shouldn't worry about horizontal padding.
2020-08-26LibGUI: Simplify HeaderView::mouseup_event() slightlyAndreas Kling
2020-08-26LibGUI: Reset hovered section when mouse cursor leaves a HeaderViewAndreas Kling
2020-08-26LibGUI+HackStudio: Associate new icons with their extensionsthankyouverycool
2020-08-26WindowServer+LibGfx: Move title bar button layout to WindowThemethankyouverycool
2020-08-26AK+LibC+LibCore: Have fewer implementations of day_of_weekNico Weber
The implementation in LibC did a timestamp->day-of-week conversion which looks like a valuable thing to have. But we only need it in time_to_tm, where we already computed year/month/day -- so let's consolidate on the day_of_week function in DateTime (which is getting extracted to AK).
2020-08-26LibC: Minor style tweaks to tm_to_timeNico Weber
2020-08-26AK+LibC+LibCore: Add a days_in_year functionNico Weber
2020-08-26AK+LibC+LibCore: Have fewer implementations of days_in_monthNico Weber
2020-08-26LibCore: Use is_leap_year more in DateTimeNico Weber
2020-08-26AK+LibCore+Kernel: Have fewer implementations of day_of_yearNico Weber
The JS tests pointed out that the implementation in DateTime had an off-by-one in the month when doing the leap year check, so this change fixes that bug.
2020-08-26LibJS: Add some more tests, mostly around leap yearsNico Weber
2020-08-26AK+LibC+Kernel: Have fewer implementations of year_to_days_in_epochNico Weber
I believe the implementation in RTC.cpp had an off-by-one in the year passed to is_leap_year(). If that's true, then this fixes that too.
2020-08-26AK+LibC+LibCore+Kernel: Have fewer implementations of is_leap_yearNico Weber
2020-08-26LibJS: Add a helper for calling JS::Function's with argumentsAnotherTest
The fact that a `MarkedValueList` had to be created was just annoying, so here's an alternative. This patchset also removes some (now) unneeded MarkedValueList.h includes.
2020-08-26LibWeb: Calculate selection based on glyph centersRewi Haar
Previously you had to drag all the way to the end of a glyph to select it; now you just need to drag past the center. Also fixes #2959.
2020-08-26LibC: Deduplicate declaration of strcasecmpBen Wiederhake
2020-08-26LibGUI: HeaderView should always notify parent when sections resizeAndreas Kling
The view needs to recompute the scrollable content size whenever this happens, so let's always notify it. Previously we were only doing this when resizing columns with interactively (not programmatically.)
2020-08-26LibGUI: Rename table view's "cell painting delegate" to "column *"Andreas Kling
What you install with this API is a delegate that manages painting of all the items in a specific column, so let's make the API reflect that.
2020-08-26LibGUI: Move table view headers into their own widgetAndreas Kling
This patch introduces the HeaderView class, which is a widget that implements the column headers of TableView and TreeView. This greatly simplifies event management in the view implementations and also makes it much easier to eventually implement row headers.
2020-08-26LibGUI: Make Splitter inherit from Widget instead of FrameAndreas Kling
It wasn't using any of the Frame features, so I'm not sure what the idea here was.
2020-08-26LibGUI: Clip GUI::Frame children to the frame_inner_rect()Andreas Kling
This way we don't draw the frame border underneath our children. :^)
2020-08-26LibGUI: Allow widgets to clip their child widgetsAndreas Kling
This patch adds Widget::children_clip_rect() which can be overridden to tighten clipping of a widget's children. The default implementation simply returns Widget::rect().
2020-08-26LibGUI: Add Widget focus proxiesAndreas Kling
A Widget can now have a focus proxy widget. Questions about focus are redirected to the proxy if present. This is useful if a widget could logically get focus, but wants one of its child widgets to actually handle it.
2020-08-26LibC: Prospective fix for openssl buildSergio Ahumada
serenity/Build/Root/usr/include/sys/socket.h:93:26: error: 'sockaddr_un' undeclared here (not in a function) 93 | char data[sizeof(sockaddr_un)]; | ^~~~~~~~~~~ make[2]: *** [<builtin>: bss_fd.o] Error 1
2020-08-26LibGUI: Change window size and margin in ColorPickerLepkoQQ
2020-08-26LibGUI: Add spinbox for alpha channel in ColorPickerLepkoQQ
2020-08-26LibGUI: Show current and selected color comparison in ColorPickerLepkoQQ
2020-08-26LibGUI: Resize ColorPicker to include frame thicknessLepkoQQ
Also clamp mouse events to frame rect when dragging outside of the color field area. Store hue separately from color, to prevent pure white resetting the hue back to 0.
2020-08-26LibGUI: Split ColorPicker in to a field and sliderLepkoQQ
2020-08-26LibGfx: Use valid hsv values in painter debugLepkoQQ
2020-08-26LibGfx: Always use 0..360 0..1 0..1 in HSV colorsLepkoQQ
2020-08-26LibGUI: Select current color when opening pickerLepkoQQ
2020-08-25JS Tests: Disable the one failing test when running test-js in SerenityNico Weber
2020-08-25LibGUI: Make ScrollBar show hover state of scrubber after gutter dragNico Weber
With this, if clicking the gutter until the scrubber's below the mouse and then releasing the mouse, the scrubber is correctly highlighted after releasing the mouse.