添加8种应用
This commit is contained in:
28
ui/slint_ui.slint
Normal file
28
ui/slint_ui.slint
Normal file
@@ -0,0 +1,28 @@
|
||||
// slint_ui.slint
|
||||
import { VerticalBox, Button } from "std-widgets.slint";
|
||||
|
||||
export component MainWindow inherits Window {
|
||||
title: "Windows 系统工具箱";
|
||||
width: 400px;
|
||||
height: 500px;
|
||||
VerticalBox {
|
||||
spacing: 16px;
|
||||
Text { text: "常用系统工具"; font-size: 24px; horizontal-alignment: center; }
|
||||
Button { text: "PowerShell"; clicked => { root.launch_powershell(); } }
|
||||
Button { text: "Windows 安全中心"; clicked => { root.launch_security_center(); } }
|
||||
Button { text: "Math Input Panel"; clicked => { root.launch_math_input_panel(); } }
|
||||
Button { text: "步骤记录器"; clicked => { root.launch_psr(); } }
|
||||
Button { text: "记事本"; clicked => { root.launch_notepad(); } }
|
||||
Button { text: "远程桌面连接"; clicked => { root.launch_mstsc(); } }
|
||||
Button { text: "字符映射表"; clicked => { root.launch_charmap(); } }
|
||||
Button { text: "任务管理器"; clicked => { root.launch_taskmgr(); } }
|
||||
}
|
||||
callback launch_powershell();
|
||||
callback launch_security_center();
|
||||
callback launch_math_input_panel();
|
||||
callback launch_psr();
|
||||
callback launch_notepad();
|
||||
callback launch_mstsc();
|
||||
callback launch_charmap();
|
||||
callback launch_taskmgr();
|
||||
}
|
||||
Reference in New Issue
Block a user