From 4e8c7455aaf0dc02baac5b9378e3cecc2f998c8b Mon Sep 17 00:00:00 2001 From: jelveh Date: Tue, 22 Oct 2024 17:18:16 -0700 Subject: [PATCH] tweak: Move clock settings to the 'Personalization' tab of 'Settings' --- src/gui/src/UI/Settings/UITabClock.js | 45 ------------------- .../src/UI/Settings/UITabPersonalization.js | 11 ++++- src/gui/src/UI/Settings/UIWindowSettings.js | 5 +++ src/gui/src/UI/UIDesktop.js | 2 +- src/gui/src/css/style.css | 9 ++++ src/gui/src/globals.js | 4 ++ src/gui/src/i18n/translations/en.js | 1 + src/gui/src/services/SettingsService.js | 2 - 8 files changed, 29 insertions(+), 50 deletions(-) delete mode 100644 src/gui/src/UI/Settings/UITabClock.js diff --git a/src/gui/src/UI/Settings/UITabClock.js b/src/gui/src/UI/Settings/UITabClock.js deleted file mode 100644 index e49530ee..00000000 --- a/src/gui/src/UI/Settings/UITabClock.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Copyright (C) 2024 Puter Technologies Inc. - * - * This file is part of Puter. - * - * Puter is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - - -// About -export default { - id: 'clock', - title_i18n_key: 'clock', - icon: 'clock.svg', - html: () => { - return ` -

${i18n('clock')}

-
- ${i18n('visibility')}: - -
`; - }, - init: ($el_window) => { - $el_window.on('change', 'select.change-clock-visible', function(e){ - window.change_clock_visible(this.value); - }); - - window.change_clock_visible(); - }, -}; diff --git a/src/gui/src/UI/Settings/UITabPersonalization.js b/src/gui/src/UI/Settings/UITabPersonalization.js index 0c50464f..99e2aabf 100644 --- a/src/gui/src/UI/Settings/UITabPersonalization.js +++ b/src/gui/src/UI/Settings/UITabPersonalization.js @@ -40,8 +40,16 @@ export default { +
+ ${i18n('clock_visibility')} + +
- ${i18n('menubar_style')} + ${i18n('menubar_style')}
-