summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings/main.cpp
AgeCommit message (Collapse)Author
2022-02-11LibConfig: Rename pledge_domains(String) => pledge_domain(String)Vitaly Dyachkov
pledge_domains() that takes only one String argument was specifically added as a shortcut for pledging a single domain. So, it makes sense to use singular here.
2021-12-05Applications: Cast unused smart-pointer TRY return values to voidSam Atkins
2021-11-28LibGUI: Move GUI::SettingsWindow setup out of the constructorAndreas Kling
In order to propagate errors that occur during UI setup, we have to move all that logic out of widget/window subclass constructors. This is a first attempt at doing that, for GUI::SettingsWindow.
2021-11-28LibGUI: Make GUI::SettingsWindow::add_tab() return ErrorOrAndreas Kling
This allows us to use TRY() when creating settings UI.
2021-11-28DisplaySettings: Port to LibMain :^)Andreas Kling
2021-11-20DisplaySettings: Migrate to using SettingsWindow :^)Sam Atkins
2021-11-20DisplaySettings: Move screen number show/hide logic into widgetSam Atkins
This is functionally the same as before, as selecting a tab fires Show and HideEvents. But this way, we don't need to directly access the TabWidget, which will make using SettingsWindow simpler.
2021-09-03DisplaySettings: Add context menu for wallpapersKarol Kosek
This adds a 'Show in File Manager' action and copy path action to file context menu for quicker navigation. :^)
2021-08-31DisplaySettings: Use LibConfig where possibleMustafa Quraish
Some places here still need to open `/etc/WindowServer.ini` which we can't do with th ConfigServer yet.
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-08-01Applications: Remove unused header includesBrian Gianforcaro
2021-07-31DisplaySettings: Rename "virtual desktops" => "workspaces"Andreas Kling
2021-07-26DisplaySettings: Prevent minimising the windowJamie Mansfield
This matches how the new MouseSettings application works.
2021-07-03DisplaySettings: Add new Desktop tab with virtual desktop settingsTom
This allows the user to configure the virtual desktop setup as desired.
2021-06-25DisplaySettings: Show screen numbers when showing the Monitors tabTom
This will be helpful once we allow the user to rearrange the displays.
2021-06-06AK+Everywhere: Disallow constructing Functions from incompatible typesAli Mohammad Pur
Previously, AK::Function would accept _any_ callable type, and try to call it when called, first with the given set of arguments, then with zero arguments, and if all of those failed, it would simply not call the function and **return a value-constructed Out type**. This lead to many, many, many hard to debug situations when someone forgot a `const` in their lambda argument types, and many cases of people taking zero arguments in their lambdas to ignore them. This commit reworks the Function interface to not include any such surprising behaviour, if your function instance is not callable with the declared argument set of the Function, it can simply not be assigned to that Function instance, end of story.
2021-05-21DisplaySettings: Add "Fonts" tabAndreas Kling
This allows you to view, edit, and apply changes to the system fonts.
2021-05-20DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidgetAndreas Kling
2021-05-20DisplaySettings: Give the UI a facelift :^)Andreas Kling
- Split the main UI into two tabs: "Background" and "Monitor". - Use a GUI::IconView for selecting background pictures. - Tweak layout, spacing, etc.
2021-05-20DisplaySettings: Tweak main window layout & setup codeAndreas Kling
Get rid of the menu and put some padding around the main tab widget.
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-05-12Everywhere: Add Alt shortcuts to remaining top-level menusLinus Groh
Not sure why some menus did have one and others didn't, even in the same application - now they all do. :^) I added character shortcuts to some menu actions as well.
2021-05-01Everywhere: Rename app_menu to file_menu or game_menuAndreas 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-04-13Everywhere: It's now "Foobar", not "FooBar", and not "foo bar"Andreas Kling
I hereby declare these to be full nouns that we don't split, neither by space, nor by underscore: - Breadcrumbbar - Coolbar - Menubar - Progressbar - Scrollbar - Statusbar - Taskbar - Toolbar This patch makes everything consistent by replacing every other variant of these with the proper one. :^)
2021-03-25Userland: Turn all application menus into window menus :^)Andreas Kling
2021-03-12Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)Andreas Kling
Good-bye LogStream. Long live AK::Format!
2021-01-30Everywhere: Add missing parent window to about dialogsLinus Groh
Partially addresses #5177.
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