summaryrefslogtreecommitdiff
path: root/Userland/Applications/ThemeEditor/main.cpp
AgeCommit message (Collapse)Author
2021-09-26ThemeEditor: Show currently opened theme path in the window titleKarol Kosek
You can open files since #9979, so let's show the path there to distinguish open theme files more easily!
2021-09-16ThemeEditor: Save theme metrics and paths to fileKarol Kosek
Prior this change, custom title metrics seen in the Basalt theme and custom icon paths in Redmond themes were dropped when saving a file. Now any entry, even empty, will be saved. This may end up with slightly larger files, but on other hand, users will be able to see every option in a text editor, without a need to look at the code/docs.
2021-09-12ThemeEditor: Update theme path on theme loadKarol Kosek
Prior to this change, the 'Save' action was saving a file to the startup path (or just showed a File Picker dialog) if a file has been opened by the Open action or by drag-n-dropping a file to the program.
2021-09-12ThemeEditor: Rename main()'s preview_palette to startup_preview_paletteKarol Kosek
This is to avoid ambiguity from the preview_widget.preview_palette().
2021-09-12ThemeEditor: Use preview_palette from the PreviewWidgetKarol Kosek
Prior this change, when you opened a file using the brand new Open action and tried to change the Color Role or save it, then it would just go back to the startup palette.
2021-09-12ThemeEditor: Add 'Open file' menu actionKarol Kosek
2021-09-12ThemeEditor: Open files from an argumentKarol Kosek
This commit allows you to open a theme file from an argument, i.e. `ThemeEditor Theme.ini`.
2021-09-12ThemeEditor: Reference FileSystemAccessClient::Result in save_to_resultKarol Kosek
Found by clazy. It says the size is 32 bytes.
2021-09-12ThemeEditor: Create menu contents after creating widgetsKarol Kosek
My next commits will be more readable that way. :^)
2021-09-06ThemeEditor: Make the model derived from ItemListModelKarol Kosek
This will make the Combo Box list searchable as you type, because ItemListModel has already that implemented.
2021-08-26ThemeEditor: Place menu quit action as the last itemKarol Kosek
No other applications put this action as the first item.
2021-08-22ThemeEditor: Add Actions to save preview_palette to theme filenetworkException
This patch adds a save and save as Action to the file menu allowing to export all colors into an ini file.
2021-08-06Everywhere: Replace Model::update() with Model::invalidate()sin-ack
Most of the models were just calling did_update anyway, which is pointless since it can be unified to the base Model class. Instead, code calling update() will now call invalidate(), which functions identically and is more obvious in what it does. Additionally, a default implementation is provided, which removes the need to add empty implementations of update() for each model subclass. Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2021-07-28ThemeEditor: Initialize color input to Gfx::ColorRole::WindowLuK1337
2021-07-21Userland: Add GUI::Window::add_menu() and use it everywhereAndreas Kling
Applications previously had to create a GUI::Menubar object, add menus to it, and then call GUI::Window::set_menubar(). This patch introduces GUI::Window::add_menu() which creates the menubar automatically and adds items to it. Application code becomes slightly simpler as a result. :^)
2021-07-16ThemeEditor: Set window size to 480x385 and disable resizingLuK1337
2021-07-16ThemeEditor: Add menu bar with quit and about itemsLuK1337
2021-05-13Userland: Tighten a *lot* of pledges! :^)Andreas Kling
Since applications using Core::EventLoop no longer need to create a socket in /tmp/rpc/, and also don't need to listen for incoming connections on this socket, we can remove a whole bunch of pledges!
2021-04-25Everywhere: Remove empty line after function body opening curly braceLinus Groh
2021-04-23AK: Rename adopt() to adopt_ref()Andreas Kling
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
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-03-12Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)Andreas Kling
Good-bye LogStream. Long live AK::Format!
2021-01-16Everywhere: Drop "shared_buffer" in most GUI programs, pledge "recvfd"Andreas Kling
Now that WindowServer broadcasts the system theme using an anonymous file, we need clients to pledge "recvfd" so they can receive it. Some programs keep the "shared_buffer" pledge since it's still used for a handful of things.
2021-01-15Everywhere: Pledge "sendfd" in WindowServer client programsAndreas Kling
This is needed for the new way we transfer window backing stores.
2021-01-12Applications: Move to Userland/Applications/Andreas Kling