removed default plugin and made a tiny change to the ui

This commit is contained in:
SpookyDervish
2025-10-30 19:35:33 +11:00
parent 6970ef4d11
commit 806957ecb0
3 changed files with 1 additions and 21 deletions

View File

@@ -1,14 +0,0 @@
local plugin = {}
function test(newValue)
berry.ui.notify(tostring(newValue))
end
function plugin.run()
berry.config.defineSetting("Test Plugin", "test setting", "this is a description", "string", "hi, this is the default value", test)
berry.config.defineSetting("Test Plugin", "another setting!", "woah!", "boolean", "1", test)
berry.config.defineSetting("Test Plugin", "integer setting", "i love integers :O", "integer", "123", test)
berry.config.defineSetting("Test Plugin", "float setting", "i love floating point numbers :O", "float", "123.456", test)
end
return plugin

View File

@@ -1,6 +0,0 @@
{
"name": "Test Plugin",
"version": "1.0.0",
"author": "SpookyDervish",
"dependencies": []
}

View File

@@ -144,7 +144,7 @@ class SettingsScreen(ModalScreen):
yield Input(value=self.app.config_handler.get("plugins", "log_timeout"), id="log-timeout", type="integer") yield Input(value=self.app.config_handler.get("plugins", "log_timeout"), id="log-timeout", type="integer")
yield Static("Plugin-defined Settings", classes="thingy") yield Static("Plugin-defined Settings", classes="thingy")
yield Rule(line_style="thick") yield Rule(line_style="double")
for plugin_section, plugin_settings in self.app.config_handler.plugin_defined_settings.items(): for plugin_section, plugin_settings in self.app.config_handler.plugin_defined_settings.items():
yield Static(f"{plugin_section}", classes="thingy") yield Static(f"{plugin_section}", classes="thingy")