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>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="48"
height="48"
viewBox="0 0 48 48.000002"
id="svg2"
version="1.1"
inkscape:version="0.92.2 2405546, 2018-03-11"
sodipodi:docname="buho.svg"
inkscape:export-filename="/home/camilo/Coding/qml/pix-qml/assets/pix.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<defs
id="defs4">
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter1819-6-68"
x="-0.018159701"
width="1.0363194"
y="-0.057481889"
height="1.1149638">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.071856816"
id="feGaussianBlur1821-1-92" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter1819-6-6-4"
x="-0.018159701"
width="1.0363194"
y="-0.057481889"
height="1.1149638">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.071856816"
id="feGaussianBlur1821-1-9-9" />
</filter>
<filter
inkscape:collect="always"
style="color-interpolation-filters:sRGB"
id="filter1819-6-7-4"
x="-0.018159701"
width="1.0363194"
y="-0.057481889"
height="1.1149638">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="0.071856816"
id="feGaussianBlur1821-1-4-8" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6568544"
inkscape:cx="-8.4049356"
inkscape:cy="39.166175"
inkscape:document-units="px"
inkscape:current-layer="g1613"
showgrid="false"
units="px"
inkscape:showpageshadow="false"
borderlayer="true"
inkscape:window-width="1280"
inkscape:window-height="1326"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:window-maximized="0"
showguides="false">
<inkscape:grid
type="xygrid"
id="grid4136" />
<sodipodi:guide
position="5,59.000069"
orientation="54,0"
id="guide4142"
inkscape:locked="false" />
<sodipodi:guide
position="5,5.0000688"
orientation="0,54"
id="guide4144"
inkscape:locked="false" />
<sodipodi:guide
position="59,5.0000688"
orientation="-54,0"
id="guide4146"
inkscape:locked="false" />
<sodipodi:guide
position="59,59.000069"
orientation="0,-54"
id="guide4148"
inkscape:locked="false" />
<sodipodi:guide
position="0,64.000069"
orientation="64,0"
id="guide4150"
inkscape:locked="false" />
<sodipodi:guide
position="0,6.875e-05"
orientation="0,64"
id="guide4152"
inkscape:locked="false" />
<sodipodi:guide
position="64,4.0000002"
orientation="-64,0"
id="guide4154"
inkscape:locked="false" />
<sodipodi:guide
position="64,64.000069"
orientation="0,-64"
id="guide4156"
inkscape:locked="false" />
</sodipodi:namedview>
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1074.5196)">
<g
id="g901"
transform="translate(147.2888,-63.331718)">
<g
transform="matrix(3.7795276,0,0,3.7795276,178.50099,966.42364)"
id="g1613">
<g
transform="matrix(1,0,0,1.0416455,-13.719763,-15.820247)"
id="g2352">
<g
inkscape:label="Layer 1"
id="layer1-7-3"
transform="matrix(0.26458333,0,0,0.25400516,-72.478785,58.73126)">
<image
width="48"
height="48"
preserveAspectRatio="none"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYAAAAGACAYAAACkx7W/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAB2HAAAdhwBp8J46gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAwZSURB VHic7dzhctu2FoVRxOn7v3Hs+yPlXBQFQLpJrEPutWY0omVZtpXp+UiQbmsAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHD4 9uof4Iul/b7A5328+gf4Kk8eiE/+3YCv9cgoPG1I7n6fp/2uwJ+zG/iPicFThuLs9xgfu/IcIM9s oI+PXXnO7dx9AO6G/JXt3WPAs50N9Svbq9e5hbsOviuD/9uwvXsukOts0H8M27Pnzj4u744DcDfM x+E/BuAsCECW1cAf78cIXD06KO1uw+/Knv7qNnvu6rWBZ1vtvc8G/ew2e+7qtcv669U/wEWrwX/c 97e3yWNnRwTjNvBsZ3v+q9t7+/cRwPi637rt0u4w9HZ7/avBv9q+cl4AyLBb758N/NX27Mhg9j3K qT74zob/2+R+9tjZkcDs+wHPdLb8MwtAfz977JYRqLwEtBv+q8E/3s6WhGbfC8gwDumzALy3/8+O 9+6+dc85tr91r99vl1I5AId++I9LO/3t++Sx2VJQawIAzANwbI/LPePtR/v/wG9/b78NX1t28B+q BmB2sna3t/99sb0LQH8/fl/guXZLQMf9LgA/2s9Zcdz3RwVHCMYIlIxBxQDsrvKZDf7v7Z+Dvw/A 1ZPAs4+B5zo7D9DvzR8DfTb8f0xe+1geOl6vbASqBWA2lGd7//2wn0VgdgRwdhkokGl3Gegx/PsZ Mhv+s1nSnxPon1cmAtUCcFhd5jnb+59FYLwiyOWfwMrZ5aDHPBmPAFavc3zNOF/K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/w5z1m4I/SBmTa7wt83mMHPgAAAAAAAAAA AAAAAAAAAAAAAAAA8Cr/A1FLviW2m7iwAAAAAElFTkSuQmCC "
id="image1206-14"
x="0"
y="0" />
<rect
ry="3"
y="6"
x="5"
height="38.000046"
width="38"
id="rect4272-9"
style="opacity:1;fill:#333333;fill-opacity:1;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
ry="2"
y="7"
x="6"
height="36"
width="36"
id="rect4213-2"
style="opacity:1;fill:#666666;fill-opacity:1;stroke:none;stroke-width:2.02837014;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<rect
ry="0.28171247"
rx="0.32349545"
y="66.421494"
x="-70.702904"
height="2.8831916"
width="9.129734"
id="rect1637-1"
style="opacity:1;fill:#dbdee3;fill-opacity:1;stroke:none;stroke-width:0.98731792;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
transform="matrix(0.96136352,0,0,0.96100428,-2.6594445,2.708648)"
ry="0.29314387"
rx="0.3364965"
y="64.918518"
x="-70.797302"
height="3.000186"
width="9.4966516"
id="rect1637-2-5-7"
style="opacity:0.30700001;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:1.02718937;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;filter:url(#filter1819-6-68)" />
<rect
ry="0.28171247"
rx="0.32349545"
y="64.823196"
x="-70.710045"
height="2.8831916"
width="9.129734"
id="rect1637-2-0-5-2"
style="opacity:1;fill:#ffeeaa;fill-opacity:1;stroke:none;stroke-width:0.98731792;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
transform="matrix(0.96136352,0,0,0.96100428,-2.6594445,2.708648)"
ry="0.29314387"
rx="0.3364965"
y="63.091797"
x="-70.799652"
height="3.000186"
width="9.4966516"
id="rect1637-2-5-3-2"
style="opacity:0.30700001;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:1.02718937;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;filter:url(#filter1819-6-6-4)" />
<rect
ry="0.28171247"
rx="0.32349545"
y="63.067711"
x="-70.712311"
height="2.8831916"
width="9.129734"
id="rect1637-2-0-5-7-6"
style="opacity:1;fill:#f4d7d7;fill-opacity:1;stroke:none;stroke-width:0.98731792;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
transform="matrix(0.96136352,0,0,0.96100428,-2.6594445,2.708648)"
ry="0.29314387"
rx="0.3364965"
y="61.29977"
x="-70.809113"
height="3.000186"
width="9.4966516"
id="rect1637-2-5-4-6"
style="opacity:0.30700001;fill:#1a1a1a;fill-opacity:1;stroke:none;stroke-width:1.02718937;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;filter:url(#filter1819-6-7-4)" />
<rect
ry="0.34708256"
rx="0.32349545"
y="60.676533"
x="-70.72139"
height="3.552223"
width="9.129734"
id="rect1637-2-0-5-3-1"
style="opacity:1;fill:#d7e3f4;fill-opacity:1;stroke:none;stroke-width:1.09589863;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
</g>
</g>
</g>
</svg>
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