...
 
Commits (7)
......@@ -53,15 +53,17 @@ ApplicationWindow {
"instance": Logic.conf['instance'],
"api_user_token": ""
})
}
Logic.api.get('instance', [], function (data) {
if(data.max_toot_chars && data.max_toot_chars > 499) {
Logic.conf['max_toot_chars'] = data.max_toot_chars;
} else {
Logic.conf['max_toot_chars'] = 5000;
}
})
Logic.api.get('instance', [], function (data) {
if(data.max_toot_chars && data.max_toot_chars > 499) {
Logic.conf['max_toot_chars'] = data.max_toot_chars;
} else {
Logic.conf['max_toot_chars'] = 5000;
}
})
} else {
Logic.conf['max_toot_chars'] = 5000;
}
if (Logic.conf['login']) {
//Logic.conf['notificationLastID'] = 0
......
......@@ -152,7 +152,9 @@ function addDataToModel(model, mode, items) {
}
model.sync()
} function parseAccounts(collection, prefix, data) {
}
function parseAccounts(collection, prefix, data) {
var res = collection;
res[prefix + 'account_id'] = data["id"]
......@@ -323,7 +325,8 @@ function addEmojis(item, data) {
emoji = data["emojis"][i];
item['content'] = item['content'].replaceAll(
":" + emoji.shortcode + ":",
"<img src=\"" + emoji.static_url + "\" align=\"middle\" width=\"24\" height=\"24\">")
"<img src=\"" + emoji.static_url +
"\" align=\"top\" width=\"2em\" height=\"2em\" alt=" + emoji.shortcode + ">")
//console.log(JSON.stringify(data["emojis"][i]))
}
if(data["reblog"])
......@@ -332,7 +335,8 @@ function addEmojis(item, data) {
emoji = data["reblog"]["emojis"][i];
item['content'] = item['content'].replaceAll(
":" + emoji.shortcode + ":",
"<img src=\"" + emoji.static_url + "\" align=\"middle\" width=\"24\" height=\"24\">")
"<img src=\"" + emoji.static_url +
"\" align=\"top\" width=\"2em\" height=\"2em\" alt=" + emoji.shortcode + ">")
}
return item;
......
......@@ -135,7 +135,7 @@ Page {
anchors.centerIn: parent
id: videoError
width: parent.width - 2*Theme.paddingMedium
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
height: contentHeight
visible: false;
font.pixelSize: Theme.fontSizeSmall;
......
......@@ -170,7 +170,7 @@ BackgroundItem {
}
text: content
textFormat: Text.StyledText
textFormat: Text.RichText
linkColor : Theme.highlightColor
wrapMode: Text.Wrap
maximumLineCount: 6
......
......@@ -145,8 +145,8 @@ BackgroundItem {
}
text: content.replace(new RegExp("<a ", 'g'), '<a style="text-decoration: none; color:'+(pressed ? Theme.secondaryColor : Theme.highlightColor)+'" ')
linkColor : Theme.highlightColor
wrapMode: Text.WordWrap
textFormat: Text.StyledText
wrapMode: Text.Wrap
textFormat: Text.RichText
font.pixelSize: Theme.fontSizeSmall
color: (pressed ? Theme.highlightColor : (!highlight ? Theme.primaryColor : Theme.secondaryColor))
Rectangle {
......@@ -170,7 +170,7 @@ BackgroundItem {
width: parent.width
truncationMode: TruncationMode.Fade
color: Theme.highlightColor
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
text: model.status_spoiler_text
}
MouseArea {
......
* Fri Feb 07 2020 Haelwenn (lanodan) Monnier <contact+kyclos@hacktivis.me> 0.2.1-0
- Fix application initialisation of a new profile
- Fix custom emojis sizing
- Fix wrapping to be able to break words
- Fix renderer to use Qt HTML4 subset rather than HTML-like markup
* Mon Jan 27 2020 Haelwenn (lanodan) Monnier <contact+kyclos@hacktivis.me> 0.2.0-0
- Hide status header on mentions and regular posts
- Use the instance configured character limit or fallback to 5000
......
......@@ -13,7 +13,7 @@ Name: harbour-kyclos
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Kyclos
Version: 0.2.0
Version: 0.2.1
Release: 0
Group: Applications/Internet
License: GPL-3
......
Name: harbour-kyclos
Summary: Kyclos
Version: 0.2.0
Version: 0.2.1
Release: 0
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
......