firefox: update userchrome
This commit is contained in:
		
							parent
							
								
									0a0b8f9e61
								
							
						
					
					
						commit
						921413f545
					
				
					 1 changed files with 20 additions and 11 deletions
				
			
		|  | @ -2,15 +2,22 @@ | ||||||
|   config, |   config, | ||||||
|   pkgs, |   pkgs, | ||||||
|   lib, |   lib, | ||||||
|   font, |  | ||||||
|   ... |   ... | ||||||
| }: | }: | ||||||
| let | let | ||||||
|   inherit (config.my) desktop browser; |   inherit (config.my) desktop; | ||||||
|  |   inherit (config.my.theme) color; | ||||||
|  | 
 | ||||||
|   bugfixedFirefox = pkgs.firefox-devedition-unwrapped // { |   bugfixedFirefox = pkgs.firefox-devedition-unwrapped // { | ||||||
|     requireSigning = false; |     requireSigning = false; | ||||||
|     allowAddonSideload = true; |     allowAddonSideload = true; | ||||||
|   }; |   }; | ||||||
|  | 
 | ||||||
|  |   swayCustomization = '' | ||||||
|  |     #titlebar { display: none !important; } | ||||||
|  |     #TabsToolbar { display: none !important; } | ||||||
|  |     #sidebar-header { display: none !important; } | ||||||
|  |   ''; | ||||||
| in | in | ||||||
| { | { | ||||||
|   config = { |   config = { | ||||||
|  | @ -119,15 +126,17 @@ in | ||||||
|             "devtools.chrome.enabled" = true; |             "devtools.chrome.enabled" = true; | ||||||
|             "devtools.debugger.remote-enabled" = true; |             "devtools.debugger.remote-enabled" = true; | ||||||
|           }; |           }; | ||||||
|           userChrome = |           userChrome = '' | ||||||
|             if desktop == "sway" then |             ${lib.optionalString (desktop == "sway") swayCustomization} | ||||||
|               '' | 
 | ||||||
|                 #titlebar { display: none !important; } |             #sidebar-main { | ||||||
|                 #TabsToolbar { display: none !important; } |               background-color: ${color.bg}; | ||||||
|                 #sidebar-header { display: none !important; } |             } | ||||||
|               '' | 
 | ||||||
|             else |             #tabbrowser-tabbox { | ||||||
|               ""; |               outline-width: 0 !important; | ||||||
|  |             } | ||||||
|  |           ''; | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue