From 12fbff33fd21a47ba52da3e5fe0cef0d03a7f932 Mon Sep 17 00:00:00 2001 From: Mistium <92952823+Mistium@users.noreply.github.com> Date: Thu, 4 Jul 2024 02:41:52 +0100 Subject: [PATCH] Update Desktop.osl --- OSL Programs/apps/System/Desktop.osl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/OSL Programs/apps/System/Desktop.osl b/OSL Programs/apps/System/Desktop.osl index 51c6d560..3914b9bb 100644 --- a/OSL Programs/apps/System/Desktop.osl +++ b/OSL Programs/apps/System/Desktop.osl @@ -19,6 +19,12 @@ def "icons_small" save "theme.json" "set" theme endef +def "icons_hide" + app_size = 0 + theme.app_size = app_size + save "theme.json" "set" theme +endef + desktop_rightclick = [ "Change Wallpaper", @@ -32,10 +38,12 @@ desktop_rightclick = [ "Copy Path", "-", [ - "File Icon Size", + "View", {"Big Icons":"icons_big"}, {"Normal Icons":"icons_norm"}, - {"Small Icons":"icons_small"} + {"Small Icons":"icons_small"}, + "-", + {"Hide Icons":"icons_hide"} ] ] @@ -64,6 +72,7 @@ mainloop: include windowfileloc nhvr = window_id_index != window_top_index cnrn = desktop != data or bg_redrawn + if cnrn.not and nhvr "exit" movefileloc windowfileloc window "y" 35 @@ -112,6 +121,7 @@ if nhvr.not ( rightclick desktop_rightclick desktop_uuid ) if data == [] "exit" +if app_size == 0 "exit" each i app_id desktop ( file "open" app_id "onlyaccess" loc 2 2 35 -35