<style include="shared-style">
:host {
position: relative;
}
cr-toolbar {
flex: 1;
--cr-toolbar-field-margin:
calc(var(--sidebar-width) + var(--splitter-width));
}
cr-icon-button {
justify-content: flex-end;
margin: 4px;
}
@media (prefers-color-scheme: light) {
cr-icon-button {
--cr-icon-button-fill-color: currentColor;
--cr-icon-button-focus-outline-color: var(--cr-focus-outline-color);
}
}
:host(:not([narrow_])) cr-toolbar-selection-overlay {
--cr-toolbar-selection-overlay-padding: var(--card-padding-side);
--cr-toolbar-field-margin: var(--sidebar-width);
--cr-toolbar-selection-overlay-max-width: var(--card-max-width);
}
</style>
<cr-toolbar page-name="$i18n{title}"
has-overlay$="[[showSelectionOverlay]]"
clear-label="$i18n{clearSearch}"
search-prompt="$i18n{searchPrompt}"
narrow="{{narrow_}}"
autofocus always-show-logo
on-search-changed="onSearchChanged_">
<cr-icon-button iron-icon="cr:more-vert"
id="menuButton"
title="$i18n{organizeButtonTitle}"
on-click="onMenuButtonOpenClick_"
aria-haspopup="menu"></cr-icon-button>
</cr-toolbar>
<cr-toolbar-selection-overlay show="[[showSelectionOverlay]]"
cancel-label="$i18n{cancel}"
selection-label="[[getItemsSelectedString_(selectedItems_.size)]]"
on-clear-selected-items="onClearSelectionClick_">
<cr-button on-click="onDeleteSelectionClick_"
disabled$="[[!canDeleteSelection_(selectedItems_)]]">
$i18n{delete}
</cr-button>
</cr-toolbar-selection-overlay>