anking-vip / ankirecolor Goto Github PK
View Code? Open in Web Editor NEWRecolor addon commissioned by and created for AnKing
Recolor addon commissioned by and created for AnKing
I have changed the colours of everything however whenever i edit a card and the background of some of the window does not change
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.66 (tried other versions to see if issue changes but does not)
If you've received an error message, please copy and paste it between the backticks below:
Caught exception:
Traceback (most recent call last):
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\ReColor\ankiaddonconfig\window.py", line 100, in on_save
hook()
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\ReColor\config.py", line 41, in on_save
recolor_python()
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\ReColor\colors.py", line 54, in recolor_python
refresh_all_windows()
File "C:\Users\gusta\AppData\Roaming\Anki2\addons21\ReColor\colors.py", line 26, in refresh_all_windows
mw.reviewer.refresh() # type: ignore
AttributeError: 'Reviewer' object has no attribute 'refresh'
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
Version 2.1.54 (b6a7760c)
Python 3.9.7 Qt 5.15.2 PyQt 5.15.5
If you've received an error message, please copy and paste it between the backticks below:
When loading 'ReColor':
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "C:\Users\justi\AppData\Roaming\Anki2\addons21\688199788\__init__.py", line 7, in <module>
from . import colors
File "C:\Users\justi\AppData\Roaming\Anki2\addons21\688199788\colors.py", line 205, in <module>
recolor_python()
File "C:\Users\justi\AppData\Roaming\Anki2\addons21\688199788\colors.py", line 22, in recolor_python
replace_color(color_entries, color_name)
File "C:\Users\justi\AppData\Roaming\Anki2\addons21\688199788\colors.py", line 41, in replace_color
anki_color["light"] = color_entry[1]
TypeError: 'tuple' object does not support item assignment
First of all, thanks a lot for the awesome add-on. I've been waiting for something like this for very long. Some suggestions from my side:
For this, I've created a pull request (#4) with the above features in mind.
I've installed recolor on anki 2.1.66, I think, whatever the newest one is, and none of the premade colourschemes are working. Some create a mild change but still not really usable, and lots of them just don't change the colour at all.
I'm putting in photos of:
me applying a theme
the result of the application
copying and pasting in an entire code for a particular theme
the result of applying that
the card editor in this theme - still looks sort of terrible
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.66
If you've received an error message, please copy and paste it between the backticks below:
Running on: MacOS Ventura on M2 Air
Anki Version 2.1.54 (b6a7760c)
Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
After upgrading to recolor 2.5, i am getting the following error when starting Anki:
When loading 'ReColor':
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/Users/user/Library/Application Support/Anki2/addons21/688199788/__init__.py", line 7, in <module>
from . import colors
File "/Users/user/Library/Application Support/Anki2/addons21/688199788/colors.py", line 205, in <module>
recolor_python()
File "/Users/user/Library/Application Support/Anki2/addons21/688199788/colors.py", line 22, in recolor_python
replace_color(color_entries, color_name)
File "/Users/user/Library/Application Support/Anki2/addons21/688199788/colors.py", line 41, in replace_color
anki_color["light"] = color_entry[1]
TypeError: 'tuple' object does not support item assignment
2.1.55
Hello!
Is there any way I can style this three white buttons showed in picture using CSS? They are basically all white with whitish text inside them. Text is only visible when I hover over button:
2.1.55 Qt 6
Regardless of the theme used (e.g., Nord, Anki, custom theme, etc.), it does not currently seem possible to customize the color of a selected card in browser mode. The color defaults to light green, as shown below:
Ideally, it would be possible to customize the color of a selected card in the settings for this addon.
I faced the same error as here. I updated my extension and now I'm facing a new error.
Anki Version 2.1.53
Python 3.9.10 Qt 6.3.0 PyQt 6.3.0
OS: Kubuntu
Upon opening anki:
When loading 'ReColor':
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/home/user/.local/share/Anki2/addons21/688199788/__init__.py", line 2, in <module>
from . import colors
File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 198, in <module>
recolor_python()
File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 51, in recolor_python
apply_palette()
File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 84, in apply_palette
palette.setColor(role, qcolor(conf_key))
File "/home/user/.local/share/Anki2/addons21/688199788/colors.py", line 60, in qcolor
return QColor(hex_color)
TypeError: arguments did not match any overloaded call:
QColor(Qt.GlobalColor): argument 1 has unexpected type 'NoneType'
QColor(int): too many arguments
QColor(QRgba64): argument 1 has unexpected type 'NoneType'
QColor(Any): argument 1 has unexpected type 'NoneType'
QColor(): argument 1 has unexpected type 'NoneType'
2.1.54
Setting Anki to light mode, ReColor to (light) Solarized, Anki to dark mode, doesn't use (dark) Solarized's Window Background color behind the card while reviewing.
Concisely describe the solution you would like
When Anki is set to light mode, match the colors of (light) Solarized; when Anki is set to dark mode, match the colors of (dark) Solarized.
I realize there may be a technical issue because it's not as simple as Nord, there may need to be a dark theme and a light theme set separately in ReColor (which opens up the possibility for them being different themes), and an extra hook to apply the other theme whenever the Anki's dark mode is toggled by following the system.
Concisely describe alternatives you've considered (if any)
Anki theme, Nord theme, manually changing the theme when the sun goes up/down
Additional context: Add any other context or screenshots about the feature request here.
This add on makes the hint button change color in light mode from a dark background to a light background which looks weird compared to without the add ons
Please replace the space inside the brackets with an x if the following items apply:
2.1.56 qt6
Below is an image of how it looks now
<img width="1166" alt="image" src="https://user-images.githubusercontent.com/109875058/213832171-50e3e77d-dc03-4c4e-9e56-5963ae46f581.png">
is it possible to use this with a file that generates pywal?
Anki's new version, 2.1.55, has changed some html classes. E.g. I cannot change background webview since it is named now as "--canvas".
Please replace the space inside the brackets with an x if the following items apply:
2.1.55
no error message.
No idea what happened, it was working fine for a bit after the update. It then suddenly stopped working when I restarted today. The Recolor toolbar up top is gone and the theme reverted back to default, original Anki grey. I cannot update my Anki to newer releases due to the conflicts with other add-ons.
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.49
If you've received an error message, please copy and paste it between the backticks below:
When loading 'ReColor':
Traceback (most recent call last):
File "aqt\addons.py", line 230, in loadAddons
File "C:\Users\San\AppData\Roaming\Anki2\addons21\688199788\__init__.py", line 7, in <module>
from . import colors
File "C:\Users\San\AppData\Roaming\Anki2\addons21\688199788\colors.py", line 10, in <module>
from anki.utils import is_mac
ImportError: cannot import name 'is_mac' from 'anki.utils' (C:\Program Files\Anki\anki\utils.pyc)
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.55 Qt6
n/a
It would be great to have an option to be able to search for colors using HEX codes. I found a color theme online that I want to use, but I have to find a workaround in order to find and add the desired colors within the ReColor addon
Just to be thorough -- the HEX code option could be added as an option at the top of the window in the screenshot below.
*Normally, When we are at the home page, where we can see all the decks, The theme is in action perfectly, Even if I am using a custom background, there is a slight low opacity theme color on it, like see the screenshot -
But, When I study a deck, The theme color is only in effect in the bottom and top, the middle is back to normal anki default color, there is no low opacity theme color here on the top of the Background, like there was in the home page, look at the screen shot -
I really would have loved it if the theme was in action during the decks are being studied as thats where we moslty spend our time in anki and not at home page.
If possible, please tell me how I can make the theme color to be visible while studying deck or if there is no such option, I would request to implant it as I think its an important thing.
Thanks*
Version 23.12.1 (1a1d4d54)
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
Opened anki, then pressed browse and an anki error message pops up that takes me to a troubleshooting guide
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
23.12.1.##
If you've received an error message, please copy and paste it between the backticks below:
Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 5.14.2 PyQt 5.14.1
Platform: macOS-10.15.7-x86_64-i386-64bit
Traceback (most recent call last):
File "aqt.webview", line 50, in cmd
File "aqt.webview", line 157, in _onCmd
File "aqt.webview", line 686, in _onBridgeCmd
File "aqt.toolbar", line 411, in _linkHandler
File "aqt.toolbar", line 429, in _browseLinkHandler
File "aqt.main", line 1240, in onBrowse
File "aqt", line 136, in open
File "aqt.browser.browser", line 139, in __init__
File "aqt.browser.browser", line 639, in setupSidebar
File "aqt.browser.sidebar.tree", line 95, in __init__
File "aqt.browser.sidebar.tree", line 107, in _setup_style
File "aqt.theme", line 192, in var
TypeError: tuple indices must be integers or slices, not str
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
ReColor ['688199788', 2023-04-27T23:19, '1.8', mod]
Review Heatmap ['1771074083', 2022-06-30T02:43, 'None', '']
===IDs of active AnkiWeb add-ons===
1771074083 688199788
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Symbols As You Type ['2040501954', 2024-01-20T05:42, 'None', '']
Caught exception: Traceback (most recent call last): File "/Users/Nick/Library/Application Support/Anki2/addons21/ReColor/ankiaddonconfig/window.py", line 105, in on_save hook() File "/Users/Nick/Library/Application Support/Anki2/addons21/ReColor/config.py", line 57, in on_save recolor_web() File "/Users/Nick/Library/Application Support/Anki2/addons21/ReColor/colors.py", line 80, in recolor_web update_webview_css(webview) File "/Users/Nick/Library/Application Support/Anki2/addons21/ReColor/colors.py", line 84, in update_webview_css (light_mode_css, dark_mode_css) = get_theme_css() File "/Users/Nick/Library/Application Support/Anki2/addons21/ReColor/colors.py", line 54, in get_theme_css css_names = entry[3] KeyError: 3
I also noticed the fastbar doesn't change color. I don't know if that's possible, but wanted to mention it.
Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
The option to change "highlighted background" is broken on 2.1.55+. It correctly changes the color of items in the dropdown menus but does not change the color of highlighted cards in the browse window. On 2.1.55+ the add-on defaults to a bright green color for highlighted cards in the browse window. This add on is working as intended in 2.1.54 but not in 2.1.55+. See attached screenshots.
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.55 qt6
If you've received an error message, please copy and paste it between the backticks below:
Please replace the space inside the brackets with an x if the following items apply:
Latest version
Using the add on combins button background of anki with the button backfground fields of the anking note type (such as FA, BB, Pathoma) which makes it an issue when wanting a regular white background for the regular buttons but keeping it dark for those fiels
Either provide a separate feature or prevent the add on from overriding the note type.
Please replace the space inside the brackets with an x if the following items apply:
*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below
2.1.46
Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help."
It would be nice if, like in many other programs such as VSCode it were possible to style the title bar in MacOS, I believe this is possible within the Qt framework. See below for an example of a styled titlebar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.