mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00

Previously we would unveil the home directory of anon to allow showing anything in the file picker. This patch removes direct access to the home directory and instead makes WidgetGallery connect to FileSystemAccessServer to open a file, making the application more user agnostic and allowing directories outside /home/anon to be shown.
30 lines
1,006 B
CMake
30 lines
1,006 B
CMake
serenity_component(
|
|
WidgetGallery
|
|
TARGETS WidgetGallery
|
|
)
|
|
|
|
compile_gml(./GalleryGML/Window.gml WindowGML.h window_gml)
|
|
compile_gml(./GalleryGML/BasicsTab.gml BasicsTabGML.h basics_tab_gml)
|
|
compile_gml(./GalleryGML/SlidersTab.gml SlidersTabGML.h sliders_tab_gml)
|
|
compile_gml(./GalleryGML/CursorsTab.gml CursorsTabGML.h cursors_tab_gml)
|
|
compile_gml(./GalleryGML/IconsTab.gml IconsTabGML.h icons_tab_gml)
|
|
compile_gml(./GalleryGML/WizardsTab.gml WizardsTabGML.h wizards_tab_gml)
|
|
compile_gml(DemoWizardPage1.gml DemoWizardPage1GML.h demo_wizard_page_1_gml)
|
|
compile_gml(DemoWizardPage2.gml DemoWizardPage2GML.h demo_wizard_page_2_gml)
|
|
|
|
set(SOURCES
|
|
main.cpp
|
|
GalleryWidget.cpp
|
|
WindowGML.h
|
|
BasicsTabGML.h
|
|
SlidersTabGML.h
|
|
CursorsTabGML.h
|
|
IconsTabGML.h
|
|
WizardsTabGML.h
|
|
DemoWizardDialog.cpp
|
|
DemoWizardPage1GML.h
|
|
DemoWizardPage2GML.h
|
|
)
|
|
|
|
serenity_app(WidgetGallery ICON app-widget-gallery)
|
|
target_link_libraries(WidgetGallery LibGUI LibMain LibFileSystemAccessClient)
|