From 37ca6cd0175917af618e2d726db2ed643d4e3937 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Tue, 5 Nov 2024 19:49:03 -0700 Subject: [PATCH] Add full screen imagery and styling Signed-off-by: Justin Georgi --- includes/GlModelTransformOutput.php | 4 ++-- modules/glmv.css | 1 + resources/full_close.svg | 1 + resources/full_open.svg | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 resources/full_close.svg create mode 100644 resources/full_open.svg diff --git a/includes/GlModelTransformOutput.php b/includes/GlModelTransformOutput.php index e8a325a..8723ad5 100644 --- a/includes/GlModelTransformOutput.php +++ b/includes/GlModelTransformOutput.php @@ -209,8 +209,8 @@ class GlModelTransformOutput extends MediaTransformOutput { 'ontouchstart' => 'event.stopPropagation()' ); - $screenDownUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/hs_slideshow.svg'; - $screenUpUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/hs_hide.svg'; + $screenDownUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/full_close.svg'; + $screenUpUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/full_open.svg'; $attrMenuButtonScreen = array ( 'class' => 'glmv-menu-button', 'onclick' => 'toggleFullScreen(this.parentNode.parentNode)', diff --git a/modules/glmv.css b/modules/glmv.css index 1d30c74..01f66ab 100644 --- a/modules/glmv.css +++ b/modules/glmv.css @@ -84,6 +84,7 @@ .glmv-container { position: relative; + background: white; & .full-show { display: none !important; diff --git a/resources/full_close.svg b/resources/full_close.svg new file mode 100644 index 0000000..34212a2 --- /dev/null +++ b/resources/full_close.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/full_open.svg b/resources/full_open.svg new file mode 100644 index 0000000..3ebfb5f --- /dev/null +++ b/resources/full_open.svg @@ -0,0 +1 @@ + \ No newline at end of file