summaryrefslogtreecommitdiff
path: root/Userland/Applications/DisplaySettings
AgeCommit message (Collapse)Author
2023-05-28DisplaySettings: Migrate to `Core::Directory::for_each_entry()`Sam Atkins
2023-05-23Base+Userland: Apply Human Interface Guidelines to Object textthankyouverycool
Corrects a slew of titles, buttons, labels, menu items and status bars for capitalization, ellipses and punctuation. Rewords a few actions and dialogs to use uniform language and punctuation.
2023-05-05LibGUI: Make `Application`'s construction fallibleLucas CHOLLET
The pattern to construct `Application` was to use the `try_create` method from the `C_OBJECT` macro. While being safe from an OOM perspective, this method doesn't propagate errors from the constructor. This patch make `Application` use the `C_OBJECT_ABSTRACT` and manually define a `create` method that can bubble up errors from the construction stage. This commit also removes the ability to use `argc` and `argv` to create an `Application`, only `Main`'s `Arguments` can be used. From a user point of view, the patch renames `try_create` => `create`, hence the huge number of modified files.
2023-04-30LibGfx+Userland: Merge FrameShape and FrameShadow into FrameStylethankyouverycool
Previously, Frames could set both these properties along with a thickness to confusing effect: Most shapes of the same shadowing only differentiated at a thickness >= 2, and some not at all. This led to a lot of creative but ultimately superfluous choices in the code. Instead let's streamline our options, automate thickness, and get the right look without so much guesswork. Plain shadowing has been consolidated into a single Plain style, and 0 thickness can be had by setting style to NoFrame.
2023-04-30LibGUI+Userland: Port Labels to Stringthankyouverycool
2023-04-27DisplaySettings: Show bilinear filtered wallpaper in `MonitorWidget`Jelle Raaijmakers
After 7b10c8048c, this is probably more correct.
2023-04-27DisplaySettings: Remove unused code from `MonitorWidget`Jelle Raaijmakers
2023-04-15LibGUI+Userland: Convert MessageBox to fallible constructionthankyouverycool
Adds fallible versions of MessageBox's helper factories, ports DeprecatedString, and rewrites build() to be both fallible and more responsive to font changes. MessageBox now auto shrinks and no longer has to re-build its layout when text changes. It is manually resized once at creation to position properly as a Dialog before being shown.
2023-04-13WindowServer: Implement tile window overlayTom
This adds a tiling mode that will show a tile window overlay rather than immediately tiling a window, triggering window resizes.
2023-04-13WindowServer: Use enum class for Effects and ShowGeometryTom
2023-04-09DisplaySettings: Use FileSystemAccessServer instead of FilePickerhuttongrabiel
Make a call to the FileSystemAccessServer instead of using FilePicker to select a new wallpaper in BackgroundSettings.
2023-03-21DisplaySettings: Detect if a non-default color scheme is in useimplicitfield
2023-03-21DisplaySettings: Stop using DeprecatedStringimplicitfield
This also further improves error propagation in cases where String demands it.
2023-03-21DisplaySettings: Propagate errors in MonitorWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in MonitorSettingsWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in FontSettingsWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in EffectsSettingsWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in BackgroundSettingsWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in DesktopSettingsWidgetimplicitfield
2023-03-21DisplaySettings: Propagate errors in ThemesSettingsWidgetimplicitfield
2023-03-16LibGUI+Applications: Port SettingsWindow::add_tab() to the new stringKarol Kosek
2023-03-13LibThreading: Register BackgroundAction with EventLoopkleines Filmröllchen
BackgroundActions are now added as a job to the event loop, therefore they get canceled when the loop exits and their on_complete action never runs. This fixes all UAF bugs related to BackgroundAction's use of EventLoops, as seen with e.g. thumbnail generation.
2023-03-10Everywhere: Support overriding the system color schemeimplicitfield
2023-03-04Userland: Use Font::pixel_size_rounded_up() instead of glyph_height()Andreas Kling
The only remaining clients of this API are specific to bitmap fonts and editing thereof.
2023-02-13LibCore: Move Stream-based file into the `Core` namespaceTim Schumacher
2023-02-13LibCore: Rename `File` to `DeprecatedFile`Tim Schumacher
As usual, this removes many unused includes and moves used includes further down the chain.
2023-02-10DisplaySettings: Capitalize fallback display mode when loading settingsJulian Offenhäuser
This setting was capitalized a while ago, except for this place where we fall back to "[C]center". This caused a crash in MonitorWidget.
2023-02-02DisplaySettings: Made select wallpaper use allowed file typesMarcus Nilsson
2023-01-26LibGfx: Remove `try_` prefix from bitmap creation functionsTim Schumacher
Those don't have any non-try counterpart, so we might as well just omit it.
2023-01-12LibGUI: Port AbstractThemePreview::set_theme_from_file to Core::StreamKarol Kosek
2023-01-12LibCore+Userland: Make Core::Timer::create_repeating() return ErrorOrSam Atkins
The FIXMEs must flow!
2023-01-07LibGUI+Userland: Rename `try_load_from_gml()` -> `load_from_gml()` :^)Sam Atkins
It's the only one, so the `try` prefix is unnecessary now.
2023-01-07Userland: Replace all uses of `load_from_gml` with `try_load_from_gml`Sam Atkins
MOAR FIXMES! ;^)
2022-12-15LibThreading+Everywhere: Support returning error from `BackgroundAction`Lucas CHOLLET
This patch allows returning an `Error` from the `on_complete` callback in `BackgroundAction`. It also adds a custom callback to manage errors returned during its execution.
2022-12-14LibGfx+Userland: Make Gfx::SystemTheme propagate errorsCygnix Proto
This patch introduces error propagation to Gfx::SystemTheme to remove instances of release_value_but_fixme_should_propagate_errors(). Userland applications that have been affected by this change have been updated to utilise this propagation and as a result 4 such instances of the aforementioned method have been removed.
2022-12-06Everywhere: Rename to_{string => deprecated_string}() where applicableLinus Groh
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-12-04DisplaySettings: Remove unnecessary check for an overridden themeOsamu-kj
Issue discussed in #16290
2022-11-15Userland: Remove workarounds for LibIPC include order sensitivityTimothy Flynn
2022-11-01Everywhere: Mark dependencies of most targets as PRIVATETim Schumacher
Otherwise, we end up propagating those dependencies into targets that link against that library, which creates unnecessary link-time dependencies. Also included are changes to readd now missing dependencies to tools that actually need them.
2022-10-12Userland: Properly populate GENERATED_SOURCESAli Mohammad Pur
We previously put the generated headers in SOURCES, which did not mark them as GENERATED (and did not produce a proper dependency). This commit moves all generated headers into GENERATED_SOURCES, and removes useless header SOURCES.
2022-09-29AK+Everywhere: Replace "protocol" with "scheme" url helpersnetworkException
URL had properly named replacements for protocol(), set_protocol() and create_with_file_protocol() already. This patch removes these function and updates all call sites to use the functions named according to the specification. See https://url.spec.whatwg.org/#concept-url-scheme
2022-09-24LibEDID: Remove head index when retrieving an EDID from DisplayConnectorLiav A
We simply don't need that field anymore, as it was used when one FramebufferDevice could contain multiple framebuffers within it, each for a connected screen head.
2022-09-12Everywhere: Use my very shiny serenityos.org email :^)networkException
2022-08-24WindowServer+DisplaySettings: Capitalize display mode dropdownJames Bellamy
Every other dropdown in settings is capitalized apart from this one. This commit fixes that.
2022-08-16LibGUI+WindowServer+DisplaySettings: Add Tooltips to SystemEffectsthankyouverycool
Tooltips can now be toggled on and off system-wide.
2022-08-16DisplaySettings: Update Workspaces tab GMLthankyouverycool
Removes some verbiage and arranges things consistent with other settings dialogs. Ideally we shouldn't litter UIs with shortcuts, tips, tricks, self-evident or redundant descriptions, etc, so this can be refined again in the future once there's an official way to expose/ customize keyboard shortcuts.
2022-08-09DisplaySettings: Add an Effects tabthankyouverycool
Effects tab provides the UI for setting SystemEffects. DisplaySettings is getting a bit crowded and might need a re-org at some point, but this seems like a good home for effects while the settings mature.
2022-08-03DisplaySettings: Capitalize `s` in screen settingsFiliph Siitam Sandström
2022-08-01Userland+Base: Make the window titlebar font configurable separatelyAndreas Kling
Instead of defaulting to "bold variant of the system default font", let's allow the user to set any font they want as the titlebar font.