13 0
Sign in to rate

FULLEST SCREEN: hide all toolbars in reviewer

<10kB. Updated 2020-06-10. Only supports Anki 2.1.x.
The author has shared 9 other item(s).

Description

This add-on hides the top toolbar AND the answer-key toolbar during review of cards. It helps save screen space. To return to the menu, press D. To answer cards, use shortcuts like 1,2,3,4. If you would like to view the durations for the answer keys (but without their buttons), edit the code: 1. Open Anki and go to "Tools" on the menu bar, then click "Addons" 2. Click on "Fullest Screen" and then click on the button "View Files" 3. Use a text editor to open the file called "Hide .py" 4. Scroll down to the part that says "TOGGLE HERE" 5. Replace the phrase HideAll.css with HideSome.css 6. Completely close Anki and reopen it. To hide the top titlebar (as opposed to toolbar), press the green button on the top left corner of the Anki window on Macs. On a PC, hiding the titlebar may depend on the Windows version you're running, so Google "How to go fullscreen in Windows X" with X being your Windows version. Tested and working on Anki 2.1 for Mac. If you'd rather have the bottom toolbar untouched, see here: https://ankiweb.net/shared/info/742922254 CREDIT ================================================================ Original code for hiding the top toolbar by Steve AW. Edited to port to Anki 2.1. For removing the bottom toolbar, I used some code from the add-on "Simplified Review GUI" and modified it to either hide the review bar or simplify it. Got permission from that author, who goes by the name J718. Author of remaining code is Joseph Yasmeh.

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1999609504

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons

Reviews

on 1635220800
Great.Change the code if you want to hide top titlebar also
def hide_toolbar_reviewing(self, oldState):
self.toolbar.web.hide()
# Hide top titlebar
mw.setWindowFlags(mw.windowFlags()| Qt.FramelessWindowHint)
mw.show()
def show_toolbar_not_reviewing(self, state, *args):
#Rather than tracking the state of the toolbar's visibility
#leave it to Qt to handle. m
self.toolbar.web.show()
# Unhide top titlebar
mw.setWindowFlags(mw.windowFlags() & ~ Qt.FramelessWindowHint)
mw.show()


and to hide menu bar also

def hide_toolbar_reviewing(self, oldState):
self.toolbar.web.hide()
# Hide menu bar
mw.menuBar().setMaximumHeight(0)
# Hide top titlebar
mw.setWindowFlags(mw.windowFlags()| Qt.FramelessWindowHint)
mw.show()
def show_toolbar_not_reviewing(self, state, *args):
#Rather than tracking the state of the toolbar's visibility
#leave it to Qt to handle. m
self.toolbar.web.show()
# Unhide menu bar
mw.menuBar().setMaximumHeight(9999)
# Unhide top titlebar
mw.setWindowFlags(mw.windowFlags() & ~ Qt.FramelessWindowHint)
mw.show()
on 1632585095
Great!
on 1600752645
I use "No distractions full screen…" and I don't want to change right now, but I give you thumbs up.
on 1581670929
Making a already great addon even better for focus. Thank you.
*EDIT* Does not hide bottom bar with recent Anki updates (2.1.20)
Comment from author
Thanks for putting that on my radar. I'll look into a fix when I get a chance.

In the meanwhile, if anybody could post the error message they get, it would help.

EDIT on 6/9/2020: I've tested it on Anki 2.26 and it's working for me.
on 1581021513
Great. Change the code if you want to hide menu bar also

def hide_toolbar_reviewing(self, oldState):
self.toolbar.web.hide()
# Hide menu bar
mw.menuBar().setMaximumHeight(0)

def show_toolbar_not_reviewing(self, state, *args):
#Rather than tracking the state of the toolbar's visibility
#leave it to Qt to handle. m
self.toolbar.web.show()
# Unhide menu bar
mw.menuBar().setMaximumHeight(9999)
on 1580594822
For those that want to keep the answer buttons floating but still hide the bottom bar: https://ankiweb.net/shared/info/1049863218
on 1580506517
Excellent add on! absolutely love it.

I changed the background color to FFFAFA to match night mode theme. It took me a while to figure out that the CSS didn't like it when I used #FFFAFA so I removed the hex and it fixed the issue.

Thank you!
on 1576458322
An excellent add-on, it helps a lot on a 13 inch screen. Thanks!!!

There is an idea how to make it even more convenient to use.
Namely, not to completely remove the bottom panel with buttons, but to make it possible, if necessary, to show or hide it, by moving the cursor to the very bottom of the window or by pressing certain keyboard shortcuts.
I think a lot of this is missing.
Comment from author
You're welcome. You might want to check out my other add-on, Fuller Screen, which doesn't hide the bottom bar. I likely won't have the time to implement your good suggestion, but feel free to use the code from that one if you want to write the fix.
on 1576013036
Excellent – especially with the option `HideSome.css`. Many thanks!
on 1573990149
That's awesomeness! Md7 really likes your addon!
on 1568640715
great, I keep seeing the number of remainder(Chinglish) and distract
on 1564693788
Great add-on and idea, but it isn't hiding the bottom bar (macOS High Sierra, Anki 2.1), just the top one. Tried to edit some files, but it doesn't work.

https://imgur.com/a/hZbHUyP (using HideAll config)

Edit*: Nvm, it started working all of a sudden (I haven't disabled any other add-on, or messed with the OG code of your add-on; I'm not sure what happened)

Edit2*: I love you, this is great

Edit3* It seems like this add-on interferes with the Night Mode add-on somehow. Whenever I toggle Night Mode while using this add-on, I cannot switch back to Light Mode, unless I restart Anki. Any ideas of what's going on? Ty
Comment from author
Hey! Thanks for reporting the Night Mode conflict. I'm also running High Sierra but switching between Night and Light works for me--I'm using the Command+N shortcut.

I've looked at the code for Night Mode and I'm not sure what's causing that on your end. It sounds like you've confirmed it's this addon, but just in case not, maybe another addon is responsible. Alternatively, maybe you have the Browser or Add Card windows open, which prevents Night Mode from turning on.
on 1563275057
Love it. :) I wonder if it'd be possible to hide everything (no menu and titlebar).