|
@@ -505,6 +505,7 @@ async function UIDesktop(options){
|
|
const user_preferences = {
|
|
const user_preferences = {
|
|
show_hidden_files: JSON.parse(await puter.kv.get('user_preferences.show_hidden_files')),
|
|
show_hidden_files: JSON.parse(await puter.kv.get('user_preferences.show_hidden_files')),
|
|
language: await puter.kv.get('user_preferences.language'),
|
|
language: await puter.kv.get('user_preferences.language'),
|
|
|
|
+ clock_visable: await puter.kv.get('user_preferences.clock_visable'),
|
|
};
|
|
};
|
|
|
|
|
|
// update default apps
|
|
// update default apps
|
|
@@ -1379,14 +1380,15 @@ document.addEventListener('fullscreenchange', (event) => {
|
|
// document.fullscreenElement will point to the element that
|
|
// document.fullscreenElement will point to the element that
|
|
// is in fullscreen mode if there is one. If there isn't one,
|
|
// is in fullscreen mode if there is one. If there isn't one,
|
|
// the value of the property is null.
|
|
// the value of the property is null.
|
|
|
|
+
|
|
if (document.fullscreenElement) {
|
|
if (document.fullscreenElement) {
|
|
$('.fullscreen-btn').css('background-image', `url(${window.icons['shrink.svg']})`);
|
|
$('.fullscreen-btn').css('background-image', `url(${window.icons['shrink.svg']})`);
|
|
$('.fullscreen-btn').attr('title', 'Exit Full Screen');
|
|
$('.fullscreen-btn').attr('title', 'Exit Full Screen');
|
|
- $('#clock').show();
|
|
|
|
|
|
+ window.user_preferences.clock_visable === 'auto' && $('#clock').show();
|
|
} else {
|
|
} else {
|
|
$('.fullscreen-btn').css('background-image', `url(${window.icons['fullscreen.svg']})`);
|
|
$('.fullscreen-btn').css('background-image', `url(${window.icons['fullscreen.svg']})`);
|
|
$('.fullscreen-btn').attr('title', 'Enter Full Screen');
|
|
$('.fullscreen-btn').attr('title', 'Enter Full Screen');
|
|
- $('#clock').hide();
|
|
|
|
|
|
+ window.user_preferences.clock_visable === 'auto' && $('#clock').hide();
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|