浏览代码

feat: show/hide desktop icons option in context menu

* feat: hide icons/show icons feature added to the right-click/secondary click menu on the desktop

* Fix: Changes made to the hide/show desktop icons feature after receiving feedback in the first pull request

* CSS rule added to static CSS file instead of being implemented dynamically
hisham-maarraoui 2 月之前
父节点
当前提交
b0efff7a4f
共有 2 个文件被更改,包括 262 次插入210 次删除
  1. 257 210
      src/gui/src/UI/UIDesktop.js
  2. 5 0
      src/gui/src/css/style.css

文件差异内容过多而无法显示
+ 257 - 210
src/gui/src/UI/UIDesktop.js


+ 5 - 0
src/gui/src/css/style.css

@@ -4718,4 +4718,9 @@ fieldset[name=number-code] {
 }
 .device-phone .window-body.item-container * {
     touch-action: pan-y;
+}
+
+/* Hide desktop icons when the desktop-icons-hidden class is applied */
+.desktop.item-container.desktop-icons-hidden > .item {
+    visibility: hidden;
 }

部分文件因为文件数量过多而无法显示