diff --git a/app/components/app-menu/home.gjs b/app/components/app-menu/home.gjs index fefeb45..50daa22 100644 --- a/app/components/app-menu/home.gjs +++ b/app/components/app-menu/home.gjs @@ -22,7 +22,7 @@ import iconRounded from '../../icons/icon-rounded.svg?raw';
  • diff --git a/app/components/places-sidebar.gjs b/app/components/places-sidebar.gjs index e970d2c..f462976 100644 --- a/app/components/places-sidebar.gjs +++ b/app/components/places-sidebar.gjs @@ -177,7 +177,11 @@ export default class PlacesSidebar extends Component { /> {{/if}} {{#if @title}} -

    +

    {{@title}}

    {{else if this.isNearbySearch}}

    diff --git a/app/templates/lists/index.gjs b/app/templates/lists/index.gjs index 2940ad7..ff5e27b 100644 --- a/app/templates/lists/index.gjs +++ b/app/templates/lists/index.gjs @@ -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 { -

    - Saved places

    +

    + Collections

    diff --git a/app/templates/lists/list.gjs b/app/templates/lists/list.gjs index 7a699b6..14b6070 100644 --- a/app/templates/lists/list.gjs +++ b/app/templates/lists/list.gjs @@ -16,9 +16,19 @@ export default class ListsListTemplate extends Component { return this.mapUi.getScrollPosition(`list-${this.listId}`); } + get listColor() { + const list = this.storage.lists.find((l) => l.id === this.listId); + if (list && list.color) { + return list.color; + } + return getComputedStyle(document.documentElement) + .getPropertyValue('--default-list-color') + .trim(); + } + get listTitle() { const list = this.storage.lists.find((l) => l.id === this.listId); - return list ? list.title : 'Saved places'; + return list ? list.title : 'Collections'; } get places() { @@ -88,6 +98,7 @@ export default class ListsListTemplate extends Component {