Comments (6)
Indeed, initially I just added in as a browser action (that's how that is technically called) instead of a an address bar button or so, because that's Mozilla's recommendation for stuff you can do on every site.
However, I'd certainly like to offer the option to (also) put it into the address bar. The implementation work is likely not too hard, but it could be problematic that the add-on itself cannot hide the buttons (AFAIK), so the user would have to configure the display to move one button away or so.
And having two buttons for the same purpose when the add-on is initially installed is not a good (first) user experience.
from offline-qr-code.
Okay, maybe I am wrong, as it seems the add-on can disable the action. 😃
from offline-qr-code.
This button also works on Android.
from offline-qr-code.
Both buttons work on Android. Currently it is just shown in the "…" menu as a text entry.
from offline-qr-code.
So I tried to implement this, but it does not look nice:
This is the state where the address bar (page action) is enabled, and the toolbar icon (browser action) is disabled.
As you can see, this looks weird. There are two/three problems:
- Neither the browser action, nor the page action can be completely hidden via JS/from the add-on. Only the user could do this. And as for the page action, not even the user can completly hide it, it will always be visible in the overflow menu:
- The icon of the page action cannot be adjusted to the theme. That's why it looks so dark in the screenshot.
- The browser action icon looks awkward when disabled.
If you want to try it yourself, here is a patch file (I needed to rename it to txt, because of GitHub's upload restrictions):
Thus I am closing this issue. Unfortunately it is not possible in a sane way, currently.
from offline-qr-code.
As for the color issue, I've at least added a comment.
from offline-qr-code.
Related Issues (20)
- The "like addon" tip is too aggressive/too often shown HOT 9
- Extract information from a QR Code picture (.svg / .png / etc. ) HOT 2
- Save Page with Overlaid QR Code HOT 3
- Support define text template for generate similar QRs HOT 4
- Use system clipboard content than tab url to gen code. HOT 6
- Save QR SVG to copy-paste clipboard HOT 5
- Can we have a function to READ QR Codes as well HOT 2
- Updated translations for 'zh_TW': zh_TW HOT 1
- QR-code window does not open HOT 1
- Add shortcut icon to the address bar HOT 1
- Updated translations for 'uk': Ukrainian (Українська) HOT 1
- Configuration for hiding random tips HOT 1
- The undo button is too far from reset button HOT 10
- Automatically retrieve text from clipboard and generate QR - (pl) Automatycznie pobieraj tekst ze schowka i generuj QR HOT 3
- Encrypted exchange by QR-code channel HOT 5
- Spanish translation contribution HOT 8
- Updated translations for 'es': Spanish (Español) HOT 2
- Updated translations for 'zh_CN': zh_CN HOT 3
- Improve Contribution documentation HOT 1
- Add context-menu item for generating a QR code for _the current page_ HOT 7
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 offline-qr-code.