1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-29 06:22:35 +00:00
serenity/Userland/Applications/DisplaySettings
Ali Mohammad Pur 51c2c69357 AK+Everywhere: Disallow constructing Functions from incompatible types
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-06-06 00:27:30 +04:30
..
BackgroundSettings.gml DisplaySettings: Give the UI a facelift :^) 2021-05-20 00:03:30 +02:00
BackgroundSettingsWidget.cpp WindowServer+DisplaySettings: Remove the weird "simple" wallpaper mode 2021-05-20 17:52:38 +02:00
BackgroundSettingsWidget.h DisplaySettings: Give the UI a facelift :^) 2021-05-20 00:03:30 +02:00
CMakeLists.txt DisplaySettings: Add "Fonts" tab 2021-05-21 20:15:51 +02:00
FontSettings.gml DisplaySettings: Add "Fonts" tab 2021-05-21 20:15:51 +02:00
FontSettingsWidget.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
FontSettingsWidget.h FontSettingsWidget: Promote Labels as instance members 2021-05-24 09:08:23 +01:00
main.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
MonitorSettings.gml DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
MonitorSettingsWidget.cpp DisplaySettings: Fix broken path to MonitorSettingsWidget's GML 2021-05-20 00:25:15 +02:00
MonitorSettingsWidget.h DisplaySettings: Rename DisplaySettingsWidget => MonitorSettingsWidget 2021-05-20 00:03:30 +02:00
MonitorWidget.cpp DisplaySettings: Set monitor widget color if no image is selected 2021-05-29 13:30:19 +01:00
MonitorWidget.h DisplaySettings: Improve wallpaper preview code 2021-05-20 17:52:38 +02:00