Skip to content

Commit

Permalink
add svg icon for context menu sub menu indications
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatthieu3 committed Mar 5, 2024
1 parent 54a3775 commit 01c2a60
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions assets/icons/next.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions src/js/gui/widgets/ContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import { DOMElement } from './Widget.js';
import { Layout } from '../Layout.js';
import { ActionButton } from './ActionButton.js';
import { Icon } from './Icon.js';

import uploadIconUrl from '../../../../assets/icons/upload.svg';
import nextIconSvg from '../../../../assets/icons/next.svg';

export class ContextMenu extends DOMElement {

Expand Down Expand Up @@ -177,10 +179,7 @@ export class ContextMenu extends DOMElement {
}

if (opt.subMenu && opt.subMenu.length > 0) {
let spanEl = document.createElement('span')
spanEl.innerText = '▶';

item.appendChild(spanEl);
item.appendChild(new Icon({url: nextIconSvg, size: 'small', monochrome: true}).element());
item.style.display = 'flex';
item.style.alignItems = 'center';
item.style.justifyContent = 'space-between';
Expand Down

0 comments on commit 01c2a60

Please sign in to comment.