Comments (9)
I figured out how to achieve the effect that I had before without add-on.
In Styling section of cards
.replay-button svg path { stroke: #2f2f31; fill: #3399ff; }
.replay-button { width: 35px; }
.replay-button svg circle {
fill: #2f2f31;
stroke: #2f2f31;
}
.card.nightMode { background-color: #2f2f31; }
Adjust colors to your liking. Colors should match background color for the circle to disappear.
The piece of code for this is in reviewer.css. At least in tar.bz2 version for Linux.
In this case add-on seems to be unnecessary, unless it can provide some extra features.
from anki-addons.
Add-on may be simpler for users: adding a number in manager instead of changing every note type. But I admit that seems less necessary than if you didn't have this CSS
from anki-addons.
Something like this can also be used to make it look exactly the same as before. To make it black, delete or replace fill='blue'
with fill='black'
.
.replay-button {
content: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' fill='blue'><polygon points='11,25 25,16 11,7'></polygon></svg>");
}
from anki-addons.
Not quite obsolete I'd say. So far the new button has a huge white circle for no apparent reason, and since it's a static img/png you can't get rid of (just) that.
I'd hope that either Anki directly switches to this addon's handling or the addon is altered to now replace that img with its cleaner svg.
from anki-addons.
Let me rephrase then
Current version of the add-on is obsolete; adding a second button makes no sens.
Replacing one button by another one would be a nice change.
You can also give your feedback about the button size on https://anki.tenderapp.com/
I won't do it because I don't care, but that's probably the kind of thing Damien Elmes would like to know
from anki-addons.
Left him a post yesterday, yes. I do hope he picks up this behavior as it matches AnkiDroid's, which likewise injects a svg.
(About the second button: There's none currently as the hooks also changed. For me addon does nothing on 2.1.20.)
from anki-addons.
I’v added a note at Ankiweb.
I’l now think about what to do. Maybe i’l look at a way to hide the original button. But that wil probably take a while, as i don’t work too much on these add-ons any more.
from anki-addons.
It is not obsolete. Anki 2.1.20 sound button doesn't look good (in my humble subjective opinion).
This is how Anki sound icon looks like:
https://i.imgur.com/kWoNbig.png
I had this beautiful svg button
https://i.imgur.com/RzzkivL.png
The advantage of svg is that users can easily change color and adjust size.
.card .replaybutton svg {
fill: #3399ff;
}
I was given this here:
#122
Damien will not implement this add-on in Anki. I already proposed it here:
https://anki.tenderapp.com/discussions/beta-testing/1708-anki-2120-beta/page/1#comment_48042382
but with no response to this idea from Damien.
Edition:
They can be styled a bit
https://apps.ankiweb.net/docs/manual.html#audio-replay-buttons
but still this is not the same effect as I showed with my styling for add-on.
from anki-addons.
I can update the add-on to ensure it hides Anki's button and use the one fo this add-on instead.
If anyone want to hire me, we can discuss it.
I must state that my original post was really about telling you the add-on was, as far as I see it, obsolete. I was not looking to find clients here
from anki-addons.
Related Issues (20)
- Replay button plugin shows text instead of image HOT 3
- Japanese - Nothing Downloaded HOT 9
- "remap replay audio button to plus key" and "More shortcuts" HOT 1
- deck_name_in_title 2.1 HOT 4
- [feature request] replay button styling in add-on not in template HOT 7
- Addressing potential Cookie Monster incompatibilities with other add-ons
- Make the way the nid in "Add Note ID" is calculated optional HOT 2
- Recently not working for japanese, but worked perfectly a few days ago. HOT 3
- I get this error after installing the addon HOT 3
- Change the place of button HOT 1
- Cannot replay from the start sometimes if a field has many audio clips HOT 2
- downloadaudio Error on Anki 2.1.20 Beta 5 HOT 2
- add_note_id: importing new cards into a note with Note ID field
- Add_Note ID no longer works in Anki 2.1.29+ HOT 4
- make note-id a real uuid HOT 4
- Changing note id to uuid breaks compatibility with linking HOT 1
- Replay buttons on card plugin not working for Anki 2.1.15 HOT 1
- Not support 2.1.49
- 插件启动失败
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 anki-addons.