mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(control) Add configurable border styling
To help distinguish between environments, a system property 'control.appBorder' is added that is injected as a body element border property in the control GUI stylesheets.
This commit is contained in:
parent
2161799cc3
commit
a2fc83d94e
@ -34,6 +34,7 @@ public class ControlRendererFactory {
|
||||
baseRenderer.render(context,
|
||||
Map.of("global-context",
|
||||
Map.of(
|
||||
"appBorder", System.getProperty("control.appBorder", "none;"),
|
||||
"nodes", nodeConfigurationService.getAll(),
|
||||
"hideMarginaliaApp", Boolean.getBoolean("control.hideMarginaliaApp")
|
||||
)
|
||||
|
@ -1,4 +1,9 @@
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/tables.css" />
|
||||
<link rel="stylesheet" href="/noanimation.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<style type="text/css">
|
||||
body {
|
||||
border: {{{global-context.appBorder}}};
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user