summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
AgeCommit message (Collapse)Author
2022-08-13PixelPaint: Allow configuration of default image size through GUIcflip
This adds a checkbox to the new image dialog that allows the user to set the default values without needing to manually edit the config file
2022-07-12Everywhere: Add sv suffix to strings relying on StringView(char const*)sin-ack
Each of these strings would previously rely on StringView's char const* constructor overload, which would call __builtin_strlen on the string. Since we now have operator ""sv, we can replace these with much simpler versions. This opens the door to being able to remove StringView(char const*). No functional changes.
2022-06-02Userland: Use default buttons instead of manually handling return pressKarol Kosek
Besides simplifying the code, this will also draw outline for these buttons as a cue for a user!
2022-05-17PixelPaint: Allow configuring 'new image' defaultsMacDue
This allows you to configure the default name, width, and height of the 'new image' dialog. This is done by editing the config in ~/.config/PixelPaint.ini (no GUI at the moment). Fixes #13967
2022-05-13LibGUI+Userland: Make Dialog::ExecResult an enum classSam Atkins
2021-11-22PixelPaint: Use better-fitting image sizeBen Wiederhake
This makes the default image fit perfectly into the default viewport, which means the first fit_image_to_view call will end up with a scale of exactly 1. This scale level has no visual artifacts, which is the more intuitive 'default' behavior. Fixes #10975.
2021-09-25PixelPaint: Close New Image dialog after pressing return keyKarol Kosek
13e526de43847ac86d74e3cb0be2d6b930f1d46f added the feature to new Layer dialog. This patch adds it to Image dialog to stay consistent across the app. :^)
2021-09-19PixelPaint: Use main window's icon in the 'Create new image' widgetKarol Kosek
2021-08-18Userland+LibGUI: Add shorthand versions of the Margins constructorsin-ack
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same margin on all edges, for example. The constructors follow CSS' style of specifying margins. The added constructors are: - Margins(int all): Sets the same margin on all edges. - Margins(int vertical, int horizontal): Sets the first argument to top and bottom margins, and the second argument to left and right margins. - Margins(int top, int vertical, int bottom): Sets the first argument to the top margin, the second argument to the left and right margins, and the third argument to the bottom margin.
2021-06-15PixelPaint: Increase default size of new images from 1x1 to 480x360Andreas Kling
2021-06-15PixelPaint: Don't allow creating empty layers or imagesAndreas Kling
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12Applications: Move to Userland/Applications/Andreas Kling