Skip to content

Commit

Permalink
cleanup: remove fullscreen button option (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 authored Dec 4, 2024
1 parent 623b177 commit d6db517
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 31 deletions.
10 changes: 0 additions & 10 deletions assets/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,16 +1450,6 @@ const photoBooth = (function () {
});
});

$('.fs-button').on('click', function (e) {
e.preventDefault();
if (document.fullscreenElement) {
document.exitFullscreen();
} else {
document.body.requestFullscreen();
}
$('#fs-button').trigger('blur');
});

api.handleButtonPressWhileTakingPic = function () {
if (api.nextCollageNumber > 0) {
const btnCollageNext = $('#btnCollageNext');
Expand Down
6 changes: 0 additions & 6 deletions assets/sass/themes/_classic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@
top: 2rem;
left: 2rem;
}
button[data-command='fs-button'] {
position: fixed;
top: 2rem;
left: 2rem;
translate: 0 calc(100% + 0.5rem);
}
button[data-command='cups-button'] {
position: fixed;
bottom: 2rem;
Expand Down
6 changes: 0 additions & 6 deletions lib/configsetup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -2697,12 +2697,6 @@
PathUtility::getAbsolutePath('private/images/cheese'),
]
],
'button_show_fs' => [
'view' => 'basic',
'type' => 'checkbox',
'name' => 'button[show_fs]',
'value' => $config['button']['show_fs'],
],
'button_homescreen' => [
'view' => 'advanced',
'type' => 'checkbox',
Expand Down
2 changes: 0 additions & 2 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@
"manual:userinterface:background_video": "Path to the video to use as background. NOTE: You can also use youtube links!",
"manual:userinterface:button_homescreen": "If disabled, the home button on the results screen will be hidden.",
"manual:userinterface:button_reload": "If enabled, a button to reload the page will be added to the start screen.",
"manual:userinterface:button_show_fs": "If enabled, a button to toggle fullscreenmode will be added to the start screen.",
"manual:userinterface:icons_admin": "ToDo",
"manual:userinterface:icons_admin_back": "ToDo",
"manual:userinterface:icons_admin_back_short": "ToDo",
Expand Down Expand Up @@ -971,7 +970,6 @@
"userinterface:background_video": "Background video path",
"userinterface:button_homescreen": "Show home button on results screen",
"userinterface:button_reload": "Show reload button",
"userinterface:button_show_fs": "Show button to toggle fullscreen",
"userinterface:colors_background_countdown": "Countdown background color",
"userinterface:colors_border": "Border color",
"userinterface:colors_box": "Field color",
Expand Down
1 change: 0 additions & 1 deletion src/Configuration/PhotoboothConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,6 @@ protected function addButton(): NodeDefinition
->booleanNode('force_buzzer')->defaultValue(false)->end()
->scalarNode('buzzer_message')->defaultValue('Use Buzzer to take a Picture')->end()
->booleanNode('show_cups')->defaultValue(false)->end()
->booleanNode('show_fs')->defaultValue(false)->end()
->booleanNode('show_printUnlock')->defaultValue(false)->end()
->booleanNode('homescreen')->defaultValue(true)->end()
->booleanNode('reload')->defaultValue(false)->end()
Expand Down
3 changes: 0 additions & 3 deletions template/components/actionBtn.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
if ($config['gallery']['enabled']) {
echo ComponentUtility::renderButton('gallery', $config['icons']['gallery'], 'gallery-button');
}
if ($config['button']['show_fs']) {
echo ComponentUtility::renderButton('toggleFullscreen', $config['icons']['fullscreen'], 'fs-button');
}
if ($config['button']['show_cups']) {
echo ComponentUtility::renderButton('cups', $config['icons']['cups'], 'cups-button');
}
Expand Down
3 changes: 0 additions & 3 deletions template/components/selfieAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@
if ($config['gallery']['enabled']) {
echo ComponentUtility::renderButton('gallery', $config['icons']['gallery'], 'gallery-button');
}
if ($config['button']['show_fs']) {
echo ComponentUtility::renderButton('toggleFullscreen', $config['icons']['fullscreen'], 'fs-button');
}
if ($config['button']['show_cups']) {
echo ComponentUtility::renderButton('cups', $config['icons']['cups'], 'cups-button');
}
Expand Down

0 comments on commit d6db517

Please sign in to comment.