Created Hook system (let's users run commands after specific actions)

NInputAction: create NTextInput with NButton
HooksService: add dark/light mode hook, add wallpaper change hook
HooksTab: create 1 NInputAction for each hook
Wallpaper: add hook functionallity
This commit is contained in:
Ly-sec 2025-09-04 17:54:58 +02:00
parent d53a404bf1
commit 37eefe3663
9 changed files with 274 additions and 3 deletions

View file

@ -31,6 +31,7 @@ NPanel {
About,
Audio,
Bar,
Hooks,
Launcher,
Brightness,
ColorScheme,
@ -111,6 +112,10 @@ NPanel {
id: aboutTab
Tabs.AboutTab {}
}
Component {
id: hooksTab
Tabs.HooksTab {}
}
// Order *DOES* matter
function updateTabsModel() {
@ -181,6 +186,11 @@ NPanel {
"label": "Screen Recorder",
"icon": "videocam",
"source": screenRecorderTab
}, {
"id": SettingsPanel.Tab.Hooks,
"label": "Hooks",
"icon": "link",
"source": hooksTab
}, {
"id": SettingsPanel.Tab.About,
"label": "About",