update stylsheet icon
This commit is contained in:
@@ -367,7 +367,7 @@ export class UmbWorkspacePackageBuilderElement extends UmbLitElement {
|
||||
<umb-property-layout label="Stylesheets">
|
||||
<div slot="editor">
|
||||
<umb-input-entity
|
||||
.getIcon=${() => 'icon-brush-alt'}
|
||||
.getIcon=${() => 'icon-palette'}
|
||||
.pickerContext=${UmbStylesheetPickerInputContext}
|
||||
.selection=${this._package.stylesheets.map((path) => this.#serverFilePathUniqueSerializer.toUnique(path)) ??
|
||||
[]}
|
||||
|
||||
@@ -54,14 +54,14 @@ export class UmbStylesheetCreateOptionsModalElement extends UmbModalBaseElement<
|
||||
<uui-box>
|
||||
<!-- TODO: construct url -->
|
||||
<uui-menu-item href=${`${this.#getCreateHref()}/view/code`} label="New Stylesheet" @click=${this.#onNavigate}>
|
||||
<uui-icon slot="icon" name="icon-brush-alt"></uui-icon>}
|
||||
<uui-icon slot="icon" name="icon-palette"></uui-icon>}
|
||||
</uui-menu-item>
|
||||
|
||||
<uui-menu-item
|
||||
href=${`${this.#getCreateHref()}/view/rich-text-editor`}
|
||||
label="New Rich Text Editor Stylesheet"
|
||||
@click=${this.#onNavigate}>
|
||||
<uui-icon slot="icon" name="icon-brush-alt"></uui-icon>}
|
||||
<uui-icon slot="icon" name="icon-palette"></uui-icon>}
|
||||
</uui-menu-item>
|
||||
|
||||
<uui-menu-item @click=${this.#onCreateFolderClick} label="New Folder...">
|
||||
|
||||
@@ -81,6 +81,6 @@ const mapper = (item: FileSystemTreeItemPresentationModel): UmbStylesheetTreeIte
|
||||
name: item.name,
|
||||
isFolder: item.isFolder,
|
||||
hasChildren: item.hasChildren,
|
||||
icon: item.isFolder ? undefined : 'icon-brush-alt',
|
||||
icon: item.isFolder ? undefined : 'icon-palette',
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user