kde-playground/kdepim/grantleeeditor/headerthemeeditor
Ivailo Monev a9b00154bc generic: replace forward class declarations with header inclusions
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-07-31 18:05:48 +00:00
..
CMakeLists.txt kdepim: cleanup 2015-09-23 11:27:31 +00:00
defaultcompletion.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
defaultcompletion.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
editorpage.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
editorpage.h generic: replace forward class declarations with header inclusions 2019-07-31 18:05:48 +00:00
headerthemeeditor.desktop import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
headerthemeeditorui.rc import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
main.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
Messages.sh import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
previewwidget.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
previewwidget.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
README.theme import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeconfiguredialog.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeconfiguredialog.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themedefaulttemplate.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themedefaulttemplate.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditormainwindow.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditormainwindow.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorpage.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorpage.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorutil.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorutil.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorwidget.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themeeditorwidget.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themetemplatewidget.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
themetemplatewidget.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00

How to create kmail header based on Grantlee:
---------------------------------------------
You can use directly headerthemeeditor

When you want to add css file or js file you need to use:
"<link href="{{ header.absoluteThemePath }}style.css" rel="stylesheet" type="text/css" />"
header.abasoluteThemePath defines path where is installed themes. KMail doesn't load relative path


We have some variable which can use to define theme:
- i18n variables: (default translated string)
        header.subjecti18n
        header.replyToi18n
        header.toi18n
        header.cci18n
        header.bcci18n
        header.fromi18n
        header.spamstatusi18n
        header.datei18n
        header.resentfromi18n
        header.vcardi18n
        header.resenttoi18n

- theme variables:
        header.absoluteThemePath
        header.subject
        header.replyTo
        header.replyToStr
        header.to
        header.toStr
        header.cc
        header.ccStr
        header.bcc
        header.bccStr
        header.from
        header.fromStr
        header.spamHTML
        header.dateshort
        header.date
        header.useragent
        header.xmailer
        header.resentfrom
        header.organization
        header.vcardname
        header.activecolordark
        header.fontcolor
        header.linkcolor
        header.photowidth
        header.photoheight
        header.applicationDir
        header.subjectDir
        header.photourl
        header.isprinting
        header.resentto