summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Fedoskin <afedoskin3@gmail.com>2016-09-20 18:09:36 (GMT)
committerArtem Fedoskin <afedoskin3@gmail.com>2016-09-20 18:09:36 (GMT)
commit7d0b855e0cc2c9229441ca2749525f8ab01222c1 (patch)
tree9ec8ddc7c6e82f2334b6098cc0915386e7e95a2d
parent950a62696ffc456c51d279ea814969b20c64627e (diff)
KStars Lite. Added "Find Object" icon to bottom drawer
-rw-r--r--kstars/kstarslite/qml/images/CMakeLists.txt4
-rw-r--r--kstars/kstarslite/qml/images/edit-find.pngbin0 -> 627 bytes
-rw-r--r--kstars/kstarslite/qml/images/edit-find@2x.pngbin0 -> 1339 bytes
-rw-r--r--kstars/kstarslite/qml/images/edit-find@3x.pngbin0 -> 2014 bytes
-rw-r--r--kstars/kstarslite/qml/images/edit-find@4x.pngbin0 -> 2798 bytes
-rw-r--r--kstars/kstarslite/qml/images/svg/edit-find.svg127
-rw-r--r--kstars/kstarslite/qml/modules/BottomMenu.qml40
7 files changed, 169 insertions, 2 deletions
diff --git a/kstars/kstarslite/qml/images/CMakeLists.txt b/kstars/kstarslite/qml/images/CMakeLists.txt
index e41dee3..d28c45f 100644
--- a/kstars/kstarslite/qml/images/CMakeLists.txt
+++ b/kstars/kstarslite/qml/images/CMakeLists.txt
@@ -124,4 +124,8 @@ install( FILES
tutorial-arrow-vertical@2x.png
tutorial-arrow-vertical@3x.png
tutorial-arrow-vertical@4x.png
+ edit-find.png
+ edit-find@2x.png
+ edit-find@3x.png
+ edit-find@4x.png
DESTINATION ${KDE_INSTALL_DATADIR}/kstars/kstarslite/qml/images )
diff --git a/kstars/kstarslite/qml/images/edit-find.png b/kstars/kstarslite/qml/images/edit-find.png
new file mode 100644
index 0000000..3b94755
--- /dev/null
+++ b/kstars/kstarslite/qml/images/edit-find.png
Binary files differ
diff --git a/kstars/kstarslite/qml/images/edit-find@2x.png b/kstars/kstarslite/qml/images/edit-find@2x.png
new file mode 100644
index 0000000..fd2e6ae
--- /dev/null
+++ b/kstars/kstarslite/qml/images/edit-find@2x.png
Binary files differ
diff --git a/kstars/kstarslite/qml/images/edit-find@3x.png b/kstars/kstarslite/qml/images/edit-find@3x.png
new file mode 100644
index 0000000..ab4be5a
--- /dev/null
+++ b/kstars/kstarslite/qml/images/edit-find@3x.png
Binary files differ
diff --git a/kstars/kstarslite/qml/images/edit-find@4x.png b/kstars/kstarslite/qml/images/edit-find@4x.png
new file mode 100644
index 0000000..83b8596
--- /dev/null
+++ b/kstars/kstarslite/qml/images/edit-find@4x.png
Binary files differ
diff --git a/kstars/kstarslite/qml/images/svg/edit-find.svg b/kstars/kstarslite/qml/images/svg/edit-find.svg
new file mode 100644
index 0000000..e4704d3
--- /dev/null
+++ b/kstars/kstarslite/qml/images/svg/edit-find.svg
@@ -0,0 +1,127 @@
+<?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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="24"
+ height="24"
+ id="svg3869"
+ version="1.1"
+ inkscape:version="0.91 r13725"
+ sodipodi:docname="edit-find.svg">
+ <defs
+ id="defs3871">
+ <linearGradient
+ id="linearGradient3257">
+ <stop
+ offset="0"
+ style="stop-color:#a50000;stop-opacity:1"
+ id="stop3259" />
+ <stop
+ offset="1"
+ style="stop-color:#e73800;stop-opacity:1"
+ id="stop3261" />
+ </linearGradient>
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="22.627416"
+ inkscape:cx="5.4926209"
+ inkscape:cy="10.264796"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0"
+ inkscape:window-width="1366"
+ inkscape:window-height="709"
+ inkscape:window-x="-4"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:showpageshadow="false"
+ inkscape:object-nodes="true"
+ inkscape:snap-bbox="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid4132" />
+ <sodipodi:guide
+ position="4,18"
+ orientation="18,0"
+ id="guide4138" />
+ <sodipodi:guide
+ position="5,3"
+ orientation="0,18"
+ id="guide4140" />
+ <sodipodi:guide
+ position="20,2.0000174"
+ orientation="-18,0"
+ id="guide4142" />
+ <sodipodi:guide
+ position="2,21"
+ orientation="0,-18"
+ id="guide4144" />
+ <sodipodi:guide
+ position="3,19.000017"
+ orientation="16,0"
+ id="guide4146" />
+ <sodipodi:guide
+ position="2,4"
+ orientation="0,16"
+ id="guide4148" />
+ <sodipodi:guide
+ position="21,20"
+ orientation="-16,0"
+ id="guide4150" />
+ <sodipodi:guide
+ position="2,20"
+ orientation="0,-16"
+ id="guide4152" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata3874">
+ <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(-326,-532.3622)">
+ <g
+ transform="translate(327,-497)"
+ id="layer1-3"
+ inkscape:label="Capa 1">
+ <path
+ inkscape:connector-curvature="0"
+ id="path4146"
+ d="m 12.29286,1043.3622 0.707107,-0.7071 6.000032,6 -0.707075,0.7071 z"
+ style="fill:#f2f2f2;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="rect4095"
+ transform="translate(0,1030.3622)"
+ d="M 9,3 C 5.6759952,3 3,5.6759952 3,9 c 0,3.324005 2.6759952,6 6,6 3.324005,0 6,-2.675995 6,-6 C 15,5.6759952 12.324005,3 9,3 Z m 0,1 c 2.770005,0 5,2.2299952 5,5 0,2.770005 -2.229995,5 -5,5 C 6.2299952,14 4,11.770005 4,9 4,6.2299952 6.2299952,4 9,4 Z"
+ style="fill:#f2f2f2;fill-opacity:1;stroke:none"
+ inkscape:connector-curvature="0" />
+ </g>
+ </g>
+</svg>
diff --git a/kstars/kstarslite/qml/modules/BottomMenu.qml b/kstars/kstarslite/qml/modules/BottomMenu.qml
index 982bd94..6dbbd3c 100644
--- a/kstars/kstarslite/qml/modules/BottomMenu.qml
+++ b/kstars/kstarslite/qml/modules/BottomMenu.qml
@@ -215,15 +215,34 @@ ColumnLayout {
}
}
+ RowLayout {
+ anchors.right: parent.right
BottomMenuButton {
onClicked: {
stackView.push(timePage)
}
visible: isWindowWidthSmall
- anchors.right: parent.right
iconSrc: "../../images/appointment-new.png"
}
+
+ Rectangle {
+ id: separatorSearchSmall
+ height: decreaseUnitLandscape.height*0.75
+ color: num.sysPalette.light
+ width: 1
+ visible: isWindowWidthSmall
+ }
+
+ BottomMenuButton {
+ onClicked: {
+ stackView.push(findDialog)
+ }
+ visible: isWindowWidthSmall
+
+ iconSrc: "../../images/edit-find.png"
+ }
+ }
}
RowLayout {
@@ -264,7 +283,7 @@ ColumnLayout {
}
Rectangle {
- id: separatorBar
+ id: separator
height: decreaseUnitLandscape.height*0.75
color: num.sysPalette.light
width: 1
@@ -279,6 +298,23 @@ ColumnLayout {
iconSrc: "../../images/appointment-new.png"
}
+
+ Rectangle {
+ id: separatorSearchLarge
+ height: decreaseUnitLandscape.height*0.75
+ color: num.sysPalette.light
+ width: 1
+ visible: !isWindowWidthSmall
+ }
+
+ BottomMenuButton {
+ onClicked: {
+ stackView.push(findDialog)
+ }
+ visible: !isWindowWidthSmall
+
+ iconSrc: "../../images/edit-find.png"
+ }
}
}
}