summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Fedoskin <afedoskin3@gmail.com>2016-11-10 17:08:00 (GMT)
committerArtem Fedoskin <afedoskin3@gmail.com>2016-11-10 18:37:26 (GMT)
commit3ef929f2b24781026e510d9ae57e743c09fc6705 (patch)
tree8b633c3f506de6c36b53fa861cf1456311cbf513
parentc51ce42eaf070dc166963815fb6e92ac2789342a (diff)
KStars Lite - added splash screen right after startup
-rw-r--r--apk/res/drawable-hdpi/kde_logo.pngbin0 -> 1705 bytes
-rw-r--r--apk/res/drawable-hdpi/splash_bg.jpegbin0 -> 388184 bytes
-rw-r--r--apk/res/drawable-hdpi/splash_logo.pngbin0 -> 22744 bytes
-rw-r--r--apk/res/drawable-ldpi/kde_logo.pngbin0 -> 824 bytes
-rw-r--r--apk/res/drawable-ldpi/splash_bg.jpegbin0 -> 109641 bytes
-rw-r--r--apk/res/drawable-ldpi/splash_logo.pngbin0 -> 11170 bytes
-rw-r--r--apk/res/drawable-mdpi/kde_logo.pngbin0 -> 990 bytes
-rw-r--r--apk/res/drawable-mdpi/splash_bg.jpegbin0 -> 186859 bytes
-rw-r--r--apk/res/drawable-mdpi/splash_logo.pngbin0 -> 15532 bytes
-rw-r--r--apk/res/drawable-xhdpi/kde_logo.pngbin0 -> 2344 bytes
-rw-r--r--apk/res/drawable-xhdpi/splash_bg.jpegbin0 -> 692526 bytes
-rw-r--r--apk/res/drawable-xhdpi/splash_logo.pngbin0 -> 31072 bytes
-rw-r--r--apk/res/drawable-xxhdpi/kde_logo.pngbin0 -> 3217 bytes
-rw-r--r--apk/res/drawable-xxhdpi/splash_bg.jpegbin0 -> 1400302 bytes
-rw-r--r--apk/res/drawable-xxhdpi/splash_logo.pngbin0 -> 49076 bytes
-rw-r--r--apk/res/drawable-xxxhdpi/kde_logo.pngbin0 -> 5126 bytes
-rw-r--r--apk/res/drawable-xxxhdpi/splash_bg.jpegbin0 -> 2453187 bytes
-rw-r--r--apk/res/drawable-xxxhdpi/splash_logo.pngbin0 -> 66391 bytes
-rw-r--r--apk/res/drawable/splash.xml12
-rw-r--r--kstars/kstarslite/qml/images/CMakeLists.txt5
-rw-r--r--kstars/kstarslite/qml/images/bg.pngbin14415447 -> 0 bytes
-rw-r--r--kstars/kstarslite/qml/images/splash_bg.jpegbin0 -> 186859 bytes
-rw-r--r--kstars/kstarslite/qml/images/splash_bg@2x.jpegbin0 -> 692526 bytes
-rw-r--r--kstars/kstarslite/qml/images/splash_bg@3x.jpegbin0 -> 1400302 bytes
-rw-r--r--kstars/kstarslite/qml/images/splash_bg@4x.jpegbin0 -> 2453187 bytes
-rw-r--r--kstars/kstarslite/qml/modules/Splash.qml2
26 files changed, 13 insertions, 6 deletions
diff --git a/apk/res/drawable-hdpi/kde_logo.png b/apk/res/drawable-hdpi/kde_logo.png
new file mode 100644
index 0000000..951cfd9
--- /dev/null
+++ b/apk/res/drawable-hdpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-hdpi/splash_bg.jpeg b/apk/res/drawable-hdpi/splash_bg.jpeg
new file mode 100644
index 0000000..df9e1f9
--- /dev/null
+++ b/apk/res/drawable-hdpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-hdpi/splash_logo.png b/apk/res/drawable-hdpi/splash_logo.png
new file mode 100644
index 0000000..4036f4b
--- /dev/null
+++ b/apk/res/drawable-hdpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable-ldpi/kde_logo.png b/apk/res/drawable-ldpi/kde_logo.png
new file mode 100644
index 0000000..3d1165f
--- /dev/null
+++ b/apk/res/drawable-ldpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-ldpi/splash_bg.jpeg b/apk/res/drawable-ldpi/splash_bg.jpeg
new file mode 100644
index 0000000..d6de754
--- /dev/null
+++ b/apk/res/drawable-ldpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-ldpi/splash_logo.png b/apk/res/drawable-ldpi/splash_logo.png
new file mode 100644
index 0000000..2f6c9c2
--- /dev/null
+++ b/apk/res/drawable-ldpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable-mdpi/kde_logo.png b/apk/res/drawable-mdpi/kde_logo.png
new file mode 100644
index 0000000..40402e7
--- /dev/null
+++ b/apk/res/drawable-mdpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-mdpi/splash_bg.jpeg b/apk/res/drawable-mdpi/splash_bg.jpeg
new file mode 100644
index 0000000..feba541
--- /dev/null
+++ b/apk/res/drawable-mdpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-mdpi/splash_logo.png b/apk/res/drawable-mdpi/splash_logo.png
new file mode 100644
index 0000000..b3ce7ea
--- /dev/null
+++ b/apk/res/drawable-mdpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable-xhdpi/kde_logo.png b/apk/res/drawable-xhdpi/kde_logo.png
new file mode 100644
index 0000000..4d5ced3
--- /dev/null
+++ b/apk/res/drawable-xhdpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-xhdpi/splash_bg.jpeg b/apk/res/drawable-xhdpi/splash_bg.jpeg
new file mode 100644
index 0000000..53de3fe
--- /dev/null
+++ b/apk/res/drawable-xhdpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-xhdpi/splash_logo.png b/apk/res/drawable-xhdpi/splash_logo.png
new file mode 100644
index 0000000..47be1e0
--- /dev/null
+++ b/apk/res/drawable-xhdpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable-xxhdpi/kde_logo.png b/apk/res/drawable-xxhdpi/kde_logo.png
new file mode 100644
index 0000000..5bce8a6
--- /dev/null
+++ b/apk/res/drawable-xxhdpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-xxhdpi/splash_bg.jpeg b/apk/res/drawable-xxhdpi/splash_bg.jpeg
new file mode 100644
index 0000000..9ca6ace
--- /dev/null
+++ b/apk/res/drawable-xxhdpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-xxhdpi/splash_logo.png b/apk/res/drawable-xxhdpi/splash_logo.png
new file mode 100644
index 0000000..882ada8
--- /dev/null
+++ b/apk/res/drawable-xxhdpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable-xxxhdpi/kde_logo.png b/apk/res/drawable-xxxhdpi/kde_logo.png
new file mode 100644
index 0000000..1da4d54
--- /dev/null
+++ b/apk/res/drawable-xxxhdpi/kde_logo.png
Binary files differ
diff --git a/apk/res/drawable-xxxhdpi/splash_bg.jpeg b/apk/res/drawable-xxxhdpi/splash_bg.jpeg
new file mode 100644
index 0000000..6be9c73
--- /dev/null
+++ b/apk/res/drawable-xxxhdpi/splash_bg.jpeg
Binary files differ
diff --git a/apk/res/drawable-xxxhdpi/splash_logo.png b/apk/res/drawable-xxxhdpi/splash_logo.png
new file mode 100644
index 0000000..c672c4d
--- /dev/null
+++ b/apk/res/drawable-xxxhdpi/splash_logo.png
Binary files differ
diff --git a/apk/res/drawable/splash.xml b/apk/res/drawable/splash.xml
index fa8ee8b..6580543 100644
--- a/apk/res/drawable/splash.xml
+++ b/apk/res/drawable/splash.xml
@@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
- <shape android:shape="rectangle" >
- <solid android:color="#000"/>
- </shape>
- </item>
+ <bitmap android:src="@drawable/splash_bg" android:gravity="bottom|center|fill_vertical" />
+ </item>
+ <item>
+ <bitmap android:src="@drawable/splash_logo" android:gravity="center" />
+ </item>
+ <item android:top="15dp" android:right="15dp">
+ <bitmap android:src="@drawable/kde_logo" android:gravity="top|right" />
+ </item>
</layer-list>
diff --git a/kstars/kstarslite/qml/images/CMakeLists.txt b/kstars/kstarslite/qml/images/CMakeLists.txt
index b8a1426..e16c83f 100644
--- a/kstars/kstarslite/qml/images/CMakeLists.txt
+++ b/kstars/kstarslite/qml/images/CMakeLists.txt
@@ -112,7 +112,10 @@ install( FILES
media-skip-forward@2x.png
media-skip-forward@3x.png
media-skip-forward@4x.png
- bg.png
+ splash_bg.jpeg
+ splash_bg@2x.jpeg
+ splash_bg@3x.jpeg
+ splash_bg@4x.jpeg
splash.png
splash@2x.png
splash@3x.png
diff --git a/kstars/kstarslite/qml/images/bg.png b/kstars/kstarslite/qml/images/bg.png
deleted file mode 100644
index 3b32f00..0000000
--- a/kstars/kstarslite/qml/images/bg.png
+++ /dev/null
Binary files differ
diff --git a/kstars/kstarslite/qml/images/splash_bg.jpeg b/kstars/kstarslite/qml/images/splash_bg.jpeg
new file mode 100644
index 0000000..feba541
--- /dev/null
+++ b/kstars/kstarslite/qml/images/splash_bg.jpeg
Binary files differ
diff --git a/kstars/kstarslite/qml/images/splash_bg@2x.jpeg b/kstars/kstarslite/qml/images/splash_bg@2x.jpeg
new file mode 100644
index 0000000..53de3fe
--- /dev/null
+++ b/kstars/kstarslite/qml/images/splash_bg@2x.jpeg
Binary files differ
diff --git a/kstars/kstarslite/qml/images/splash_bg@3x.jpeg b/kstars/kstarslite/qml/images/splash_bg@3x.jpeg
new file mode 100644
index 0000000..9ca6ace
--- /dev/null
+++ b/kstars/kstarslite/qml/images/splash_bg@3x.jpeg
Binary files differ
diff --git a/kstars/kstarslite/qml/images/splash_bg@4x.jpeg b/kstars/kstarslite/qml/images/splash_bg@4x.jpeg
new file mode 100644
index 0000000..6be9c73
--- /dev/null
+++ b/kstars/kstarslite/qml/images/splash_bg@4x.jpeg
Binary files differ
diff --git a/kstars/kstarslite/qml/modules/Splash.qml b/kstars/kstarslite/qml/modules/Splash.qml
index a7bcebd..9d56209 100644
--- a/kstars/kstarslite/qml/modules/Splash.qml
+++ b/kstars/kstarslite/qml/modules/Splash.qml
@@ -20,7 +20,7 @@ Rectangle {
Image {
id: splashBG
- source: "../images/bg.png"
+ source: "../images/splash_bg.jpeg"
anchors {
fill: parent
}