Adium

CreatingMessageStyles/MessageViewVersion

The version information is internally documented in  AIWebkitMessageViewStyle.m. This should eventually mention the ways that a custom Template.html will interact/interfere with MessageViewVersion and expand on any caveats of the version changes (Like that, as of 1.3, MVV=4 is not compatible with embedded id=insert.

Our styles are versioned so we can change how they work without breaking compatibility. Versions 0, 1, and 2 are deprecated. If you use them the Evil Menu Duck will hate you with the burning passion of a thousand suns. Don't do it.

  • Version 0:
    • DEPRECATED
    • Initial Webkit Version
  • Version 1:
    • DEPRECATED
    • Template.html now handles all scroll-to-bottom functionality. It is no longer required to call the scrollToBottom functions when inserting content.
  • Version 2:
    • DEPRECATED
    • No significant changes
  • Version 3:
    • Main.css is no longer a separate style, it now serves as the base stylesheet and is imported by default.
    • The default variant is now a separate file in /variants like all other variants.
    • Template.html now includes appendMessageNoScroll() and appendNextMessageNoScroll() which behave the same as appendMessage() and appendNextMessage() in Versions 1 and 2 but without scrolling.
  • Version 4:
    • Template.html now includes replaceLastMessage()
    • Template.html now defines actionMessageUserName and actionMessageBody for display of /me (actions). If the style provides a custom Template.html, these classes must be defined. CSS can be used to customize the appearance of actions.
    • HTML filters in are now supported in Adium's content filter system; filters can assume Version 4 or later.
    • Requires a Single root-level element per html file (Content.html, Status.html, etc).
Page last modified by zacw, 11 months ago