@iobroker/adapter-react-v5 8.2.5 → 8.2.6

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.
@@ -266,6 +266,7 @@ export interface GetValueStyleOptions {
266
266
  state: ioBroker.State;
267
267
  isExpertMode?: boolean;
268
268
  isButton?: boolean;
269
+ nonAckColor?: string;
269
270
  }
270
271
 
271
272
  export interface ObjectBrowserCustomFilter {
@@ -1222,7 +1222,7 @@ export function formatValue(options) {
1222
1222
  */
1223
1223
  export function getValueStyle(options) {
1224
1224
  const { state /* , isExpertMode, isButton */ } = options;
1225
- const color = state?.ack ? (state.q ? '#ffa500' : '') : '#ff2222c9';
1225
+ const color = state?.ack ? (state.q ? '#ffa500' : '') : options.nonAckColor || '#ff2222c9';
1226
1226
  // do not show the color of the button in non-expert mode
1227
1227
  // if (!isExpertMode && isButton) {
1228
1228
  // color = '';