MacDue
0c74f30819
DisplaySettings: Link to cursor themes from "Themes" tab
...
This removes a few clicks to access the mouse settings and puts
all theming actions in one place.
2022-05-25 23:14:22 +01:00
Sam Atkins
cdffe556c8
LibGUI+Userland: Make Dialog::ExecResult an enum class
2022-05-13 16:27:43 +02:00
Sam Atkins
d7190be3a3
DisplaySettings: Set window modified state
2022-05-12 13:10:49 +02:00
Linus Groh
9202f101b5
DisplaySettings: Add 2256x1504 resolution
...
This is a common resolution of laptops with a 3:2 aspect ratio, such as
the Framework Laptop or Microsoft Surface Laptop.
2022-05-09 20:22:10 +02:00
Karol Kosek
92f4408d66
DisplaySettings: Make the copy action copy the background path as url
...
Closes : #13907
2022-05-08 16:41:04 +02:00
MacDue
875093e6a9
DisplaySettings: Fix Clang build failure in ThemePreviewWidget
2022-05-07 23:46:41 +02:00
MacDue
6e52e6b554
DisplaySettings: Center preview with center_window_group_within()
2022-05-07 22:58:55 +02:00
Liav A
e301af8352
Everywhere: Purge all support and usage of framebuffer devices
...
Long live the DisplayConnector object!
2022-05-05 20:55:57 +02:00
Liav A
d9a2706079
DisplaySettings+WindowServer: Add support for display connector devices
2022-05-05 20:55:57 +02:00
Sam Atkins
5702f016f0
LibGUI+Applications: Add --open-tab option to FooSettings applications
...
Similar to SystemMonitor's option of the same name, this allows you to
launch the given application with the specific tab open.
2022-04-21 17:24:42 +02:00
Sam Atkins
ded5ba1f87
LibGUI+Applications: Give SettingsWindow tabs a string ID
...
This gives us a convenient way to refer to them, which will be used in
the following commit.
2022-04-21 17:24:42 +02:00
kleines Filmröllchen
be98ce0f9f
WindowServer: Add the screen mode property in the screen configuration
...
This will allow us to change between a couple of properties, for now
it's only Device and Virtual. (How about Remote :^) ) These get handled
by a different screen backend in the Screen.
2022-04-21 13:41:55 +02:00
Simon Wanner
206d6ece55
LibGfx: Move other font-related files to LibGfx/Font/
2022-04-09 23:48:18 +02:00
Ben Maxwell
8070a98288
DisplaySettings+WindowServer: Allow updating theme without background
...
With this change you can now set the theme and background color at the
same time in the Display Settings. Before if both were changed
before hitting 'apply' the theme background color would overwrite
the custom background.
2022-04-03 12:58:46 +02:00
Ben Maxwell
e6ad55ab53
DisplaySettings: Stop theme tab from overriding background color
...
Fixes #13448
2022-04-03 12:58:46 +02:00
MacDue
04b6a060ca
DisplaySettings: Add theme selection and preview
2022-04-02 21:50:41 +02:00
Itamar
935d023967
Userland: Rename WindowServerConnection=>ConnectionToWindowServer
...
This was done with CLion's automatic rename feature.
2022-02-25 22:35:12 +01:00
stijndr
d01ca4e3e2
Userland: Dynamically update the MonitorSettingsWidget countdown timer
...
This causes the number of seconds in "Do you want to keep the new
settings? They will be reverted after 10 seconds." to be dynamically
updated.
2022-02-18 10:33:46 +01:00
Sam Atkins
8260135d4d
LibCore+Everywhere: Return ErrorOr from ConfigFile factory methods
...
I've attempted to handle the errors gracefully where it was clear how to
do so, and simple, but a lot of this was just adding
`release_value_but_fixme_should_propagate_errors()` in places.
2022-02-16 19:49:41 -05:00
ForLoveOfCats
5da3063a39
DisplaySettings: Include aspect ratio in resolution list text
2022-02-15 10:44:37 +01:00
Lenny Maiorani
160bda7228
Applications: Use default constructors/destructors
...
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-14 22:06:55 +00:00
James Puleo
a0e7a4b9a8
WindowServer+Userland: Pass wallpapers as Gfx::Bitmap
instead of path
...
The WindowServer _really_ does not need to know the filesystem path to
it's wallpaper, and allows setting arbitrary wallpapers (those outside
of `/res/wallpapers`).
The GUI::Desktop will keep track of the path to the wallpaper (if any),
and save it to config if desired (to be persisted).
This avoids the need to `unveil` paths to the wallpaper, fixing #11158
2022-02-14 16:38:42 +03:30
Idan Horowitz
c8ab45e79f
Userland: Run gml-format
...
This brings the existing GML files up to spec with the new requirements
2022-02-13 02:36:35 +02:00
Vitaly Dyachkov
32b8795091
LibConfig: Rename pledge_domains(String) => pledge_domain(String)
...
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.
2022-02-11 18:06:39 +01:00
kleines Filmröllchen
6ee597369d
Meta+Userland: Run the GML formatter on CI and pre-commit
...
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-02-07 18:39:50 +01:00
thankyouverycool
a593b83189
LibGfx+Applications: Add human readable name helper for fonts
...
This returns a more comprehensible name than raw weight and slope
metrics and is intended for use in UIs. Now displays human readable
font names in FontSettings, TerminalSettings and CharacterMap.
2022-02-01 10:06:26 +01:00
Dylan Katz
caecb6ba72
DisplaySettings: Set icons from GML
2022-01-29 13:45:34 +01:00
Tom
6565ec59fa
DisplaySettings: Show display's manufacturer and size instead of device
...
Rather than displaying the path of the framebuffer, try and display
the manufacturer name and the size of the display. If no EDID data is
available, fall back to showing the device path.
2022-01-23 22:45:21 +00:00
Tom
ab1075e296
DisplaySettings: Show DPI for selected resolution
...
This uses the EDID provided by the connected display to show the pixel
density of a selected resolution.
2022-01-23 22:45:21 +00:00
Filiph Sandström
ec28af0aef
DisplaySettings: Add 1440p ultrawide resolution
2022-01-02 13:27:02 +01:00
Sam Atkins
3ca2aee054
Applications: Cast unused smart-pointer TRY return values to void
2021-12-05 15:31:03 +01:00
Sam Atkins
d2024f04bd
Userland: Cast unused BackgroundAction::construct() results to void
...
User code does not need to keep this alive, so casting to void is safe.
But maybe a bit weird.
2021-12-05 15:31:03 +01:00
Andreas Kling
60c132d7d3
LibGUI: Move GUI::SettingsWindow setup out of the constructor
...
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-28 08:54:22 +01:00
Andreas Kling
45844f9338
LibGUI: Make GUI::SettingsWindow::add_tab() return ErrorOr
...
This allows us to use TRY() when creating settings UI.
2021-11-28 08:10:53 +01:00
Andreas Kling
984cf1fe7a
DisplaySettings: Port to LibMain :^)
2021-11-28 08:10:53 +01:00
Karol Kosek
20191b58e2
DisplaySettings: Update wallpaper config path only on success
...
The Window Server is ignoring incorrect files since 235f39e449
, so let's
not update the config when that happens and an error message instead!
2021-11-26 11:30:55 -08:00
Karol Kosek
e56ffd11ce
DisplaySettings: Always save the background color to the config
...
Previously, you could notice that the background color isn't being
updated when you picked a small bitmap image with the 'center' mode.
2021-11-26 11:30:55 -08:00
Sam Atkins
1dd5c838cf
DisplaySettings: Migrate to using SettingsWindow :^)
2021-11-20 21:05:20 +00:00
Sam Atkins
a4af8b2a64
DisplaySettings: Move screen number show/hide logic into widget
...
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-11-20 21:05:20 +00:00
Karol Kosek
e38b3f526e
DisplaySettings: Handle errors when loading wallpaper bitmap
...
Prior this change, the app crashed if the first file in alphabetical
order in /res/wallpapers couldn't be decoded.
2021-11-16 01:07:37 +00:00
Andreas Kling
d21dc1f451
Everywhere: Replace "virtual desktop" => "workspace"
2021-11-13 12:48:43 +01:00
Andreas Kling
0de33b3d6c
LibGfx: Use ErrorOr<T> for Bitmap::try_create()
...
Another one that was used in a fajillion places.
2021-11-08 00:35:27 +01:00
Andreas Kling
235f39e449
LibGfx: Use ErrorOr<T> for Bitmap::try_load_from_file()
...
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-08 00:35:27 +01:00
Andreas Kling
5e41c70e83
LibGfx: Use ErrorOr<T> for Bitmap::scaled()
2021-11-08 00:35:27 +01:00
FrHun
54605794f9
Applications: Remove border from GroupBox margins
2021-11-03 16:13:19 +01:00
Ben Wiederhake
59619572d6
LibThreading: Remove redundant method
2021-11-02 11:07:26 +01:00
Karol Kosek
ad5bd209ba
DisplaySettings: Add context menu for wallpapers
...
This adds a 'Show in File Manager' action and copy path action to file
context menu for quicker navigation. :^)
2021-09-03 23:15:47 +02:00
Mustafa Quraish
8fdb435d24
DisplaySettings: Use LibConfig where possible
...
Some places here still need to open `/etc/WindowServer.ini` which
we can't do with th ConfigServer yet.
2021-08-31 17:00:41 +02:00
Andreas Kling
087bd7f767
Userland: Use Rect::centered_within() where useful
2021-08-31 01:35:08 +02:00
networkException
acde7d12b0
Everywhere: Rename get in ConfigFile::get_for_{lib,app,system} to open
...
This patch brings the ConfigFile helpers for opening lib, app and system
configs more inline with the regular ConfigFile::open functions.
2021-08-22 01:32:25 +02:00