@@ -34,10 +34,10 @@ import { HelpComponent } from "./component/help.ts";
3434import { consume , type Event } from "./event.ts" ;
3535
3636const SCHEDULER_INTERVAL = 10 ;
37- const MATCHER_ICON = " " ;
38- const SORTER_ICON = " " ;
39- const RENDERER_ICON = " " ;
40- const PREVIEWER_ICON = " " ;
37+ const MATCHER_ICON = "🅼 " ;
38+ const SORTER_ICON = "🆂 " ;
39+ const RENDERER_ICON = "🆁 " ;
40+ const PREVIEWER_ICON = "🅿 " ;
4141
4242type ReservedCallback = (
4343 denops : Denops ,
@@ -66,10 +66,6 @@ export type PickerResult<T extends Detail> = {
6666
6767export type PickerOptions = {
6868 schedulerInterval ?: number ;
69- matcherIcon ?: string ;
70- sorterIcon ?: string ;
71- rendererIcon ?: string ;
72- previewerIcon ?: string ;
7369} ;
7470
7571export class Picker < T extends Detail > implements AsyncDisposable {
@@ -99,16 +95,20 @@ export class Picker<T extends Detail> implements AsyncDisposable {
9995 this . #schedulerInterval = options . schedulerInterval ?? SCHEDULER_INTERVAL ;
10096 this . #name = params . name ;
10197 this . #coordinator = params . coordinator ;
102- this . #matcherIcon = options . matcherIcon ?? MATCHER_ICON ;
103- this . #sorterIcon = options . sorterIcon ?? SORTER_ICON ;
104- this . #rendererIcon = options . rendererIcon ?? RENDERER_ICON ;
105- this . #previewerIcon = options . previewerIcon ?? PREVIEWER_ICON ;
10698
10799 // Components
108100 const { theme, zindex = 50 } = params ;
101+ this . #matcherIcon = theme . matcherIcon ?? MATCHER_ICON ;
102+ this . #sorterIcon = theme . sorterIcon ?? SORTER_ICON ;
103+ this . #rendererIcon = theme . rendererIcon ?? RENDERER_ICON ;
104+ this . #previewerIcon = theme . previewerIcon ?? PREVIEWER_ICON ;
105+
109106 const style = this . #coordinator. style ( theme ) ;
110107 this . #inputComponent = this . #stack. use (
111108 new InputComponent ( {
109+ spinner : theme . spinner ,
110+ headSymbol : theme . headSymbol ,
111+ failSymbol : theme . failSymbol ,
112112 border : style . input ,
113113 title : this . #name,
114114 zindex,
0 commit comments