From e7ca0d18397ea99cfd96a0e31aa1e3d9f6c2317c Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Fri, 8 Mar 2024 00:15:38 +0900 Subject: [PATCH 01/31] Update UIItem.js seperator -> separator --- src/UI/UIItem.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index 989ed77c..b40cf5fc 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -1066,7 +1066,7 @@ function UIItem(options){ }); // ------------------------------------------- - // -- seperator -- + // -- separator -- // ------------------------------------------- menu_items.push('-'); } @@ -1085,7 +1085,7 @@ function UIItem(options){ } }); // ------------------------------------------- - // -- seperator -- + // -- separator -- // ------------------------------------------- if(!is_trash && !is_trashed && options.is_dir) menu_items.push('-'); @@ -1617,4 +1617,4 @@ window.activate_item_name_editor= function(el_item){ $(el_item_name_editor).select(); } -export default UIItem; \ No newline at end of file +export default UIItem; From 40182fbf58ac952cf3d69ffe3fbc30e66fbeba24 Mon Sep 17 00:00:00 2001 From: Lynan <24271362+LynanBreeze@users.noreply.github.com> Date: Fri, 8 Mar 2024 16:11:39 +0800 Subject: [PATCH 02/31] style: fix tooltip shadow on taskbarItem --- src/css/style.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/css/style.css b/src/css/style.css index 50367484..51275c3a 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -2117,16 +2117,16 @@ label { .ui-tooltip, .arrow:after { background-color: rgba(231, 238, 245, .92); - backdrop-filter: blur(3px); + box-shadow: none; } .ui-tooltip { - padding: 5px 10px; + padding: 7px 11px; border-radius: 2px; font: 14px "Helvetica Neue", Sans-Serif; - box-shadow: 0 0 3px rgba(0, 0, 0, 0.455); - background-color: rgba(231, 238, 245, .92); + border: none !important; backdrop-filter: blur(3px); + filter: drop-shadow(0 0 3px rgba(0,0,0,.455)); } .arrow { From e39e38da112d0dee5fb96ea7de9cfe2c36777928 Mon Sep 17 00:00:00 2001 From: Sun Jia Cheng Date: Sat, 9 Mar 2024 11:06:14 +0800 Subject: [PATCH 03/31] Implement 'Show Hidden Files' feature --- .gitignore | 3 ++- src/UI/UIDesktop.js | 12 ++++++++++++ src/UI/UIItem.js | 3 ++- src/UI/UIWindow.js | 12 ++++++++++++ src/css/style.css | 12 ++++++++++++ src/globals.js | 13 ++++++++++++ src/helpers.js | 48 ++++++++++++++++++++++++++++++++++++++++----- 7 files changed, 96 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8b23bc40..289d6b5b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ node_modules/ *.tgz license.config.json license-header.txt -dist/ \ No newline at end of file +dist/ +.vscode/ \ No newline at end of file diff --git a/src/UI/UIDesktop.js b/src/UI/UIDesktop.js index 6b85a06e..844053be 100644 --- a/src/UI/UIDesktop.js +++ b/src/UI/UIDesktop.js @@ -683,6 +683,18 @@ async function UIDesktop(options){ } }, // ------------------------------------------- + // Show/Hide hidden files + // ------------------------------------------- + { + html: `${window.user_preferences.show_hidden_files ? 'Hide' : 'Show'} hidden files`, + onClick: function(){ + window.mutate_user_preferences({ + show_hidden_files : !window.user_preferences.show_hidden_files, + }); + window.show_or_hide_files(document.querySelectorAll('.item-container')); + } + }, + // ------------------------------------------- // - // ------------------------------------------- '-', diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index b40cf5fc..4d580128 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -46,6 +46,7 @@ function UIItem(options){ // set options defaults options.disabled = options.disabled ?? false; + options.visible = options.visible ?? 'visible'; // one of 'visible', 'revealed', 'hidden' options.is_dir = options.is_dir ?? false; options.is_selected = options.is_selected ?? false; options.is_shared = options.is_shared ?? false; @@ -71,7 +72,7 @@ function UIItem(options){ // -------------------------------------------------------- let h = ''; h += `