Itamar
935d023967
Userland: Rename WindowServerConnection=>ConnectionToWindowServer
...
This was done with CLion's automatic rename feature.
2022-02-25 22:35:12 +01:00
thankyouverycool
653f01616c
LibGUI+Apps: Adjust Splitter spacings
...
Different thread highlights between widgets lead to different
visual weights between splitters, even when they have the same
width or height. This means some splitters look best at odd
sizes while others even. This sets the default spacing to the
most commonly used, depending on orientation, and adjusts
spacing for a few apps based on the new paint rect.
The most consistent look across apps requires some manual
tweaking occassionally. Knurlheads, use your discretion!
2022-02-23 18:56:22 +02:00
Lenny Maiorani
0ec688f86e
Demos: Use default constructors/destructors
...
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules
"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-02-15 23:00:03 +02:00
Idan Horowitz
c8ab45e79f
Userland: Run gml-format
...
This brings the existing GML files up to spec with the new requirements
2022-02-13 02:36:35 +02:00
kleines Filmröllchen
6ee597369d
Meta+Userland: Run the GML formatter on CI and pre-commit
...
Now that the GML formatter is both perserving comments and also mostly
agrees to the existing GML style, it can be used to auto-format all the
GML files in the system. This commit does not only contain the scripts
for running the formatting on CI and the pre-commit hook, but also
initially formats all the existing GML files so that the hook is
successfull.
2022-02-07 18:39:50 +01:00
Jagger De Leo
742cca4bfe
Starfield: Add app icon
...
Previously, Starfield used app-screensaver icon.
2022-02-01 04:11:56 +00:00
Dmitry Petrov
1662213737
Userland: Add horizontal mouse scroll support
2022-01-20 10:37:52 +01:00
mjz19910
10ec98dd38
Everywhere: Fix spelling mistakes
2022-01-07 15:44:42 +01:00
mjz19910
3102d8e160
Everywhere: Fix many spelling errors
2022-01-07 10:56:59 +01:00
Sam Atkins
f6633a1026
LibGUI+Userland: Make SortingProxyModel::create() return ErrorOr
...
Unfortunately, most of the users are inside constructors, (and two
others are inside callback lambdas) so the error can't propagate, but
that can be improved later.
2021-12-24 05:11:52 -08:00
Astraeus-
d12359ff20
WidgetGallery: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
1adc808664
Mouse: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
b9579de2b5
ModelGallery: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
683077c894
LibGfxScaleDemo: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
1c189dbba5
LibGfxDemo: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
4db2f5b4ae
Eyes: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Astraeus-
b02da2442f
CatDog: Convert to try_create_default_icon
2021-12-18 23:36:59 +01:00
Sam Atkins
7e05ccaa70
Demos: Cast unused smart-pointer return values to void
2021-12-05 15:31:03 +01:00
Brian Gianforcaro
cf4fa936be
Everywhere: Use default execpromises argument for Core::System::pledge
2021-11-28 08:04:57 +01:00
pbrw
4d03852190
WidgetGallery: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
bd61558ed8
Starfield: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
9e3bc3f930
Screensaver: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
14081b8a92
Mouse: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
162c271eb6
ModelGallery: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
601de466cb
Mandelbrot: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
8293ad33ee
LibGfxScaleDemo: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
dee90b2dc3
LibGfxDemo: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
abf86b7501
Fire: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
2642abb773
Eyes: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
79bc587d03
Cube: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
pbrw
370c5986ab
CatDog: Use TRY() a lot more :^)
2021-11-25 08:49:31 +01:00
Andreas Kling
3d126fe921
WidgetGallery: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
21a5fb0fa2
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
...
With this change, System::foo() becomes Core::System::foo().
Since LibCore builds on other systems than SerenityOS, we now have to
make sure that wrappers work with just a standard C library underneath.
2021-11-23 11:33:36 +01:00
Mustafa Quraish
4d302e0e88
Everywhere: Use Application::construct() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Mustafa Quraish
2fbcab46bf
Everywhere: Use ArgsParser::parse() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Pedro Pereira
0ed3520ef5
Starfield: Port to LibMain
...
Simplified two pledge() by using TRY().
2021-11-22 21:56:20 +01:00
Pedro Pereira
efe5f37b04
Starfield: Modify speed by Plus or Minus keypresses
...
Although this is supposed to be a screensaver, it makes all the sense in
the world that it should support modifying the speed interactively. :^)
2021-11-21 16:40:14 +00:00
Pedro Pereira
7b923d1376
Starfield: Modify speed by command argument
...
This change allows us to change the speed variable by passing a
-s or --speed argument.
2021-11-21 16:40:14 +00:00
Pedro Pereira
6ac97d4397
Starfield: Support variable speed
...
This change allows us to modify the speed in which the Starfield is
generated. Increasing the speed also increases the length of each trail.
2021-11-21 16:40:14 +00:00
Andreas Kling
0de33b3d6c
LibGfx: Use ErrorOr<T> for Bitmap::try_create()
...
Another one that was used in a fajillion places.
2021-11-08 00:35:27 +01:00
Andreas Kling
235f39e449
LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()
...
This was used in a lot of places, so this patch makes liberal use of
ErrorOr<T>::release_value_but_fixme_should_propagate_errors().
2021-11-08 00:35:27 +01:00
Andreas Kling
8262bbf624
LibGfx: Use ErrorOr<T> for Bitmap::cropped()
2021-11-08 00:35:27 +01:00
Andreas Kling
83d1460ee8
LibGfx: Use ErrorOr<T> for Bitmap::try_create_wrapper()
2021-11-08 00:35:27 +01:00
Karol Kosek
657409736a
WidgetGallery: Make custom cursors visible only in the cursors tab
...
Prior to this change, the selected cursor stayed changed throughout
the app, even after switching tabs, which didn't look quite right.
2021-11-08 00:06:55 +01:00
FrHun
54605794f9
Applications: Remove border from GroupBox margins
2021-11-03 16:13:19 +01:00
Ben Wiederhake
3796d417e0
Demos+DevTools+Games: Fix visibility of Object-derivative constructors
...
Derivatives of Core::Object should be constructed through
ClassName::construct(), to avoid handling ref-counted objects with
refcount zero. Fixing the visibility means that misuses like this are
more difficult.
2021-11-02 22:56:53 +01:00
Filiph Sandström
c6247fe414
Everywhere: Rename back-click to backward-click
...
This matches the current forward-click terminology.
2021-10-27 22:05:58 +03:00
Filiph Sandström
d6a0726302
Everywhere: Rename left/right-click to primary/secondary
...
This resolves #10641 .
2021-10-27 22:05:58 +03:00
Idan Horowitz
4f1d45705f
Demos: Remap mouse button events to physical buttons in MouseDemo
...
This ensures we paint the left button as clicked when the left mouse
button is pressed (and vice-versa with the right one) when the right
mouse button is set as the primary one in the mouse settings.
2021-10-26 16:51:29 +02:00
Idan Horowitz
14223a9c20
Demos: Change MouseDemo's window title to "Mouse demo"
...
The previous title ("Mouse button demo") didn't fit in the window's
titlebar, which looked pretty bad.
2021-10-26 16:51:29 +02:00