anki-enhance-main-window icon indicating copy to clipboard operation
anki-enhance-main-window copied to clipboard

Can't change text color

Open Z1839 opened this issue 5 years ago • 5 comments

I'm a huge fan of the addon, but I can't figure out how to change the text color (New cards, etc.). Basically, my number new cards and total cards/notes are coming up as black on a dark background in night mode.

I tried going into the config in the Anki 2.1 addon manager, and when I change the color from "null" to the hex code "# and the code" and just the code, it gives me a "JSON decode error".

I also installed the Newlines addon and it gives me the same error.

Moreover, I tried editing the config.json file directly, and when I reopen anki I get a message saying the addon couldn't load. However, the addon does change the color of the text, but some columns are missing.

If you could help me figure this out it would be very appreciated!

Z1839 avatar Jun 22 '19 16:06 Z1839

Please copy paste the part you changed

Le sam. 22 juin 2019 à 18:32, Z1839 [email protected] a écrit :

I'm a huge fan of the addon, but I can't figure out how to change the text color (New cards, etc.). Basically, my number new cards and total cards/notes are coming up as black on a dark background in night mode.

I tried going into the config in the Anki 2.1 addon manager, and when I change the color from "null" to the hex code "# and the code" and just the code, it gives me a "JSON decode error".

I also installed the Newlines addon and it gives me the same error.

Moreover, I tried editing the config.json file directly, and when I reopen anki I get a message saying the addon couldn't load. However, the addon does change the color of the text, but some columns are missing.

If you could help me figure this out it would be very appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Arthur-Milchior/anki-enhance-main-window/issues/59?email_source=notifications&email_token=AACXH4NQZ7ZHVG5NFYTPRATP3ZHZ3A5CNFSM4H2XEM3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DINZQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AACXH4PFKEXUSMFB7LXGXELP3ZHZ3ANCNFSM4H2XEM3A .

Arthur-Milchior avatar Jun 22 '19 17:06 Arthur-Milchior

This Add on 2061352905 would ensure you get more precise json error message

Le sam. 22 juin 2019 à 19:05, Arthur Milchior [email protected] a écrit :

Please copy paste the part you changed

Le sam. 22 juin 2019 à 18:32, Z1839 [email protected] a écrit :

I'm a huge fan of the addon, but I can't figure out how to change the text color (New cards, etc.). Basically, my number new cards and total cards/notes are coming up as black on a dark background in night mode.

I tried going into the config in the Anki 2.1 addon manager, and when I change the color from "null" to the hex code "# and the code" and just the code, it gives me a "JSON decode error".

I also installed the Newlines addon and it gives me the same error.

Moreover, I tried editing the config.json file directly, and when I reopen anki I get a message saying the addon couldn't load. However, the addon does change the color of the text, but some columns are missing.

If you could help me figure this out it would be very appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Arthur-Milchior/anki-enhance-main-window/issues/59?email_source=notifications&email_token=AACXH4NQZ7ZHVG5NFYTPRATP3ZHZ3A5CNFSM4H2XEM3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3DINZQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AACXH4PFKEXUSMFB7LXGXELP3ZHZ3ANCNFSM4H2XEM3A .

Arthur-Milchior avatar Jun 22 '19 17:06 Arthur-Milchior

For the news it's { "absolute": true, "color": null, "description": "Unseen cards you will see today, not buried nor suspended. (what anki calls new cards)", "header": null, "name": "new today", "overlay": null, "percent": false, "present": false, "subdeck": true },

I tried changing null to #XXXX and XXXX (XXXX is the color code)

Error is: Invalid configuration: JSONDecodeError('Expecting value: line 109 column 22 (char 3631)',)

Z1839 avatar Jun 22 '19 19:06 Z1839

Did you put quote around the #XXXX

i wanted to see the code raising the error. Sending thecorreft code is useless

Le sam. 22 juin 2019 à 21:49, Z1839 [email protected] a écrit :

For the news it's { "absolute": true, "color": null, "description": "Unseen cards you will see today, not buried nor suspended. (what anki calls new cards)", "header": null, "name": "new today", "overlay": null, "percent": false, "present": false, "subdeck": true },

I tried changing null to #XXXX and XXXX (XXXX is the color code)

Error is: Invalid configuration: JSONDecodeError('Expecting value: line 109 column 22 (char 3631)',)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Arthur-Milchior/anki-enhance-main-window/issues/59?email_source=notifications&email_token=AACXH4M2EYOZULKGQ6WJRD3P3Z647A5CNFSM4H2XEM3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYKQGKY#issuecomment-504693547, or mute the thread https://github.com/notifications/unsubscribe-auth/AACXH4JLJPBK5GUE75NMW6TP3Z647ANCNFSM4H2XEM3A .

Arthur-Milchior avatar Jun 23 '19 08:06 Arthur-Milchior

The quotes helped :) Thanks

Z1839 avatar Jun 24 '19 23:06 Z1839