Commit 2b94402e authored by Thomas BOUTROUE's avatar Thomas BOUTROUE

Fix some package sanity issues

parent af2d1489
......@@ -96,28 +96,28 @@ DISTFILES += \
$$PWD/dist/telegrame_im_exists.ini \
$$PWD/dist/telegrame_im_fg.ini
target.files = $${TARGET}
target.path = /usr/bin
target.files = $${TARGET}
target.path = /usr/bin
desktop.files = $$PWD/$${TARGET}.desktop
desktop.path = /usr/share/applications
desktop.files = $$PWD/$${TARGET}.desktop
desktop.path = /usr/share/applications
icon86.files = $$PWD/icons/86x86/$${TARGET}.png
icon86.path = /usr/share/icons/hicolor/86x86/apps
icon86.files = $$PWD/icons/86x86/$${TARGET}.png
icon86.path = /usr/share/icons/hicolor/86x86/apps
icon108.files = $$PWD/icons/108x108/$${TARGET}.png
icon108.path = /usr/share/icons/hicolor/108x108/apps
icon108.files = $$PWD/icons/108x108/$${TARGET}.png
icon108.path = /usr/share/icons/hicolor/108x108/apps
icon128.files = $$PWD/icons/128x128/$${TARGET}.png
icon128.path = /usr/share/icons/hicolor/128x128/apps
icon128.files = $$PWD/icons/128x128/$${TARGET}.png
icon128.path = /usr/share/icons/hicolor/128x128/apps
icon256.files = $$PWD/icons/256x256/$${TARGET}.png
icon256.path = /usr/share/icons/hicolor/256x256/apps
icon172.files = $$PWD/icons/172x172/$${TARGET}.png
icon172.path = /usr/share/icons/hicolor/172x172/apps
notificationcategories.files = $$PWD/dist/x-telegrame.im.conf $$PWD/dist/x-telegrame.im.fg.conf
notificationcategories.path = /usr/share/lipstick/notificationcategories
notificationcategories.files = $$PWD/dist/x-telegrame.im.conf $$PWD/dist/x-telegrame.im.fg.conf
notificationcategories.path = /usr/share/lipstick/notificationcategories
events.files = $$PWD/dist/telegrame_im.ini $$PWD/dist/telegrame_im_exists.ini $$PWD/dist/telegrame_im_fg.ini
events.path = /usr/share/ngfd/events.d
events.files = $$PWD/dist/telegrame_im.ini $$PWD/dist/telegrame_im_exists.ini $$PWD/dist/telegrame_im_fg.ini
events.path = /usr/share/ngfd/events.d
INSTALLS += target desktop icon86 icon108 icon128 icon256 notificationcategories events
INSTALLS += target desktop icon86 icon108 icon128 icon172 notificationcategories events
......@@ -518,7 +518,7 @@ ApplicationWindow {
}
readonly property string pathRoot : "file:///";
readonly property string pathHome : "file:///home/nemo";
readonly property string pathHome : FileSystem.urlFromPath (FileSystem.homePath);
readonly property string limitedTo : (Helpers.limitFilePickerToHome ? pathHome : pathRoot);
}
delegate: MouseArea {
......
......@@ -473,20 +473,28 @@ Page {
}
}
Rectangle {
color: Theme.rgba (Theme.secondaryColor, 0.35);
radius: (Theme.iconSizeMedium * 0.5);
color: "transparent";
radius: (height * 0.5);
visible: (delegateChat.chatItem.unreadCount > 0);
implicitWidth: Theme.iconSizeMedium;
implicitHeight: Theme.iconSizeMedium;
border {
width: 1;
color: Theme.rgba (lblChatCount.color, 0.65);
}
implicitWidth: Math.max (lblChatCount.implicitWidth + lblChatCount.anchors.margins * 2, implicitHeight);
implicitHeight: (lblChatCount.implicitHeight + lblChatCount.anchors.margins * 2);
anchors.verticalCenter: parent.verticalCenter;
LabelFixed {
id: lblChatCount;
text: delegateChat.chatItem.unreadCount;
color: ((delegateChat.chatItem &&
delegateChat.chatItem.notificationSettings &&
delegateChat.chatItem.notificationSettings.muteFor > 0)
? Theme.secondaryColor
: Theme.highlightColor);
font.bold: true;
font.pixelSize: Theme.fontSizeSmall;
anchors.margins: Theme.paddingSmall;
anchors.centerIn: parent;
}
}
......
......@@ -611,9 +611,9 @@ void QtTdLibGlobal::sendMessageEdit (QtTdLibChat * chatItem, const QString & tex
set_editingMessageId (QString { });
}
static const QString DIR_PHOTOS { QStringLiteral ("/home/nemo/Pictures/Telegrame") };
static const QString DIR_VIDEOS { QStringLiteral ("/home/nemo/Videos/Telegrame") };
static const QString DIR_DOWNLOADS { QStringLiteral ("/home/nemo/Downloads/Telegrame") };
static const QString DIR_PHOTOS { QDir::homePath () % QStringLiteral ("/Pictures/Telegrame") };
static const QString DIR_VIDEOS { QDir::homePath () % QStringLiteral ("/Videos/Telegrame") };
static const QString DIR_DOWNLOADS { QDir::homePath () % QStringLiteral ("/Downloads/Telegrame") };
void QtTdLibGlobal::savePhotoToGallery (QtTdLibFile * fileItem) {
if (fileItem != Q_NULLPTR &&
......@@ -875,8 +875,8 @@ void QtTdLibGlobal::sendMessageDocument (QtTdLibChat * chatItem, const QString &
bool QtTdLibGlobal::startRecordingAudio (void) {
if (m_audioRecorder->status () == QMediaRecorder::LoadedStatus) {
QDir ().mkpath ("/home/nemo/.telegrame/recordings");
m_audioRecorder->setOutputLocation (QUrl ("file:///home/nemo/.telegrame/recordings/rec_" % QDateTime::currentDateTimeUtc ().toString ("yyyy-MM-dd_hh-mm-ss-zzz") % ".wav"));
QDir ().mkpath (QDir::homePath () % QStringLiteral ("/.telegrame/recordings"));
m_audioRecorder->setOutputLocation (QUrl::fromLocalFile (QDir::homePath () % QStringLiteral ("/.telegrame/recordings/rec_") % QDateTime::currentDateTimeUtc ().toString ("yyyy-MM-dd_hh-mm-ss-zzz") % ".wav"));
m_audioRecorder->record ();
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment