<table><tr><td style="">Zren added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D18019">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D18019#388811" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D18019#388811</a>, <a href="https://phabricator.kde.org/p/ndavis/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@ndavis</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p>I'm leaning towards no, but a second link to text formatting documentation might be a good idea.</p></div>
</blockquote>
<p>Adding a second link is pretty easy, though I wrote this before I noticed your edit. A second link would look better + simpler to maintain though. Though without a RichText example, the user might not understand the need to escape using apostrophes without an example (<tt style="background: #ebebeb; font-size: 13px;">'<b>'ddd'</b>'</tt> ).</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>I'm leaning towards no, but an example of the custom time formatting and another of Rich Text formatting would be a good idea.</p></blockquote>
<p>Here's an example table, using an unconventional method of drawing a grid.</p>
<p><a href="https://phabricator.kde.org/F6533733" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F6533733: 2019-01-08___00-40-47.png</a></p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">QtLayouts.GridLayout {
id: exampleFormatsTable
columns: 2
property var model: [
"yyyy-MM-dd",
"MMM d",
"'<b>'ddd'</b>'d",
"'<font color=\"#f00\">'ddd'</font>'d",
]
Repeater {
model: exampleFormatsTable.model.length * 2
Item {
id: cell
property int padding: units.smallSpacing
implicitWidth: exampleLabel.implicitWidth + padding*2
implicitHeight: exampleLabel.implicitHeight + padding*2
QtLayouts.Layout.fillWidth: true
readonly property int row: Math.floor(index / exampleFormatsTable.columns)
readonly property int column: index % exampleFormatsTable.columns
Rectangle {
anchors.fill: parent
color: exampleLabel.color
opacity: 0.1
}
QtControls.Label {
id: exampleLabel
anchors.left: parent.left
anchors.top: parent.top
anchors.margins: cell.padding
textFormat: cell.column === 0 ? Text.PlainText : Text.RichText
text: {
var exampleFormat = exampleFormatsTable.model[cell.row]
if (cell.column === 0) {
return exampleFormat
} else {
return Qt.formatDate(new Date(), exampleFormat)
}
}
}
}
}
}</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18019">https://phabricator.kde.org/D18019</a></div></div><br /><div><strong>To: </strong>Zren, Plasma, VDG<br /><strong>Cc: </strong>ndavis, rooty, plasma-devel, kvanton, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>