Package org.olat.core.gui.themes

Examples of org.olat.core.gui.themes.Theme


  public Window(String name, WindowBackOfficeImpl wbackoffice) {
    super(name);
    this.wbackofficeImpl = wbackoffice;
    this.jsAndCssAdder = wbackoffice.createJSAndCSSAdder();
    // set default theme
    Theme myTheme = new Theme(Settings.getGuiThemeIdentifyer());
    setGuiTheme(myTheme);
  }
View Full Code Here


    main.put("updatecontrol", jsc);
   
    // configure new message sound
    newMsgIcon.contextPut("iconsHolder", showNewMessageHolder);
   
    Theme guiTheme = getWindowControl().getWindowBackOffice().getWindow().getGuiTheme();
    String newMessageSoundURL = guiTheme.getBaseURI() + "/sounds/new_message.wav";
    File soundFile = new File(WebappHelper.getContextRoot() + "/themes/" + guiTheme.getIdentifyer() + "/sounds/new_message.wav");
    if (!soundFile.exists()) {
      // fallback to default theme when file does not exist in configured theme
      newMessageSoundURL = newMessageSoundURL.replace("/themes/" + guiTheme.getIdentifyer(), "/themes/default");
    }
    newMsgIcon.contextPut("newMessageSoundURL", newMessageSoundURL);

    notifieNewMsgPanel = new Panel("newMsgPanel");
    notifieNewMsgPanel.setContent(newMsgIcon);
View Full Code Here

TOP

Related Classes of org.olat.core.gui.themes.Theme

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.