Code Monkey home page Code Monkey logo

ankirecolor's People

Contributors

abdnh avatar ankingmed avatar anubisnekhet avatar anubissunra avatar bluegreenmagick avatar cillysu avatar madmaximux avatar pranavdeshai avatar risingorange avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ankirecolor's Issues

Some things won't change colour

Problem description

I have changed the colours of everything however whenever i edit a card and the background of some of the window does not change

image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • [n/a] My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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)

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:


Error when accessing in reviewer

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'

Recolor 04/24/2023 update error on 2.1.54 (b6a7760c)⁩

Problem description

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?

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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

Error message (if any)

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

Better demonstration of the add-on with community themes

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:

  • The demonstration of the add-on could be much better if it includes themes made by the community (there are 3 of those already).
  • Also, it'd be great if configuration JSON for the themes is at one place.

For this, I've created a pull request (#4) with the above features in mind.

Recolor showing weird colours - presets not working, colour not really changing.

Problem description

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
image
the result of the application
image
copying and pasting in an entire code for a particular theme
image
the result of applying that
image
the card editor in this theme - still looks sort of terrible
image

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:


Recolor 2.5 throws error on Anki 2.1.54 on MacOS

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
⁩

Weird appearance of buttons

Checklist

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've checked if anyone else asked this question before by looking through the issue reports.

What Anki version are you using?

2.1.55

Your question

anki_buttons
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:
anki_button_2

Change selected card color in browser

Checklist

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've checked if anyone else suggested this feature before by looking through the issue reports.

What Anki version are you using?

2.1.55 Qt 6

Problem case

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:

image

Solution

Ideally, it would be possible to customize the color of a selected card in the settings for this addon.

Recolor update error again on linux

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'

(dark/light) Solarized: follow system theme

Checklist

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
    - this deleted extra .json themes I saved from the wiki
  • I've checked if anyone else suggested this feature before by looking through the issue reports.

What Anki version are you using?

2.1.54

Problem case

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.

Solution

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

More information

Additional context: Add any other context or screenshots about the feature request here.

Background color of hint is automatically changed with this add on

Problem description

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

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [ x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [x ] My issue disappears when I hold shift while starting Anki.
  • [x ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

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">

"breaks" with new anki version 2.1.55

Problem description

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".

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [ x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [ x] My issue disappears when I hold shift while starting Anki.
  • [x ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

2.1.55

Error message (if any)

no error message.


Recolor 04/24/2023 update error on Windows 2.1.49 dc80804a

Problem description

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.

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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

Error message (if any)

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)

HEX color code

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [ x] I've checked if anyone else suggested this feature before by looking through the issue reports.

What Anki version are you using?

*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

Problem case

n/a

Solution

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

More information

Just to be thorough -- the HEX code option could be added as an option at the top of the window in the screenshot below.

image

The theme is back to Anki default during reviewing cards🙏

Problem description

*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 -
Screenshot 2024-03-10 144131

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 -
Screenshot 2024-03-10 144150

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*

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

Version ⁨23.12.1 (1a1d4d54)⁩

Bug when I press browse

Problem description

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

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [x ] I've restarted Anki to see if it helps
  • [x ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've tried to disable other add-ons to see if there are any interactions present
  • [x ] My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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.##

Error message (if any)

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', '']

2.1.55 error

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.

Bug with color of highlighted background of cards in browse window on 2.1.55+

Problem description

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.

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

What Anki version are you using?

*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

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:


Screenshot 2023-01-15 153324
Screenshot 2023-01-15 153719

Background button color

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • [ yes] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [ yes] I've checked if anyone else suggested this feature before by looking through the issue reports.

What Anki version are you using?

Latest version

Problem case

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

Solution

Either provide a separate feature or prevent the add on from overriding the note type.

Request: Allow for theming of the MacOS title bar

Checklist

Please replace the space inside the brackets with an x if the following items apply:

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've checked if anyone else suggested this feature before by looking through the issue reports.

What Anki version are you using?

*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

Problem case

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."

Solution

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

More information

image

Odd color styling of top bar

I'm using the Nord theme on 2.1.61 and I get this weird styling at the top. It'd probably be good to clean this up a tad if it's not too difficult

CleanShot 2023-04-18 at 14 45 36@2x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.