i did small hack, for great Aurora theme (thanks blauwebuis) to support custom colours and image backgrounds for different Room-plans. Im not coder so its not best way (its mostly copy+paste coding , in current theme support would be probably hard to support it directly in theme setting.
This way you can customise even more css elements for different roomplan.
Few examples:
Instalation
Use latest Domoticz beta with Aurora theme
1. IMAGES
i did few png backgrounds (you can use mine or your files
PNG_files
PSD_files
copy background files to /Domoticz/www/styles/aurora-theme/images
2. SCRIPT
Edit /Domoticz/www/styles/aurora-theme/custom.js
change numbers and images to you roomplan numbers (you can check them with safari/chrome/firefox click on roomplan with right click and select inspect element and find right numbers in html.
You can also change colors..
here is my code:
line 1175 (function frontendImprovement())
add
Code: Select all
// CUSTOM BACKGROUND
$('#comboroom').change(function() {
if ($(this).val() == '3') {
console.log('obyvak');
$('body').css('background-image', 'url(/images/cinema.png)')
$('body').css('background-color', '#202020)')
}
if ($(this).val() == '4') {
$('body').css('background-image', 'url(/images/BGR.png)')
$('body').css('background-color', '#003300')
}
if ($(this).val() == '5') {
$('body').css('background-image', 'url(/images/Security.png)')
$('body').css('background-color', '#660000')
}
if ($(this).val() == '6') {
$('body').css('background-image', 'url(/images/mereni.png)')
$('body').css('background-color', '#000000')
}
if ($(this).val() == '7') {
$('body').css('background-image', 'url(/images/solar_BGR.png)')
$('body').css('background-color', '#1a1a00')
}
if ($(this).val() == '8') {
$('body').css('background-image', 'url(/images/NIBE.png)')
$('body').css('background-color', '#330000')
}
if ($(this).val() == '9') {
$('body').css('background-image', 'url(/images/cam.png)')
$('body').css('background-color', '#202020')
}
});
Edit /Domoticz/www/styles/aurora-theme/custom.css and add something like this....
Code: Select all
html body{
background-repeat: no-repeat!important;
background-position: center bottom!important;
background-size: 100% auto!important;
background:none;
opacity: 1!important;
padding:0
background-attachment: fixed;
background-size: cover
}
During testing I recommend use private mode in browser to prevent caching problems
Sorry about typos, English is not my main language
Btw i did some camera (for my xiaomi dafang cam) improvements in theme (built in movements button) if is someone interested