Decaf

Themes ::: theme_decaf
Maintained by Paul Nicholls
A clean, simple theme which adds an "Awesomebar" at the top of the page to provide quick, easy navigation.
Latest release:
213 sites
29 downloads
17 fans
Current versions available: 5

Decaf is a three-column, fluid-width theme for Moodle that was created by Lei Zhang and Paul Nicholls. It improves usability by fixing an "Awesomebar" at the top of the screen, which provides dropdown menus containing everything in the Navigation and Settings blocks.

For developers, it also transforms the performance info into a colorful bar which floats at the bottom of the screen, which increases awareness of the performance statistics.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2

Contributors

Paul Nicholls (Lead maintainer): Developer
Lei Zhang
Lei Zhang: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Just wondering . . .
    Wed, 11 Dec 2013, 12:27 PM
    Kathryn: To be sure the source of the problem you need to check this out with clean theme. Themes don't usually stop files being uploaded.

    -Derek
  • Alan Whittamore
    Thu, 12 Dec 2013, 5:15 PM
    Kathryn,

    in decaf/style/core.css change the line (at or near 111) from

    div.moodle-dialogue-base {position:absolute;top:0;left:0;right:0;z-index:1500;}

    to

    div.moodle-dialogue-base {position:absolute;top:0;left:0;right:0;z-index:9000;}

    That fixed the file upload issue for me.
    You can also try the atto text editor instead of tinyMCE (that works).

    -Alan
  • Mack Hucks
    Sat, 21 Dec 2013, 4:17 AM
    Any update on the issue with the edit area on the course page?
  • Steve Kirk
    Sat, 21 Dec 2013, 10:56 AM
    Hi Paul,

    Great theme! Thanks for all your work.
    I have a question or a request about the awesome bar behavior. I would like to have a mouse hover timer so that the awesome bar menus would not open unless the mouse was kept there for half a second or so. I find that when the mouse passes the awesome bar on the way to the browser tabs or back, the menus all pop open.
    I assume that some code could be added to the javascript file for the awesome bar, but I don't know anything about javascript and couldn't figure out what the code was doing in awesomebar.js. Is this easy to mod?
  • Juanma Campos
    Sat, 21 Dec 2013, 9:53 PM
    Hi there! thank you for that wonderful theme. Could anyone explain what do I have to do in the theme to appear like this?

    http://www.iesvictoriakentmarbella.es/

    and then, It expands with all the courses.

    I would really appreciate any help!

    Juanma
  • Juanma Campos
    Sat, 21 Dec 2013, 10:33 PM
    It's me again. This is more clear. I'm not able to get the regular moodle menu that appears in this picture:

    Any idea?
    thanks
  • Guido bei der Arbeit
    Tue, 24 Dec 2013, 9:34 AM
    @Juanma: did you try to activate the navigation block in the decaf settings?
    In http://www.iesvictoriakentmarbella.es/ all the menues seem to be custom menues that can be modified in (your_moodle)/admin/settings.php?section=themesettings
  • Rebecca O'Connell
    Tue, 31 Dec 2013, 8:54 AM
    In other themes in 2.6 (Afterburner, for example), when I click the Site administration link, there is a pause, and then the admin menu loads dynamically. It would be nice if Decaf worked this way as well. Then you could keep the performance gain when you don't need the menu, but still be able to access the menu without going to another page (and possibly not understanding how or why you've arrived at this page).
  • Paul Nicholls
    Mon, 6 Jan 2014, 8:08 AM
    Steve, the menus open using CSS :hover rules (only using JS to support ancient browsers which don't do :hover on anything that's not an "a" tag). A delay before opening would require that the whole thing be done in JS, which I'd rather avoid. It might also be a usability issue, depending on how long the delay is - people might start trying to click on the Awesomebar menus to get them to open, in some cases taking them to other pages (which aren't where they want to go).

    Rebecca, I'll keep that in mind when I work on the new version - the current 1.9 release is really just the minimum I could do to make it work in 2.6, for the benefit of those who have already upgraded. I hope to be able to get stuck in to working on the new (responsive) Decaf soon, so keep an eye on the Themes forum for an announcement when it's ready for testing.
  • Iron Man
    Thu, 9 Jan 2014, 12:23 AM
    Have a similar problem to Kathryn Duncan
    mer, 11 déc 2013, 07:59 . I Installed version 2013112502 on Moodle 2.6 and Image upload is not working since the windows appears under another one . File chooser should be in front of insert an image window as you can see in this image : http://www.evernote.com/shard/s9/sh/c32bb3f2-509c-46fb-ad01-52d31bad296c/22f131cf8f707f3485e074210c54d02c
  • Just wondering . . .
    Tue, 14 Jan 2014, 5:56 AM
    Just out of interest.

    I have a 2.6+ test site set up with decaf.
    Regarding the question I raised earlier in the discussion about the need to click on the admin link (an unintended consequence of this https://tracker.moodle.org/browse/MDL-41811) is proving to be quite a problem for me in doing a lot of admin and and also going in and out of courses. The rollover stays there while you are working, but if you click to go to a course it then needs another click to reload it. More of a problem than I initially thought.

    Paul, I hope you are able to make a toggle for this behaviour (I'm prepared to take a loading time hit), or that some other option is possible.

    Be that as it may, we will probably still upgrade and use the latest decaf. But we will probably develop a daughter theme with a few features like logo, narrower header, some adjusted spacings, new H1-H4 styles, and different link colours.
    How easy is it to add in a few more settings to a theme for users to change? The Essential theme actually has several pages for the theme settings.

    -Derek
  • Alan Whittamore
    Tue, 14 Jan 2014, 7:51 PM
    Derek,

    I agree entirely with your comments, and Paul has already made the point that the performance hit with the 'System Administration' link only affects Admins and as you so rightly point out, you may prefer the old behaviour despite that. It should be an option in Moodle itself I believe.

    Anyway, you can try my workaround as follows:

    ***Always show full admin settings tree (optional - may hurt performance)
    ***lib/navigationlib.php (~line 3397) - change if ($isadminpage) { to if (true) {
    ***lib/navigationlib.php (~lines 3412-3422) - comment out (block after // Print empty navigation node)

    I don't know how to change this behaviour easily within decaf itself (maybe Paul will find a way).

    The great power of the awesome bar is that you can always get anywhere in your system with just one click - just what you need as and Admin!
  • Alan Whittamore
    Tue, 14 Jan 2014, 8:26 PM
    Update to my previous post - that was my first stab at the workaround. It's even easier! Just change one line:

    ***lib/navigationlib.php (~line 3391) - change $isadminpage = $this->is_admin_tree_needed(); to $isadminpage = true;
  • Martin Arman-Addey
    Tue, 14 Jan 2014, 9:58 PM
    Hello, I am testing the new Decaf version and am experiencing a problem with both 2.5 & 2.6, the side bar is invisible, if you send a block to this, you cant access it, the only way is to turn the sidebar off. Also on 2.6 the Activity Chooser is not appearing, it is on the old format of the the two selection boxes for activities or resources,I have checked the ajax and JS settings and these are set as expected. Any help would be much appreciated, Many thanks Martin
  • Just wondering . . .
    Thu, 16 Jan 2014, 6:10 AM
    @Alan, thanks. I presume this is a core hack.
    @Martin. The activity chooser is fine for me (new 2.6.1) and I am not sure what you mean by turn the sidebar off. (Are you sure you have not docked the menu?)

    I have posted here: https://moodle.org/mod/forum/discuss.php?d=252141 Minor problem with edit icons on home page wih an image.

    Otherwise, with a few clicks, in and out of courses etc, Decaf with 2.6.1 is fine. Now, if I can just get the editor to appear all will be well, but I know that is no a decaf problem.

    -Derek
Please login to post comments