mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	icon improvements
This commit is contained in:
		
							parent
							
								
									67528789ed
								
							
						
					
					
						commit
						490ae1c9fd
					
				@ -126,7 +126,7 @@ const TPL = `
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <ul class="dropdown-menu dropdown-menu-right">
 | 
					    <ul class="dropdown-menu dropdown-menu-right">
 | 
				
			||||||
        <li class="dropdown-item" data-trigger-command="showOptions">
 | 
					        <li class="dropdown-item" data-trigger-command="showOptions">
 | 
				
			||||||
            <span class="bx bx-slider"></span>
 | 
					            <span class="bx bx-cog"></span>
 | 
				
			||||||
            ${t('global_menu.options')}
 | 
					            ${t('global_menu.options')}
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -177,7 +177,7 @@ const TPL = `
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        <li class="dropdown-item dropdown-submenu">
 | 
					        <li class="dropdown-item dropdown-submenu">
 | 
				
			||||||
            <span class="dropdown-toggle">
 | 
					            <span class="dropdown-toggle">
 | 
				
			||||||
                <span class="bx bx-empty"></span>
 | 
					                <span class="bx bx-chip"></span>
 | 
				
			||||||
                ${t('global_menu.advanced')}
 | 
					                ${t('global_menu.advanced')}
 | 
				
			||||||
            </span>
 | 
					            </span>
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
@ -195,43 +195,43 @@ const TPL = `
 | 
				
			|||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                <li class="dropdown-item" data-trigger-command="showSQLConsoleHistory">
 | 
					                <li class="dropdown-item" data-trigger-command="showSQLConsoleHistory">
 | 
				
			||||||
                    <span class="bx bx-empty"></span>
 | 
					                    <span class="bx bx-data"></span>
 | 
				
			||||||
                    ${t('global_menu.open_sql_console_history')}
 | 
					                    ${t('global_menu.open_sql_console_history')}
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                <li class="dropdown-item" data-trigger-command="showSearchHistory">
 | 
					                <li class="dropdown-item" data-trigger-command="showSearchHistory">
 | 
				
			||||||
                    <span class="bx bx-empty"></span>
 | 
					                    <span class="bx bx-search-alt"></span>
 | 
				
			||||||
                    ${t('global_menu.open_search_history')}
 | 
					                    ${t('global_menu.open_search_history')}
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
                <li class="dropdown-item" data-trigger-command="showBackendLog">
 | 
					                <li class="dropdown-item" data-trigger-command="showBackendLog">
 | 
				
			||||||
                    <span class="bx bx-empty"></span>
 | 
					                    <span class="bx bx-detail"></span>
 | 
				
			||||||
                    ${t('global_menu.show_backend_log')}
 | 
					                    ${t('global_menu.show_backend_log')}
 | 
				
			||||||
                    <kbd data-command="showBackendLog"></kbd>
 | 
					                    <kbd data-command="showBackendLog"></kbd>
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                <li class="dropdown-item" data-trigger-command="reloadFrontendApp" 
 | 
					                <li class="dropdown-item" data-trigger-command="reloadFrontendApp" 
 | 
				
			||||||
                    title="${t('global_menu.reload_hint')}">
 | 
					                    title="${t('global_menu.reload_hint')}">
 | 
				
			||||||
                    <span class="bx bx-empty"></span>
 | 
					                    <span class="bx bx-refresh"></span>
 | 
				
			||||||
                    ${t('global_menu.reload_frontend')}
 | 
					                    ${t('global_menu.reload_frontend')}
 | 
				
			||||||
                    <kbd data-command="reloadFrontendApp"></kbd>
 | 
					                    <kbd data-command="reloadFrontendApp"></kbd>
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
                
 | 
					                
 | 
				
			||||||
                <li class="dropdown-item" data-trigger-command="showHiddenSubtree">
 | 
					                <li class="dropdown-item" data-trigger-command="showHiddenSubtree">
 | 
				
			||||||
                    <span class="bx bx-empty"></span>
 | 
					                    <span class="bx bx-hide"></span>
 | 
				
			||||||
                    ${t('global_menu.show_hidden_subtree')}
 | 
					                    ${t('global_menu.show_hidden_subtree')}
 | 
				
			||||||
                </li>
 | 
					                </li>
 | 
				
			||||||
            </ul>
 | 
					            </ul>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <li class="dropdown-item show-help-button" data-trigger-command="showHelp">
 | 
					        <li class="dropdown-item show-help-button" data-trigger-command="showHelp">
 | 
				
			||||||
            <span class="bx bx-info-circle"></span>
 | 
					            <span class="bx bx-help-circle"></span>
 | 
				
			||||||
            ${t('global_menu.show_help')}
 | 
					            ${t('global_menu.show_help')}
 | 
				
			||||||
            <kbd data-command="showHelp"></kbd>
 | 
					            <kbd data-command="showHelp"></kbd>
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <li class="dropdown-item show-about-dialog-button">
 | 
					        <li class="dropdown-item show-about-dialog-button">
 | 
				
			||||||
            <span class="bx bx-empty"></span>
 | 
					            <span class="bx bx-info-circle"></span>
 | 
				
			||||||
            ${t('global_menu.about')}
 | 
					            ${t('global_menu.about')}
 | 
				
			||||||
        </li>
 | 
					        </li>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -49,7 +49,7 @@ export default class HighlightsListWidget extends RightPanelWidget {
 | 
				
			|||||||
    get widgetButtons() {
 | 
					    get widgetButtons() {
 | 
				
			||||||
        return [
 | 
					        return [
 | 
				
			||||||
            new OnClickButtonWidget()
 | 
					            new OnClickButtonWidget()
 | 
				
			||||||
                .icon("bx-slider")
 | 
					                .icon("bx-cog")
 | 
				
			||||||
                .title("Options")
 | 
					                .title("Options")
 | 
				
			||||||
                .titlePlacement("left")
 | 
					                .titlePlacement("left")
 | 
				
			||||||
                .onClick(() => appContext.tabManager.openContextWithNote('_optionsTextNotes', {activate: true}))
 | 
					                .onClick(() => appContext.tabManager.openContextWithNote('_optionsTextNotes', {activate: true}))
 | 
				
			||||||
 | 
				
			|||||||
@ -106,7 +106,7 @@ const TPL = `
 | 
				
			|||||||
                title="Scroll to active note" 
 | 
					                title="Scroll to active note" 
 | 
				
			||||||
                data-trigger-command="scrollToActiveNote"></button>
 | 
					                data-trigger-command="scrollToActiveNote"></button>
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        <button class="tree-floating-button bx bx-cog tree-settings-button" 
 | 
					        <button class="tree-floating-button bx bxs-tree tree-settings-button" 
 | 
				
			||||||
                title="Tree settings"></button>
 | 
					                title="Tree settings"></button>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
				
			|||||||
@ -61,7 +61,7 @@ export default class TocWidget extends RightPanelWidget {
 | 
				
			|||||||
    get widgetButtons() {
 | 
					    get widgetButtons() {
 | 
				
			||||||
        return [
 | 
					        return [
 | 
				
			||||||
            new OnClickButtonWidget()
 | 
					            new OnClickButtonWidget()
 | 
				
			||||||
                .icon("bx-slider")
 | 
					                .icon("bx-cog")
 | 
				
			||||||
                .title("Options")
 | 
					                .title("Options")
 | 
				
			||||||
                .titlePlacement("left")
 | 
					                .titlePlacement("left")
 | 
				
			||||||
                .onClick(() => appContext.tabManager.openContextWithNote('_optionsTextNotes', {activate: true}))
 | 
					                .onClick(() => appContext.tabManager.openContextWithNote('_optionsTextNotes', {activate: true}))
 | 
				
			||||||
 | 
				
			|||||||
@ -48,7 +48,7 @@ const HIDDEN_SUBTREE_DEFINITION: Item = {
 | 
				
			|||||||
    id: '_hidden',
 | 
					    id: '_hidden',
 | 
				
			||||||
    title: 'Hidden Notes',
 | 
					    title: 'Hidden Notes',
 | 
				
			||||||
    type: 'doc',
 | 
					    type: 'doc',
 | 
				
			||||||
    icon: 'bx bx-chip',
 | 
					    icon: 'bx bx-hide',
 | 
				
			||||||
    // we want to keep the hidden subtree always last, otherwise there will be problems with e.g., keyboard navigation
 | 
					    // we want to keep the hidden subtree always last, otherwise there will be problems with e.g., keyboard navigation
 | 
				
			||||||
    // over tree when it's in the middle
 | 
					    // over tree when it's in the middle
 | 
				
			||||||
    notePosition: 999_999_999,
 | 
					    notePosition: 999_999_999,
 | 
				
			||||||
@ -241,6 +241,7 @@ const HIDDEN_SUBTREE_DEFINITION: Item = {
 | 
				
			|||||||
            id: '_options',
 | 
					            id: '_options',
 | 
				
			||||||
            title: 'Options',
 | 
					            title: 'Options',
 | 
				
			||||||
            type: 'book',
 | 
					            type: 'book',
 | 
				
			||||||
 | 
					            icon: 'bx-cog',
 | 
				
			||||||
            children: [
 | 
					            children: [
 | 
				
			||||||
                { id: '_optionsAppearance', title: 'Appearance', type: 'contentWidget', icon: 'bx-layout' },
 | 
					                { id: '_optionsAppearance', title: 'Appearance', type: 'contentWidget', icon: 'bx-layout' },
 | 
				
			||||||
                { id: '_optionsShortcuts', title: 'Shortcuts', type: 'contentWidget', icon: 'bxs-keyboard' },
 | 
					                { id: '_optionsShortcuts', title: 'Shortcuts', type: 'contentWidget', icon: 'bxs-keyboard' },
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user