Skip to content
Snippets Groups Projects
Commit f052bdf1 authored by Burak Hançerli's avatar Burak Hançerli :headphones:
Browse files

Popup for showing the current operation and new app icon

parent 972d7d33
No related branches found
No related tags found
1 merge request!61Popup for showing the current operation and new app icon
Pipeline #77254 passed
Showing
with 121 additions and 4 deletions
......@@ -43,7 +43,7 @@ qt_target_qml_sources(${PROJECT_NAME}
"/"
RESOURCES
fonts/QtOneIconFont.ttf
images/appicon.png
images/appicon.svg
)
target_link_libraries(${PROJECT_NAME} PRIVATE
......
......@@ -53,7 +53,7 @@ Flickable {
Image {
id: qdsLogo
source: "/images/appicon.png"
source: "/images/appicon.svg"
fillMode: Image.PreserveAspectFit
Layout.preferredWidth: 64
Layout.preferredHeight: 64
......
......@@ -107,4 +107,66 @@ Rectangle {
}
}
}
Popup {
id: popup
width: 250
height: 75
modal: true
visible: false
anchors.centerIn: parent
Rectangle {
anchors.fill: parent
color: "white"
Text {
id: popupText
anchors.centerIn: parent
}
}
ProgressBar {
id: progressBar
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
height: 2
visible: true
indeterminate: true
}
Timer {
id: timer
repeat: false
running: popup.visible
onTriggered: {
popup.visible = false
}
}
Connections {
target: backend
function onPopupOpen(text, timeout) {
popup.visible = true
popupText.text = text
timer.interval = timeout
timer.running = timeout <= 0
}
function onPopupClose() {
popup.visible = false
}
function onPopupTextChanged(text) {
console.log("Popup text changed", text)
popupText.text = text
}
function onPopupProgressIndeterminateChanged(indeterminate) {
progressBar.indeterminate = indeterminate
}
}
}
}
......@@ -3,10 +3,11 @@
android:installLocation="auto" android:versionCode="@GOOGLE_PLAY_APP_VERSION@"
android:versionName="@CMAKE_VAR_GIT_VERSION@">
<!-- %%INSERT_PERMISSIONS -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- %%INSERT_FEATURES -->
<supports-screens android:anyDensity="true" android:largeScreens="true"
android:normalScreens="true" android:smallScreens="true" />
<application android:icon="@mipmap/app_icon"
<application android:icon="@mipmap/ic_launcher"
android:name="org.qtproject.qt.android.bindings.QtApplication"
android:extractNativeLibs="true" android:hardwareAccelerated="true"
android:label="Qt UI Viewer" android:requestLegacyExternalStorage="true"
......@@ -16,7 +17,7 @@
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density"
android:label="Qt UI Viewer" android:launchMode="singleTask"
android:screenOrientation="unspecified" android:exported="true"
android:windowSoftInputMode="adjustResize">
android:windowSoftInputMode="adjustResize" android:keepScreenOn="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.99"
android:scaleY="0.99"
android:translateX="0.54"
android:translateY="0.54">
<path
android:pathData="M0,13.5V108H94.5L108,94.5V0H13.5L0,13.5Z">
<aapt:attr name="android:fillColor">
<gradient
android:startX="104.99"
android:startY="-26.62"
android:endX="11.55"
android:endY="126.08"
android:type="linear">
<item android:offset="0.14" android:color="#FF014B57"/>
<item android:offset="1" android:color="#FF0F7080"/>
</gradient>
</aapt:attr>
</path>
</group>
</vector>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.66"
android:scaleY="0.66"
android:translateX="17.37"
android:translateY="17.04">
<group>
<clip-path
android:pathData="M0.25,0.13h107.75v107.75h-107.75z"/>
<path
android:pathData="M28.84,62.54C28.84,67.29 31.25,69.66 36.08,69.66C40.91,69.66 43.33,67.29 43.33,62.54V35.42H51.59V62.36C51.59,67.35 50.29,71.02 47.69,73.37C45.14,75.69 41.27,76.84 36.08,76.84C30.89,76.84 27,75.69 24.41,73.37C21.85,71.02 20.58,67.35 20.58,62.36V35.42H28.84V62.54ZM82.13,35.42H90.81L81.35,76.13H66.09L56.63,35.42H65.31L72.38,68.94H75.07L82.13,35.42Z"
android:fillColor="#2CDE85"/>
</group>
</group>
</vector>
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
\ No newline at end of file
src/android/res/mipmap-hdpi/app_icon.png

4.36 KiB

src/android/res/mipmap-hdpi/ic_launcher.webp

2.04 KiB

src/android/res/mipmap-hdpi/ic_launcher_round.webp

3.5 KiB

src/android/res/mipmap-ldpi/app_icon.png

798 B

src/android/res/mipmap-mdpi/app_icon.png

1.72 KiB

src/android/res/mipmap-mdpi/ic_launcher.webp

1.4 KiB

src/android/res/mipmap-mdpi/ic_launcher_round.webp

2.29 KiB

src/android/res/mipmap-xhdpi/app_icon.png

6.22 KiB

src/android/res/mipmap-xhdpi/ic_launcher.webp

2.62 KiB

src/android/res/mipmap-xhdpi/ic_launcher_round.webp

4.84 KiB

src/android/res/mipmap-xxhdpi/app_icon.png

13 KiB

src/android/res/mipmap-xxhdpi/ic_launcher.webp

3.79 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment