diff --git a/src/UI/Settings/UIWindowSettings.js b/src/UI/Settings/UIWindowSettings.js index e155bbd9e..6a8560d43 100644 --- a/src/UI/Settings/UIWindowSettings.js +++ b/src/UI/Settings/UIWindowSettings.js @@ -25,6 +25,7 @@ import UIWindowChangeUsername from '../UIWindowChangeUsername.js' import changeLanguage from "../../i18n/i18nChangeLanguage.js" import UIWindowConfirmUserDeletion from './UIWindowConfirmUserDeletion.js'; import UITabAbout from './UITabAbout.js'; +import UIWindowThemeDialog from '../UIWindowThemeDialog.js'; async function UIWindowSettings(options){ return new Promise(async (resolve) => { @@ -39,6 +40,7 @@ async function UIWindowSettings(options){ h += `
${i18n('about')}
`; h += `
${i18n('usage')}
`; h += `
${i18n('account')}
`; + h += `
${i18n('personalization')}
`; h += `
${i18n('language')}
`; h += `
${i18n('clock')}
`; h += ``; @@ -111,6 +113,18 @@ async function UIWindowSettings(options){ h += ``; + // Personalization + h += `
`; + h += `

${i18n('personalization')}

`; + // change password button + h += `
`; + h += `${i18n('ui_colors')}`; + h += `
`; + h += ``; + h += `
`; + h += `
`; + h += `
`; + // Language h += `
`; h += `

${i18n('language')}

`; @@ -306,6 +320,10 @@ async function UIWindowSettings(options){ UIWindowChangeUsername(); }) + $(el_window).find('.change-ui-colors').on('click', function (e) { + UIWindowThemeDialog(); + }) + $(el_window).on('click', '.settings-sidebar-item', function(){ const $this = $(this); const settings = $this.attr('data-settings'); diff --git a/src/css/style.css b/src/css/style.css index 10d8165d3..54f1d3b5b 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -24,8 +24,8 @@ :root { --primary-hue: 231; - --primary-saturation: 100%; - --primary-lightness: 50%; + --primary-saturation: 50%; + --primary-lightness: 90%; --primary-alpha: 0.7; --window-head-hue: var(--primary-hue); diff --git a/src/initgui.js b/src/initgui.js index c199c288d..b5d2afb37 100644 --- a/src/initgui.js +++ b/src/initgui.js @@ -54,10 +54,6 @@ const launch_services = async function () { for (const [_, instance] of services_l_) { await instance._init(); } - - setTimeout(() => { - UIWindowThemeDialog(); - }, 1000); }; window.initgui = async function(){