Introduce runtime-driven UI theming for the server browser - Expose PushUITheme() in F4TServerBrowserBridge and implement ColorToJson + PushUIThemeInternal to serialize HUD colors and invoke a JS hook. - Call PushUITheme on UI initialization and when the browser is shown so the webview receives current HUD colors. - Add frontend handler for "uiTheme" in app.js and a new components/theme.js that implements window.applyCoTheme to set CSS vars and tint the cursor SVG. - Update styles.css to use RGB component CSS variables (--co-r/--co-g/--co-b and background equivalents) so colors can be overridden at runtime. - Update index.html to include the new theme script and tweak cursor SVG stroke width; cursor asset updated as well. This enables the plugin to synchronize the in-game HUD colors with the browser UI dynamically.
15 lines
479 B
XML
15 lines
479 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<svg id="Layer_2" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32.3 31.24">
|
|
<!-- Generator: Adobe Illustrator 30.5.1, SVG Export Plug-In . SVG Version: 2.1.4 Build 3) -->
|
|
<defs>
|
|
<style>
|
|
.st0 {
|
|
fill: #fff;
|
|
stroke: #000;
|
|
stroke-width: 3.2px;
|
|
stroke-miterlimit: 10;
|
|
}
|
|
</style>
|
|
</defs>
|
|
<polygon class="st0" points="17.4 30.41 31.46 15.9 1.2 1.14 17.4 30.41"/>
|
|
</svg> |