gersigno.github.io
1.0.0
如果您喜欢我的作品,请确保确定此仓库!
欢迎来到我的投资组合的存储库!
得益于熟悉的桌面界面,通过我的投资组合发现独特而直观的体验!
笔记
该项目仍在Beta中,某些功能可能无法按预期工作,并且在某些地方代码仍然有些混乱。
可以在这里报告任何错误吗?
通过混合模糊效果和背景中的噪声纹理来创建一定深度来存档这种效果。它受到微软的丙烯酸效果的启发
您可以从设置应用程序自定义体验。
?所有设置都保存在您的本地存储中。
这些功能是在进行工作的,将来会有以后的更新:
该代码被部分评论和记录。
重要的
不要忘记该项目仍在开发中,可以在以后的更新中修改功能。
您的整个应用程序需要在HTML类型文件中可用。
首先,在_subpages文件夹中创建项目名称的文件夹。
然后,在位于scriptsdesktopdesktop.js desktop.js文件中,创建一个新的DesktopIcon对象实例。
句法:
new DesktopIcon ( ( String ) title , ( String ) icon , ( function ) funcPtr , ( String ) shandler ) ; title : The text shown at the bottom of the shortcut;
icon : The relative path of your icon's image file;
funcPtr : The function to call on any left click event (can have parameters);
shandler : Unique text to distinguish between different icons.;您需要在图标的单击事件上调用createWindow(...)函数以创建窗口。景象:
new DesktopIcon ( "Title" , "icons/myIcon.png" , ( ) => createWindow ( "icons/myIcon.png" , "Title" , "_subpages\my_app\index.html" , "myApp" ) , "myApp_shortcut" ) ;要创建一个弹出窗口,您可以简单地使用UI_CreatePupup()函数。
句法:
UI_CreatePupup ( ( String ) icon , ( String ) title , ( String ) message , ( String ) okText , ( function ) okFunction , ( String ) cancelText , ( function ) cancelFunction ) ; icon : The relative path of your icon's image file;
title : The title of the pop-up;
message : the message shown at the center of the pop-up;
okText : The text of the primary (left) button;
okFunction : The function to call when the primary button is clicked by the user;
cancelText : [not required] The text of the secondary (right) button;
cancelFunction : [not required] The function to call when the secondary button is clicked by the user;景象:
UI_CreatePupup ( "icons/myIcon.png" , "Pop-up Title" , "Pop-up description" , "Ok" , ( ) => ok_function ( ) , "Cancel" , ( ) => cancel_function ( ) ) ;要创建烤面包通知,您可以简单地使用UI_CreatePupup()函数。
句法:
new ToastNotify ( icon , title , description ) ; icon : The relative path of your icon's image file;
title : The title of the toast notification;
description : [not required] The description (secondary text) of the notification.景象:
new ToastNotify ( "icons/myIcon.png" , "Toast notification" , "A simple notification" ) ;在线资源
由于
David R.在该项目上提供帮助。
禅宗设计有关UI/UX设计的建议。
该项目中使用的所有图标均来自Icons8
如需支持,请发送电子邮件至[email protected]或加入Discord服务器。