@operato/property-panel 10.29.107 → 10.29.108

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.
@@ -468,10 +468,10 @@ export class PropertyScene3D extends AbstractProperty {
468
468
  return html `<fieldset>
469
469
  <legend><ox-i18n msgid="label.scene-look">Scene theme</ox-i18n></legend>
470
470
  <div class="property-grid">
471
- ${fields.map(key => html `<span><ox-i18n msgid=${'label.scene-look-field-' + key}>${labels[key]}</ox-i18n></span>
471
+ ${fields.map(key => html `<label><ox-i18n msgid=${'label.scene-look-field-' + key}>${labels[key]}</ox-i18n></label>
472
472
  ${hasSceneOverride(state[key])
473
- ? html `<button type="button" @click=${() => this._applyLightingPreset({ [key]: null })}><ox-i18n msgid="button.use-scene-look-value">Use theme value</ox-i18n></button>`
474
- : html `<span><ox-i18n msgid="text.scene-look-inherited">From theme</ox-i18n></span>`}`)}
473
+ ? html `<button type="button" class="scene-look-value" @click=${() => this._applyLightingPreset({ [key]: null })}><ox-i18n msgid="button.use-scene-look-value">Use theme value</ox-i18n></button>`
474
+ : html `<span class="scene-look-value"><ox-i18n msgid="text.scene-look-inherited">From theme</ox-i18n></span>`}`)}
475
475
  </div>
476
476
  </fieldset>`;
477
477
  }
@@ -537,6 +537,27 @@ PropertyScene3D.styles = [
537
537
  background: var(--md-sys-color-surface-variant, #e7e0ec);
538
538
  }
539
539
 
540
+ /* A scene theme row: the field's label in the label column, where its value comes from in the editor column. */
541
+ .scene-look-value {
542
+ grid-column: 10 / -1;
543
+ font-size: 0.74rem;
544
+ color: var(--md-sys-color-on-surface-variant);
545
+ }
546
+
547
+ button.scene-look-value {
548
+ padding: 4px 10px;
549
+ border: 1px solid var(--md-sys-color-outline, #c4c7c5);
550
+ border-radius: 4px;
551
+ background: var(--md-sys-color-surface, #fff);
552
+ color: var(--md-sys-color-on-surface, #1c1b1f);
553
+ text-align: left;
554
+ cursor: pointer;
555
+ }
556
+
557
+ button.scene-look-value:hover {
558
+ background: var(--md-sys-color-surface-variant, #e7e0ec);
559
+ }
560
+
540
561
  `
541
562
  ];
542
563
  __decorate([
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/property-panel",
3
3
  "description": "Webcomponent property-panel following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "10.29.107",
5
+ "version": "10.29.108",
6
6
  "type": "module",
7
7
  "main": "dist/src/index.js",
8
8
  "module": "dist/src/index.js",
@@ -128,5 +128,5 @@
128
128
  "prettier --write"
129
129
  ]
130
130
  },
131
- "gitHead": "20bec12e1116c3891eeaeedc5f6462fb222d6645"
131
+ "gitHead": "92c535efe925903da1ac9a08d7234c101a24bb26"
132
132
  }