@@ -2,7 +2,6 @@ import detectOs from 'licia/detectOs';
22import $ from 'licia/$' ;
33import randomId from 'licia/randomId' ;
44import toInt from 'licia/toInt' ;
5- import isDarkMode from 'licia/isDarkMode' ;
65import LunaDataGrid from 'luna-data-grid' ;
76import LunaModal from 'luna-modal' ;
87import LunaToolbar from 'luna-toolbar' ;
@@ -64,21 +63,18 @@ const $toolbar = $('.toolbar');
6463const $help = $ ( '.help' ) ;
6564const $description = $ ( '.description' ) ;
6665
67- const theme = isDarkMode ( ) ? 'dark' : 'light' ;
68-
6966const help = new LunaModal ( $help . get ( 0 ) as HTMLElement , {
70- theme,
67+ theme : 'auto' ,
7168 title : 'Help' ,
7269 content : $description . get ( 0 ) as HTMLElement ,
7370} ) ;
7471
7572const toolbar = new LunaToolbar ( $toolbar . get ( 0 ) as HTMLElement , {
76- theme,
73+ theme : 'auto' ,
7774} ) ;
75+ toolbar . appendInput ( 'filter' , '' , 'Filter' ) ;
7876const targets = toolbar . appendText ( '0 Target' ) ;
7977toolbar . appendSpace ( ) ;
80- toolbar . appendInput ( 'filter' , '' , 'Filter' ) ;
81- toolbar . appendSeparator ( ) ;
8278toolbar . appendButton ( 'Help' , ( ) => {
8379 $description . rmClass ( 'hidden' ) ;
8480 help . show ( ) ;
@@ -90,7 +86,7 @@ toolbar.on('change', (key, val) => {
9086} ) ;
9187
9288const dataGrid = new LunaDataGrid ( $targets . get ( 0 ) as HTMLElement , {
93- theme,
89+ theme : 'auto' ,
9490 columns : [
9591 {
9692 id : 'title' ,
0 commit comments