Add full screen imagery and styling

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-11-05 19:49:03 -07:00
parent d80c31449b
commit 37ca6cd017
4 changed files with 5 additions and 2 deletions

View File

@@ -209,8 +209,8 @@ class GlModelTransformOutput extends MediaTransformOutput {
'ontouchstart' => 'event.stopPropagation()' 'ontouchstart' => 'event.stopPropagation()'
); );
$screenDownUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/hs_slideshow.svg'; $screenDownUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/full_close.svg';
$screenUpUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/hs_hide.svg'; $screenUpUrl = $mainConfig->get( 'ExtensionAssetsPath' ) . '/GlModelViewer/resources/full_open.svg';
$attrMenuButtonScreen = array ( $attrMenuButtonScreen = array (
'class' => 'glmv-menu-button', 'class' => 'glmv-menu-button',
'onclick' => 'toggleFullScreen(this.parentNode.parentNode)', 'onclick' => 'toggleFullScreen(this.parentNode.parentNode)',

View File

@@ -84,6 +84,7 @@
.glmv-container { .glmv-container {
position: relative; position: relative;
background: white;
& .full-show { & .full-show {
display: none !important; display: none !important;

1
resources/full_close.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="#5f6368"><path d="M126.67-80 80-126.67l286.67-286.66H160V-480h320v320h-66.67v-206.67L126.67-80ZM480-480v-320h66.67v206.67L833.33-880 880-833.33 593.33-546.67H800V-480H480Z"/></svg>

After

Width:  |  Height:  |  Size: 278 B

1
resources/full_open.svg Normal file
View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="40px" viewBox="0 -960 960 960" width="40px" fill="#5f6368"><path d="M120-120v-306.67h66.67v193.34l540-540H533.33V-840H840v306.67h-66.67v-193.34l-540 540h193.34V-120H120Z"/></svg>

After

Width:  |  Height:  |  Size: 226 B