Commit 0bad8eef authored by Camilo higuita's avatar Camilo higuita

add installation steps and desktop file and icon

parent d4a08c9c
......@@ -8,5 +8,6 @@
<file>E-reading.png</file>
<file>Astronaut.png</file>
<file>Faq.png</file>
<file>buho.png</file>
</qresource>
</RCC>
This diff is collapsed.
buho.png

868 Bytes

......@@ -77,3 +77,4 @@ INCLUDEPATH += \
src/utils/ \
src/
include($$PWD/install.pri)
isEmpty(PREFIX){
PREFIX = /usr
}
target.path = $${PREFIX}/bin/
desktop_files.path = $${PREFIX}/share/applications/
desktop_files.files = $$PWD/*.desktop
#services.path = $${PREFIX}/share/dbus-1/services
#services.files = $$PWD/data/*.service
#dman.path = $${PREFIX}/share/dman/
#dman.files = $$PWD/dman/*
#translations.path = $${PREFIX}/share/$${TARGET}/translations
#translations.files = $$PWD/translations/*.qm
hicolor.path = $${PREFIX}/share/icons/hicolor/scalable/apps
hicolor.files = $$PWD/assets/buho.svg
INSTALLS += target desktop_files hicolor
#GitVersion = $$system(git rev-parse HEAD)
#DEFINES += GIT_VERSION=\\\"$$GitVersion\\\"
......@@ -35,6 +35,11 @@ int main(int argc, char *argv[])
QtWebEngine::initialize();
#endif
app.setApplicationName(OWL::App);
app.setApplicationVersion(OWL::version);
app.setApplicationDisplayName(OWL::App);
app.setWindowIcon(QIcon(":/buho.png"));
#ifdef STATIC_KIRIGAMI
KirigamiPlugin::getInstance().registerTypes();
#endif
......
......@@ -16,6 +16,7 @@ Maui.ApplicationWindow
/***** PROPS *****/
floatingBar: true
footBarOverlap: true
allowRiseContent: false
accentColor : "#8981d8"
menuDrawer.bannerImageSource: "qrc:/Faq.png"
......@@ -131,6 +132,7 @@ Maui.ApplicationWindow
anchors.fill: parent
currentIndex: currentView
onCurrentIndexChanged: currentView = currentIndex
interactive: isMobile
NotesView
{
......
[Desktop Entry]
Name=Buho
Comment=Note taking app
TryExec=buho
Exec=buho %U
Terminal=false
Type=Application
Categories=Qt;Utility;KDE;
StartupNotify=true
Icon=buho
GenericName=Note Taker
......@@ -9,7 +9,7 @@ Maui.Page
property alias cardsView : cardsView
headBarVisible: false
margins: isMobile ? space.big : space.enormus
margins: isMobile ? space.big : space.enormous
CardsView
......
......@@ -13,7 +13,7 @@ Maui.Page
signal linkClicked(var link)
headBarVisible: !cardsView.holder.visible
margins: isMobile ? space.big : space.enormus
margins: isMobile ? space.big : space.enormous
headBarExit: false
headBarTitle : cardsView.count + " links"
headBar.leftContent: [
......
......@@ -71,7 +71,7 @@ Maui.Page
{
id: pinnedList
visible: pinButton.checked
Layout.margins: isMobile ? space.big : space.enormus
Layout.margins: isMobile ? space.big : space.enormous
Layout.alignment: Qt.AlignVCenter
Layout.fillWidth: true
height: cardsView.itemHeight
......@@ -94,7 +94,7 @@ Maui.Page
Layout.fillHeight: true
Layout.fillWidth: true
width: parent.width
Layout.margins: isMobile ? space.big : space.enormus
Layout.margins: isMobile ? space.big : space.enormous
onItemClicked: noteClicked(cardsView.model.get(index))
holder.emoji: "qrc:/Type.png"
holder.emojiSize: iconSizes.huge
......
......@@ -90,9 +90,12 @@ ItemDelegate
Layout.alignment: Qt.AlignLeft
Layout.fillWidth: true
Layout.fillHeight: true
text: model.title
color: Qt.darker(model.color, 3)
elide: Qt.ElideRight
wrapMode: TextEdit.WrapAnywhere
font.weight: Font.Bold
font.bold: true
......@@ -115,6 +118,7 @@ ItemDelegate
enabled: false
text: model.body
color: Qt.darker(model.color, 3)
wrapMode: TextEdit.WrapAnywhere
textFormat: TextEdit.RichText
font.pointSize: fontSizes.big
......@@ -125,51 +129,48 @@ ItemDelegate
}
}
Item
Image
{
id: preview
id: img
Layout.fillHeight: true
Layout.fillWidth: true
Layout.margins: unit
Layout.alignment: Qt.AlignCenter
clip: true
Layout.topMargin: space.medium
visible: img.status === Image.Ready
Image
visible: status === Image.Ready && typeof model.preview !== 'undefined'
asynchronous: true
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
height: parent.height
width: parent.width
sourceSize.height: height
sourceSize.width: width
fillMode: Image.PreserveAspectCrop
source: "file://"+encodeURIComponent( model.preview ) || ""
layer.enabled: img.visible
layer.effect: OpacityMask
{
id: img
visible: status === Image.Ready
asynchronous: true
anchors.centerIn: parent
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
height: parent.height
width: parent.width
sourceSize.height: height
sourceSize.width: width
fillMode: Image.PreserveAspectCrop
source: "file://"+encodeURIComponent( model.preview ) || ""
layer.enabled: img.visible
layer.effect: OpacityMask
maskSource: Item
{
maskSource: Item
width: img.width
height: img.height
Rectangle
{
anchors.centerIn: parent
width: img.width
height: img.height
Rectangle
{
anchors.centerIn: parent
width: img.width
height: img.height
radius: cardRadius
// radius: Math.min(width, height)
}
radius: cardRadius
// radius: Math.min(width, height)
}
}
}
}
}
function update(item)
......
......@@ -121,6 +121,7 @@ Popup
id: previewList
anchors.fill: parent
anchors.centerIn: parent
visible: count > 0
clip: true
snapMode: ListView.SnapOneItem
orientation: ListView.Horizontal
......@@ -232,10 +233,10 @@ Popup
}
function fill(note)
function fill(link)
{
title.text = note.title[0]
populatePreviews(note.image)
title.text = link.title[0]
populatePreviews(link.image)
open()
}
......@@ -243,7 +244,10 @@ Popup
function populatePreviews(imgs)
{
for(var i in imgs)
{
console.log("PREVIEW:", imgs[i])
previewList.model.append({url : imgs[i]})
}
}
function packLink()
......@@ -251,7 +255,7 @@ Popup
var data = ({
link : link.text,
title: title.text.trim(),
preview: previewList.model.get(previewList.currentIndex).url,
preview: previewList.count > 0 ? previewList.model.get(previewList.currentIndex).url : "",
color: selectedColor,
tag: tagBar.getTags(),
pin: pinButton.checked,
......
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