summaryrefslogtreecommitdiff
path: root/Userland/Applications/MouseSettings
AgeCommit message (Collapse)Author
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! ;^)
2023-01-01MouseSettings: Tweak "Natural scrolling" checkbox sizeAndreas Kling
The old size wasn't wide enough to accommodate a focus rect, and we ended up clipping the right edge of it.
2022-12-30MouseSettings: Update "switch buttons" icon to reflect checkbox stateRavi J
Using an additional "right button" variant of the graphic, it now updates the icon based on the user's preference of primary button.
2022-12-08WindowServer+MouseSettings: Improve `buttons_switched` namingFiliph Sandström
Before this commit it was a bit ambiguous which buttons the function name were referring to; this instead now makes it clear that it's related to mouse input. Additionally, this also fixes incorrect getter naming leftover from yesteryear.
2022-12-07Meta+Userland: Pass Gfx::Color by valueMacDue
Gfx::Color is always 4 bytes (it's just a wrapper over u32) it's less work just to pass the color directly. This also updates IPCCompiler to prevent from generating Gfx::Color const &, which makes replacement easier.
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-04MouseSettings: Add "Natural scrolling" toggleFiliph Sandström
2022-11-19Everywhere: Remove unnecessary mutable attributes from lambdasMacDue
These lambdas were marked mutable as they captured a Ptr wrapper class by value, which then only returned const-qualified references to the value they point from the previous const pointer operators. Nothing is actually mutating in the lambdas state here, and now that the Ptr operators don't add extra const qualifiers these can be removed.
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-10-04Applications: Use title-case for group box titles in settingsTimothy Flynn
Capitalization was quite inconsistent, even amongst single settings applications. This aligns group box titles to all be title case.
2022-09-29Userland: Replace empty `GUI::Widget`s in GML with `GUI::Layout::Spacer`Sam Atkins
This fixes the "Cancel" button on HackStudio's "New Project" dialog being too small. It's also clearer what these actually are.
2022-07-24MouseSettings: Show highlight toggle shortcut and new layout tweaksMacDue
This now shows the shortcut to enable mouse pointer highlighting below the preview. The GML has also been updated to take advantage of the new layout features rather than using fixed heights.
2022-07-15Applications: Make settings outer margins and spacing consistentFrHun
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-28LibGUI+Applications: Use the new layout system in the settings screensFrHun
2022-06-10WindowServer+MouseSettings: Toggle cursor highlighting with Super+HMacDue
Rather than enabling/disabling cursor highlighting by going into mouse settings, you can now instead toggle it any time with Super+H. Mouse settings now is only for customising the look of the highlighting.
2022-06-10MouseSettings: Support animated cursors in the highlighting previewMacDue
2022-06-10MouseSettings: Avoid rendering artifact on loading highlighting defaultsMacDue
Occasionally, the top of the preview would have the wrong opacity. This seems to be solved by updating the widget again a bit after setting the values.
2022-06-10WindowServer+MouseSettings: Make default cursor highlight more visibleMacDue
A litte smaller, and red with a slightly higher opacity, which is much easier to make out.
2022-06-06MouseSettings: Get highlight preview cursor via cursor theme Config.iniMacDue
Fixes #14200
2022-06-05MouseSettings: Add tab to configure cursor highlightingMacDue
This adds a nice little tab, including a preview, for configuring the cursor highlighting. Which allows setting the color, size/radius, and opacity.
2022-05-12MouseSettings: Set window modified stateSam Atkins
2022-05-12MouseSettings: Update the cursor theme preview when restoring defaultsSam Atkins
Previously, if you opened MouseSettings, set the cursor theme to Dark, and then click "Defaults", the cursors list would not update. ComboBox::set_text() does not call the on_change callback, so we have to run the steps manually. I've also made `m_theme_name` into a local variable, since it can be.
2022-04-21LibGUI+Applications: Add --open-tab option to FooSettings applicationsSam Atkins
Similar to SystemMonitor's option of the same name, this allows you to launch the given application with the specific tab open.
2022-04-21LibGUI+Applications: Give SettingsWindow tabs a string IDSam Atkins
This gives us a convenient way to refer to them, which will be used in the following commit.
2022-04-09LibGfx: Move other font-related files to LibGfx/Font/Simon Wanner
2022-02-25Userland: Rename WindowServerConnection=>ConnectionToWindowServerItamar
This was done with CLion's automatic rename feature.
2022-02-14Applications: Use default constructors/destructorsLenny Maiorani
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-13Userland: Run gml-formatIdan Horowitz
This brings the existing GML files up to spec with the new requirements
2022-02-07Meta+Userland: Run the GML formatter on CI and pre-commitkleines Filmröllchen
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-01-29MouseSettings: Set icons from GMLDylan Katz
2022-01-28MouseSettings: Use standard text placement for check box textTimothy Flynn
2021-12-24LibGUI+Userland: Make SortingProxyModel::create() return ErrorOrSam Atkins
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-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-28Everywhere: Use default execpromises argument for Core::System::pledgeBrian Gianforcaro
2021-11-24MouseSettings: Port to LibMain :^)Andreas Kling
2021-11-20MouseSettings: Adjust layout so mouse-button image is no longer clippedSam Atkins
2021-11-20MouseSettings: Migrate to using SettingsWindow :^)Sam Atkins
2021-11-08LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()Andreas Kling
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-08LibGfx: Use ErrorOr<T> for Bitmap::cropped()Andreas Kling
2021-11-03Applications: Remove border from GroupBox marginsFrHun
2021-10-28MouseSettings: Reset the double-click timer after every second clickJelle Raaijmakers
The old behavior of restarting the timer after every second click could result in double-click-chains (or triple+ clicks), which does not feel like the right behavior. By resetting the double-clicking timer, you need to perform a new full double-click to make the arrows change color again.
2021-10-25MouseSettings: Add option to reverse buttonsAndrew Pardoe
Add option to reverse primary and secondary buttons in Mouse Settings. - WindowServer.ini: add default entry - switch-mouse-buttons.png: new icon for settings entry - Mouse.gml/MouseWidget.*: new settings dialog - ClientConnection/WindowManager/Server: window message for settings - EventLoop.cpp: swap buttons 1 and 2 if settings are on
2021-09-20WidgetGallery+MouseSettings: Use LexicalPath::basename()Karol Kosek
2021-08-31Userland: Use Rect::centered_within() where usefulAndreas Kling