Comments (4)
Cool implementation, but I think it would make more sense to just change the icon of Synced Tabs when it's present in the toolbar (instead of removing and creating a new element), as user can move the button anywhere in Firefox.
from materialfox.
I wanted to remove the private browsing icon from the tab bar and in order to do so, I needed to make sure the private browsing icon was always visible somewhere in private browsing mode. I settled on this implementation because as per Chrome's behaviour, the incognito icon replaces the profile icon. In Chrome, the profile icon is always present but in Firefox, someone can remove it altogether (and this is in fact the default state) so I force hide the profile icon, regardless of its location, and show the incognito icon next to the hamburger menu.
Perhaps a better way to accomplish this might be to check the toolbars for the sync-button
and if present, change its icon and set pointer-events: none
, otherwise show the icon as a pseudo element like it is now. This way, if someone has gone to the trouble of putting the sync-button
somewhere specific, it will remain there but show the incognito icon, and if they never added the sync-button
, add it for them next to the hamburger menu as per Chrome's behaviour.
Alternatively, I could force the sync-button
to always be next to the hamburger menu if it is in the toolbar but this artificially limits the level of customisation Firefox users have come to expect, for the sake of consistency.
from materialfox.
Perhaps a better way to accomplish this might be to check the toolbars for the sync-button and if present, change its icon and set pointer-events: none , otherwise show the icon as a pseudo element like it is now. This way, if someone has gone to the trouble of putting the sync-button somewhere specific, it will remain there but show the incognito icon, and if they never added the sync-button , add it for them next to the hamburger menu as per Chrome's behaviour.
Yup, that's what I was thinking about. But only if it doesn't introduce more XBL (only CSS), because that's getting removed soon.
from materialfox.
Since Mozilla introduced the account button, I've replaced that icon with the incognito icon when in private browsing mode. To keep in line with Chrome's behaviour, the button shows a "Private" label. I can't replicate the menu itself so I've disabled the button.
Note, this isn't going to play nice with non-English locales due to the hard-coded label and I'm not willing to translate into every possible locale just yet so I only show the label for English locales.
from materialfox.
Related Issues (20)
- Speaker icon is on top of the favicon HOT 1
- favicon not visible in pinned tabs that show the playing/muted audio icon. HOT 1
- FF89: Tabs are "bugging" if I pin one and open many HOT 2
- search bar icons much smaller than intended HOT 3
- e
- Some Context Menu Items on Video Elements Have Pointer-Events Disabled
- Loading animation HOT 6
- FF94.0.2 (x64): Tabs have unnecessary space above them when window is maximized HOT 2
- [Feature/element] broken when [doing something] HOT 1
- FF 97: Tab heights HOT 1
- Kodeak~ HOT 2
- Window close/minimize buttons got a margin HOT 1
- [Feature/element] URL bar completely white HOT 24
- How can I make my search bar rounded/circled same as Material Fox does? HOT 3
- Images on home page HOT 1
- [Feature/element] broken when [doing something]
- Address bar totally broken on any dark theme HOT 4
- URL Address Text has incorrect vertical padding while focused after opening new tab. HOT 1
- Is this project dead? HOT 16
- URLBar not centralized HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from materialfox.