Skip to content

Commit

Permalink
Add possibility to choose dark countdown background
Browse files Browse the repository at this point in the history
Change-Id: I86564d8aca632d929428b1844fbb60e12b90dfb1
  • Loading branch information
andi34 committed Dec 12, 2019
1 parent 3b08033 commit 2219d2f
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
$config['continuous_collage'] = false;
$config['color_theme'] = 'default'; // possible values are default, blue-gray, or an array with the corresponding colors (e.g. ['primary' => '#fff', 'secondary'=>'#a1a1a1', 'font'=>'#000'])
$config['force_buzzer'] = false;
$config['dark_loader'] = false;

// specify key id to use that key to take a picture or collage (e.g. 13 is the enter key)
// use for example https://keycode.info to get the key code
Expand Down
5 changes: 5 additions & 0 deletions lib/configsetup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@
],
'value' => $config['color_theme']
],
'dark_loader' => [
'type' => 'checkbox',
'name' => 'dark_loader',
'value' => $config['dark_loader']
],
'show_fork' => [
'type' => 'checkbox',
'name' => 'show_fork',
Expand Down
4 changes: 4 additions & 0 deletions resources/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ if (config.color_theme === 'blue-gray') {
$('#wrapper').addClass('bluegray-bg');
}

if (config.dark_loader) {
$('#loader').addClass('darkloader');
}

$(function () {
$('#wrapper').show();
});
3 changes: 2 additions & 1 deletion resources/lang/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ const L10N = {
'jpeg_quality_jpeg_quality_image': 'JPEG Qualität für Bilder (-1 ... 100)',
'jpeg_quality_jpeg_quality_chroma': 'JPEG Qualität für Chroma-Keying (-1 ... 100)',
'jpeg_quality_jpeg_quality_thumb': 'JPEG Qualität für Thumbnails (-1 ... 100)',
'abort': 'Abbrechen'
'abort': 'Abbrechen',
'dark_loader': 'Dunkle Anzeige beim Countdown'
}
3 changes: 2 additions & 1 deletion resources/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ const L10N = {
'jpeg_quality_jpeg_quality_image': 'JPEG quality for images (-1 ... 100)',
'jpeg_quality_jpeg_quality_chroma': 'JPEG quality for chroma-keying (-1 ... 100)',
'jpeg_quality_jpeg_quality_thumb': 'JPEG quality for thumbnails (-1 ... 100)',
'abort': 'Abort'
'abort': 'Abort',
'dark_loader': 'Dark display while countdown'
}
3 changes: 2 additions & 1 deletion resources/lang/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ const L10N = {
'jpeg_quality_jpeg_quality_image': 'Calidad de JPEG para fotos (-1 ... 100)',
'jpeg_quality_jpeg_quality_chroma': 'Calidad de JPEG para chroma-keying (-1 ... 100)',
'jpeg_quality_jpeg_quality_thumb': 'Calidad de JPEG para thumbnails (-1 ... 100)',
'abort': 'Abortar'
'abort': 'Abortar',
'dark_loader': 'Dark display while countdown'
}
3 changes: 2 additions & 1 deletion resources/lang/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ const L10N = {
'jpeg_quality_jpeg_quality_image': 'JPEG qualité des images (-1 ... 100)',
'jpeg_quality_jpeg_quality_chroma': 'JPEG qualité pour chroma-keying (-1 ... 100)',
'jpeg_quality_jpeg_quality_thumb': 'JPEG qualité des thumbnails (-1 ... 100)',
'abort': 'Avorter'
'abort': 'Avorter',
'dark_loader': 'Dark display while countdown'
}
3 changes: 2 additions & 1 deletion resources/lang/gr.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,6 @@ const L10N = {
'jpeg_quality_jpeg_quality_image': 'Ποιότητα JPEG για φωτογραφίες (-1 ... 100)',
'jpeg_quality_jpeg_quality_chroma': 'Ποιότητα JPEG για chroma-keying (-1 ... 100)',
'jpeg_quality_jpeg_quality_thumb': 'Ποιότητα JPEG για μικρογραφίες (-1 ... 100)',
'abort': 'Αποβάλλω'
'abort': 'Αποβάλλω',
'dark_loader': 'Dark display while countdown'
}
9 changes: 9 additions & 0 deletions resources/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,15 @@
.spinner {
font-size: 80px;
}

&.darkloader {
&:after {
background-color: #252525;
}
background: rgba(0,0,0,0.9);
color: #fff;
}

}

.homebtn {
Expand Down

0 comments on commit 2219d2f

Please sign in to comment.