mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	use backgrounds for icon buttons so that dark and black themes look better
This commit is contained in:
		
							parent
							
								
									89a5cab98f
								
							
						
					
					
						commit
						654c116c58
					
				| @ -385,7 +385,9 @@ div.ui-tooltip { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| button.icon-button { | button.icon-button { | ||||||
|     padding: 4px; |     height: 28px; | ||||||
|  |     width: 28px; | ||||||
|  |     background: no-repeat center; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Themes */ | /* Themes */ | ||||||
|  | |||||||
| @ -76,21 +76,18 @@ | |||||||
|         <div id="search-box" style="display: none; padding: 10px; margin-top: 10px;"> |         <div id="search-box" style="display: none; padding: 10px; margin-top: 10px;"> | ||||||
|           <div style="display: flex; align-items: center;"> |           <div style="display: flex; align-items: center;"> | ||||||
|             <input name="search-text" placeholder="Search text, labels" style="flex-grow: 100; margin-left: 5px; margin-right: 5px;" autocomplete="off"> |             <input name="search-text" placeholder="Search text, labels" style="flex-grow: 100; margin-left: 5px; margin-right: 5px;" autocomplete="off"> | ||||||
|             <button id="do-search-button" class="btn btn-sm icon-button" title="Search (enter)"> |             <button id="do-search-button" class="btn btn-sm icon-button" title="Search (enter)" | ||||||
|               <img src="/images/icons/search-20.png" alt="Search"/> |                     style="background-image: url('/images/icons/search-20.png');"></button> | ||||||
|             </button> |  | ||||||
| 
 | 
 | ||||||
|               |               | ||||||
| 
 | 
 | ||||||
|             <button id="save-search-button" class="btn btn-sm icon-button" title="Save search"> |             <button id="save-search-button" class="btn btn-sm icon-button" title="Save search" | ||||||
|               <img src="/images/icons/save-20.png" alt="Save search"/> |                     style="background-image: url('/images/icons/save-20.png');"></button> | ||||||
|             </button> |  | ||||||
| 
 | 
 | ||||||
|               |               | ||||||
| 
 | 
 | ||||||
|             <button id="close-search-button" class="btn btn-sm icon-button" title="Close search"> |             <button id="close-search-button" class="btn btn-sm icon-button" title="Close search" | ||||||
|               <img src="/images/icons/x-20.png" alt="Close search"/> |                     style="background-image: url('/images/icons/x-20.png');"></button> | ||||||
|             </button> |  | ||||||
|           </div> |           </div> | ||||||
|         </div> |         </div> | ||||||
| 
 | 
 | ||||||
| @ -124,37 +121,31 @@ | |||||||
|           <span id="note-id-display" title="Note ID"></span> |           <span id="note-id-display" title="Note ID"></span> | ||||||
| 
 | 
 | ||||||
|           <button class="btn btn-sm icon-button" |           <button class="btn btn-sm icon-button" | ||||||
|                   style="display: none; margin-right: 10px;" |                   style="display: none; margin-right: 10px; background-image: url('/images/icons/edit-20.png');" | ||||||
|                   title="Toggle edit" |                   title="Toggle edit" | ||||||
|                   id="toggle-edit-button"> |                   id="toggle-edit-button"></button> | ||||||
|             <img src="/images/icons/edit-20.png" alt="Toggle edit"/> |  | ||||||
|           </button> |  | ||||||
| 
 | 
 | ||||||
|           <button class="btn btn-sm icon-button" |           <button class="btn btn-sm icon-button" | ||||||
|                   style="display: none; margin-right: 10px;" |                   style="display: none; margin-right: 10px; background-image: url('/images/icons/play-20.png');" | ||||||
|                   title="Render (Ctrl+Enter)" |                   title="Render (Ctrl+Enter)" | ||||||
|                   id="render-button"> |                   id="render-button"></button> | ||||||
|             <img src="/images/icons/play-20.png" alt="Render"/> |  | ||||||
|           </button> |  | ||||||
| 
 | 
 | ||||||
|           <button class="btn btn-sm icon-button" |           <button class="btn btn-sm icon-button" | ||||||
|                   style="display: none; margin-right: 10px;" |                   style="display: none; margin-right: 10px; background-image: url('/images/icons/play-20.png');" | ||||||
|                   title="Execute (Ctrl+Enter)" |                   title="Execute (Ctrl+Enter)" | ||||||
|                   id="execute-script-button"> |                   id="execute-script-button"></button> | ||||||
|             <img src="/images/icons/play-20.png" alt="Render"/> |  | ||||||
|           </button> |  | ||||||
| 
 | 
 | ||||||
|           <div> |           <div> | ||||||
|             <button type="button" |             <button type="button" | ||||||
|                     class="btn btn-sm icon-button" |                     class="btn btn-sm icon-button" | ||||||
|                     id="protect-button" |                     id="protect-button" | ||||||
|                     title="Protected note can be viewed and edited only after entering password"> |                     title="Protected note can be viewed and edited only after entering password" | ||||||
|               <img src="/images/icons/shield-20.png"/> |                     style="background-image: url('/images/icons/shield-20.png');"> | ||||||
|             </button><button type="button" |             </button><button type="button" | ||||||
|                     class="btn btn-sm icon-button" |                     class="btn btn-sm icon-button" | ||||||
|                     id="unprotect-button" |                     id="unprotect-button" | ||||||
|                     title="Not protected note can be viewed without entering password"> |                     title="Not protected note can be viewed without entering password" | ||||||
|               <img src="/images/icons/shield-off-20.png"/> |                     style="background-image: url('/images/icons/shield-off-20.png');"> | ||||||
|             </button> |             </button> | ||||||
|           </div> |           </div> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azivner
						azivner