summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/Splitter.cpp
AgeCommit message (Collapse)Author
2020-04-24LibGUI: Shrink GUI::Splitter by 1 pixel to make it look just rightAndreas Kling
Splitters were slightly oversized to work around the fact that we were ignoring 2px on both sides of them. Now that the whole splitter can be interacted with, we can lose 1px of fat and look great! :^)
2020-04-24LibGUI: Introduce widget content margins + improve splittersAndreas Kling
A GUI::Widget can now set an optional content margin (4x0 by default.) Pixels in the content margin will be ignored for hit testing purposes. Use this to allow frame-like widgets (like GUI::Frame!) to ignore any mouse events in the frame area, and instead let those go to parent. This allows GUI::Splitter to react "sooner" to mouse events that were previously swallowed by the child widgets instead of ending up in the splitter. The net effect is that 2 more pixels on each side of a splitter handle are now interactive and usable for splitting! :^)
2020-03-05LibGUI: Make Layout a Core::Object and add basic serializationAndreas Kling
This allows you to view layouts (as data) in Inspector.
2020-02-23LibGUI: Remove parent parameter to GUI::Widget constructorAndreas Kling
2020-02-13LibGUI: Don't assert when hovering spacing around single-child SplitterAndreas Kling
Fixes #1215.
2020-02-11LibGUI: Splitter should forget resize candidates after cursor leavesAndreas Kling
Otherwise we'll keep highlighting the grabbable rect even after the cursor has left the splitter widget.
2020-02-11LibGUI: Make splitters 1px wider as 3px is slightly too narrowAndreas Kling
2020-02-11LibGUI: Only highlight grabbable area between a Splitter's childrenAndreas Kling
We were previously cheating by setting the entire splitter's background color to the hover highlight color. This looked goofy whenever there were transparent widgets inside a splitter, since the highlighted color would shine through when hovering. This was especially noticeable in SystemMonitor, which now looks much better. :^)
2020-02-11LibGUI: Factor out Splitter hit testing into a separate functionAndreas Kling
2020-02-06LibGUI: Remove leading G from filenamesAndreas Kling