homebridge-plugin-utils 1.15.1 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,14 +150,17 @@ export class webUiFeatureOptions {
|
|
|
150
150
|
this.#configTable.innerHTML = "";
|
|
151
151
|
this.webUiDeviceList = [];
|
|
152
152
|
|
|
153
|
-
// Create our
|
|
154
|
-
const
|
|
153
|
+
// Create our override styles for things like hover for our sidebar and workarounds for Homebridge UI quirks.
|
|
154
|
+
const overrideStyles = document.createElement("style");
|
|
155
|
+
|
|
156
|
+
// We want to override the default colors that Homebridge UI might apply for table cells.
|
|
157
|
+
overrideStyles.innerHTML = "td { color: unset !important }";
|
|
155
158
|
|
|
156
159
|
// We emulate the styles that Bootstrap uses when hovering over a table, accounting for both light and dark modes.
|
|
157
|
-
|
|
160
|
+
overrideStyles.innerHTML += "@media (prefers-color-scheme: dark) { .hbup-hover td:hover { background-color: #212121; color: #FFA000 !important } }" +
|
|
158
161
|
"@media (prefers-color-scheme: light) { .hbup-hover td:hover { background-color: #ECECEC; } }";
|
|
159
162
|
|
|
160
|
-
document.head.appendChild(
|
|
163
|
+
document.head.appendChild(overrideStyles);
|
|
161
164
|
|
|
162
165
|
// Add our hover styles to the controllers and devices tables.
|
|
163
166
|
controllersTable.classList.add("hbup-hover");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-plugin-utils",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.2",
|
|
4
4
|
"displayName": "Homebridge Plugin Utilities",
|
|
5
5
|
"description": "Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.",
|
|
6
6
|
"author": {
|