Use list colors for list header icons

This commit is contained in:
2026-06-30 14:05:25 +02:00
parent ad9c489102
commit bb5b69711c
4 changed files with 26 additions and 6 deletions

View File

@@ -12,7 +12,12 @@ export default class ListsIndexTemplate extends Component {
@service mapUi;
styleFor(color) {
return htmlSafe(`background-color: ${color}`);
const finalColor =
color ||
getComputedStyle(document.documentElement)
.getPropertyValue('--default-list-color')
.trim();
return htmlSafe(`background-color: ${finalColor}`);
}
@action
@@ -37,8 +42,8 @@ export default class ListsIndexTemplate extends Component {
<button type="button" class="back-btn" {{on "click" this.backToMenu}}>
<Icon @name="arrow-left" @size={{20}} @color="#333" />
</button>
<h2><Icon @name="bookmark" @size={{20}} @color="#333" />
Saved places</h2>
<h2><Icon @name="bookmark" @size={{20}} @color="#898989" />
Collections</h2>
<button type="button" class="close-btn" {{on "click" this.close}}>
<Icon @name="x" @size={{20}} @color="#333" />
</button>