Skip to content

Commit

Permalink
Update App icon & SplashScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinBoulongne committed Oct 8, 2024
1 parent df82d9a commit fe808b1
Show file tree
Hide file tree
Showing 27 changed files with 172 additions and 39 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ dependencies {

// Others
implementation(libs.kotlinx.serialization)
implementation(libs.androidx.core.splashscreen)

// Test
testImplementation(libs.junit)
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

Expand All @@ -34,7 +33,7 @@
<activity
android:name=".ui.MainActivity"
android:exported="true"
android:theme="@style/Theme.AndroidSwissTransfer">
android:theme="@style/Theme.AppStarting">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.activity.viewModels
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.infomaniak.multiplatform_swisstransfer.common.models.Theme
import com.infomaniak.swisstransfer.ui.screen.main.MainScreen
Expand All @@ -38,8 +39,9 @@ class MainActivity : ComponentActivity() {
private val settingsViewModel: SettingsViewModel by viewModels()

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
installSplashScreen()
enableEdgeToEdge()
super.onCreate(savedInstanceState)
setContent {
val appSettings by settingsViewModel.appSettingsFlow.collectAsStateWithLifecycle(null)
SwissTransferTheme(isDarkTheme = isDarkTheme(getTheme = { appSettings?.theme })) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
Expand Down
50 changes: 24 additions & 26 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,30 @@
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
android:viewportWidth="157"
android:viewportHeight="156">
<group
android:scaleX="0.55"
android:scaleY="0.5464968"
android:translateX="35.325"
android:translateY="35.37325">
<path
android:fillAlpha="0.5"
android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="M60.67,12.77C56.44,11.48 52.15,14.62 52.15,19.01V89.53L53.54,91.88L66.41,68.19C67.38,66.7 69.61,66.71 71.38,68.22C72,68.74 72.51,69.4 72.85,70.12L82.44,104.18L129.25,118.45C133.49,119.74 137.78,116.6 137.78,112.21V41.08C137.78,38.22 135.89,35.69 133.13,34.85L60.67,12.77Z"
android:strokeAlpha="0.5" />
<path
android:fillAlpha="0.7"
android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="M44.21,25.16C39.97,23.87 35.68,27.01 35.68,31.4V100.96L42.94,83.12C43.84,81.57 46.04,81.49 47.86,82.93C48.58,83.51 49.16,84.27 49.52,85.1L53.54,91.88L66.41,68.19C67.38,66.7 69.61,66.71 71.38,68.22C72,68.74 72.51,69.4 72.85,70.12L85.82,116.19C86.79,118.27 86.14,120.3 84.36,120.74C83.82,120.87 83.22,120.85 82.61,120.66L70.82,117.13L71.38,100.98L60.73,114.31L38.85,107.54C38.21,107.35 37.61,107 37.09,106.56C37.9,107.58 39.02,108.36 40.33,108.76L112.79,130.84C117.02,132.13 121.31,128.99 121.31,124.6V53.47C121.31,50.61 119.42,48.08 116.66,47.24L44.21,25.16Z"
android:strokeAlpha="0.7" />
<path
android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="M27.74,37.56C23.51,36.27 19.22,39.4 19.22,43.79V114.92C19.22,117.79 21.1,120.31 23.87,121.15L96.32,143.23C100.56,144.52 104.84,141.38 104.84,136.99V65.86C104.84,63 102.96,60.47 100.19,59.63L27.74,37.56ZM72.85,70.12C72.51,69.4 72,68.74 71.38,68.22C69.61,66.71 67.38,66.7 66.41,68.19L53.54,91.88L49.52,85.1C49.16,84.27 48.58,83.51 47.86,82.93C46.04,81.49 43.84,81.58 42.94,83.13L35.56,101.25C35.31,101.68 35.19,102.2 35.19,102.76C35.19,104.79 36.83,106.93 38.85,107.54L60.73,114.31L71.38,100.98L70.82,117.13L82.61,120.67C83.22,120.85 83.82,120.88 84.36,120.74C86.14,120.3 86.79,118.27 85.82,116.19L72.85,70.12Z" />
</group>
</vector>
29 changes: 29 additions & 0 deletions app/src/main/res/drawable/splashscreen_branding_image.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="201dp"
android:height="80dp"
android:viewportWidth="201"
android:viewportHeight="80">
<path
android:fillColor="#ffffff"
android:pathData="M64.79,27.51V24.06C65.24,24.8 66.03,25.24 67.03,25.24C68.87,25.24 70.27,23.71 70.27,21.29C70.27,18.88 68.87,17.36 67.03,17.36C66.03,17.36 65.24,17.79 64.79,18.53V17.52H63.13V27.51H64.79ZM66.67,23.88C65.58,23.88 64.72,23.03 64.72,21.29C64.72,19.55 65.58,18.71 66.67,18.71C67.83,18.71 68.53,19.71 68.53,21.29C68.53,22.89 67.83,23.88 66.67,23.88ZM74.92,25.24C76.75,25.24 78.63,24.02 78.63,21.3C78.63,18.59 76.75,17.36 74.92,17.36C73.08,17.36 71.21,18.59 71.21,21.3C71.21,24.02 73.08,25.24 74.92,25.24ZM74.92,23.88C73.86,23.88 72.93,23.04 72.93,21.3C72.93,19.57 73.86,18.71 74.92,18.71C75.96,18.71 76.9,19.57 76.9,21.3C76.9,23.04 75.96,23.88 74.92,23.88ZM82.71,25.06L84.2,19.48L85.68,25.06H87.26L89.26,17.52H87.46L86.35,22.87L85.05,17.52H83.33L82.04,22.87L80.93,17.52H79.13L81.13,25.06H82.71ZM93.58,25.24C95.52,25.24 96.64,24.01 96.99,22.8H95.35C95.06,23.5 94.38,23.85 93.51,23.85C92.56,23.85 91.57,23.17 91.46,21.77H97.08C97.22,19.23 95.78,17.36 93.46,17.36C91.32,17.36 89.77,18.97 89.77,21.23C89.77,23.39 91.15,25.24 93.58,25.24ZM95.38,20.55H91.46C91.6,19.12 92.68,18.66 93.46,18.66C94.44,18.66 95.34,19.37 95.38,20.55ZM100.11,25.06V21.11C100.11,19.6 100.72,19.18 101.77,19.18C102.02,19.18 102.29,19.19 102.57,19.22V17.54C102.44,17.52 102.26,17.51 102.13,17.51C101.22,17.52 100.49,18.03 100.09,18.87V17.52H98.45V25.06H100.11ZM106.75,25.24C108.7,25.24 109.82,24.01 110.17,22.8H108.53C108.24,23.5 107.55,23.85 106.68,23.85C105.73,23.85 104.75,23.17 104.64,21.77H110.25C110.39,19.23 108.95,17.36 106.64,17.36C104.5,17.36 102.94,18.97 102.94,21.23C102.94,23.39 104.33,25.24 106.75,25.24ZM108.56,20.55H104.64C104.78,19.12 105.86,18.66 106.64,18.66C107.62,18.66 108.51,19.37 108.56,20.55ZM114.46,25.24C115.47,25.24 116.26,24.8 116.71,24.06V25.06H118.37V14.91H116.71V18.53C116.26,17.79 115.47,17.36 114.46,17.36C112.69,17.36 111.19,18.88 111.19,21.29C111.19,23.71 112.69,25.24 114.46,25.24ZM114.83,23.88C113.72,23.88 112.93,22.89 112.93,21.29C112.93,19.71 113.72,18.71 114.83,18.71C115.92,18.71 116.78,19.55 116.78,21.29C116.78,23.03 115.92,23.88 114.83,23.88ZM127.37,25.24C129.15,25.24 130.65,23.71 130.65,21.29C130.65,18.88 129.15,17.36 127.37,17.36C126.36,17.36 125.58,17.79 125.13,18.53V14.91H123.47V25.06H125.13V24.06C125.58,24.8 126.36,25.24 127.37,25.24ZM127.01,23.88C125.92,23.88 125.06,23.03 125.06,21.29C125.06,19.55 125.92,18.71 127.01,18.71C128.12,18.71 128.91,19.71 128.91,21.29C128.91,22.89 128.12,23.88 127.01,23.88ZM132.33,27.51C134.02,27.51 134.53,26.99 135.23,25.04L137.87,17.52H136.16L134.46,22.93L132.75,17.52H130.93L133.66,25.01L133.57,25.2C133.26,26.12 132.97,26.22 132.33,26.23L131.57,26.23V27.51H132.33Z" />
<path
android:fillColor="#ffffff"
android:pathData="M14.5,43.86H20.34V47.81H14.5V43.86ZM14.5,49.62H20.34V64.75H14.5V49.62ZM23.68,49.62H29.12V52.08C29.93,51.08 30.76,50.36 31.59,49.93C32.42,49.49 33.43,49.28 34.63,49.28C36.24,49.28 37.51,49.75 38.42,50.71C39.33,51.66 39.79,53.14 39.79,55.13V64.75H33.93V56.43C33.93,55.48 33.75,54.81 33.39,54.41C33.04,54.02 32.54,53.82 31.9,53.82C31.19,53.82 30.62,54.09 30.18,54.62C29.74,55.15 29.52,56.11 29.52,57.48V64.75H23.68V49.62ZM49.39,49.62H52.17V53.86H49.39V64.75H43.54V53.86H41.36V49.62H43.54V48.93C43.54,48.32 43.61,47.64 43.74,46.9C43.87,46.16 44.12,45.55 44.49,45.08C44.86,44.61 45.38,44.23 46.04,43.94C46.71,43.65 47.68,43.51 48.96,43.51L49.47,43.51C50.45,43.55 51.77,43.66 53.42,43.86L52.78,47.37C52.08,47.25 51.51,47.2 51.08,47.2C50.56,47.2 50.18,47.28 49.95,47.46C49.72,47.64 49.56,47.91 49.46,48.29C49.42,48.5 49.39,48.94 49.39,49.62ZM52.72,57.23C52.72,54.92 53.51,53.02 55.08,51.52C56.64,50.02 58.76,49.28 61.43,49.28C64.48,49.28 66.78,50.16 68.34,51.91C69.6,53.33 70.22,55.07 70.22,57.14C70.22,59.47 69.45,61.38 67.89,62.86C66.34,64.35 64.19,65.09 61.44,65.09C59,65.09 57.02,64.48 55.51,63.24C53.65,61.71 52.72,59.71 52.72,57.23ZM58.58,57.21C58.58,58.56 58.85,59.56 59.4,60.21C59.95,60.85 60.64,61.17 61.47,61.17C62.31,61.17 63.01,60.86 63.55,60.22C64.09,59.58 64.36,58.56 64.36,57.16C64.36,55.85 64.08,54.87 63.54,54.23C62.99,53.59 62.32,53.27 61.52,53.27C60.66,53.27 59.96,53.59 59.41,54.24C58.85,54.89 58.58,55.88 58.58,57.21ZM72.69,49.62H78.14V51.83C78.93,50.91 79.72,50.25 80.52,49.86C81.32,49.47 82.28,49.28 83.41,49.28C84.62,49.28 85.58,49.49 86.29,49.92C87,50.35 87.58,50.98 88.03,51.83C88.94,50.84 89.78,50.17 90.54,49.81C91.29,49.45 92.22,49.28 93.33,49.28C94.97,49.28 96.25,49.76 97.16,50.72C98.08,51.69 98.54,53.2 98.54,55.25V64.75H92.69V56.13C92.69,55.45 92.55,54.94 92.29,54.61C91.89,54.08 91.41,53.82 90.82,53.82C90.13,53.82 89.58,54.07 89.16,54.56C88.74,55.06 88.53,55.85 88.53,56.94V64.75H82.68V56.42C82.68,55.75 82.64,55.3 82.56,55.06C82.44,54.68 82.22,54.38 81.92,54.14C81.61,53.91 81.25,53.79 80.84,53.79C80.17,53.79 79.62,54.05 79.19,54.55C78.76,55.05 78.55,55.88 78.55,57.03V64.75H72.69V49.62ZM106.96,54.52L101.38,53.94C101.6,52.97 101.9,52.2 102.29,51.65C102.69,51.09 103.26,50.61 104.01,50.2C104.54,49.91 105.28,49.68 106.22,49.52C107.15,49.36 108.17,49.28 109.26,49.28C111.01,49.28 112.41,49.37 113.48,49.57C114.54,49.76 115.42,50.17 116.13,50.79C116.63,51.21 117.02,51.82 117.31,52.6C117.59,53.39 117.74,54.14 117.74,54.85V61.53C117.74,62.24 117.78,62.8 117.87,63.21C117.96,63.61 118.16,64.12 118.47,64.75H112.99C112.77,64.36 112.63,64.06 112.56,63.86C112.49,63.66 112.42,63.34 112.36,62.9C111.59,63.63 110.83,64.15 110.08,64.47C109.04,64.88 107.84,65.09 106.48,65.09C104.66,65.09 103.28,64.68 102.34,63.84C101.4,63 100.93,61.97 100.93,60.75C100.93,59.6 101.26,58.65 101.94,57.91C102.57,57.22 103.7,56.7 105.32,56.34L108.41,55.7C109.12,55.55 109.64,55.43 109.96,55.34C110.61,55.16 111.3,54.93 112.03,54.65C112.03,53.94 111.88,53.44 111.58,53.15C111.29,52.87 110.76,52.72 110.02,52.72C109.06,52.72 108.35,52.88 107.87,53.18C107.49,53.42 107.19,53.86 106.96,54.52ZM112.03,57.57C111.43,57.78 110.8,57.98 110.16,58.15L109.52,58.32C108.33,58.64 107.58,58.95 107.26,59.25C106.94,59.56 106.78,59.92 106.78,60.32C106.78,60.78 106.94,61.15 107.26,61.44C107.58,61.73 108.05,61.87 108.67,61.87C109.32,61.87 109.93,61.72 110.49,61.4C111.04,61.09 111.44,60.71 111.68,60.26C111.91,59.8 112.03,59.22 112.03,58.5V57.57ZM120.85,49.62H126.29V52.08C127.1,51.08 127.92,50.36 128.76,49.93C129.59,49.49 130.6,49.28 131.8,49.28C133.41,49.28 134.68,49.75 135.59,50.71C136.5,51.66 136.96,53.14 136.96,55.13V64.75H131.09V56.43C131.09,55.48 130.92,54.81 130.56,54.41C130.21,54.02 129.71,53.82 129.07,53.82C128.36,53.82 127.79,54.09 127.35,54.62C126.91,55.15 126.69,56.11 126.69,57.48V64.75H120.85V49.62ZM140.28,43.86H146.12V47.81H140.28V43.86ZM140.28,49.62H146.12V64.75H140.28V49.62ZM154.78,54.52L149.2,53.94C149.41,52.97 149.72,52.2 150.11,51.65C150.51,51.09 151.08,50.61 151.83,50.2C152.36,49.91 153.1,49.68 154.04,49.52C154.97,49.36 155.99,49.28 157.08,49.28C158.83,49.28 160.23,49.37 161.29,49.57C162.36,49.76 163.24,50.17 163.95,50.79C164.45,51.21 164.84,51.82 165.12,52.6C165.41,53.39 165.55,54.14 165.55,54.85V61.53C165.55,62.24 165.6,62.8 165.69,63.21C165.78,63.61 165.98,64.12 166.29,64.75H160.81L160.61,64.39C160.5,64.17 160.42,64 160.38,63.86C160.31,63.66 160.24,63.34 160.18,62.9C159.41,63.63 158.65,64.15 157.9,64.47C156.86,64.88 155.66,65.09 154.29,65.09C152.48,65.09 151.1,64.68 150.16,63.84C149.21,63 148.74,61.97 148.74,60.75C148.74,59.6 149.08,58.65 149.76,57.91C150.39,57.22 151.52,56.7 153.14,56.34L156.23,55.7C156.94,55.55 157.46,55.43 157.78,55.34C158.43,55.16 159.12,54.93 159.85,54.65C159.85,53.94 159.7,53.44 159.4,53.15C159.1,52.87 158.58,52.72 157.84,52.72C156.88,52.72 156.16,52.88 155.69,53.18C155.31,53.42 155.01,53.86 154.78,54.52ZM159.85,57.57C159.24,57.78 158.62,57.98 157.98,58.15L157.34,58.32C156.15,58.64 155.4,58.95 155.08,59.25C154.76,59.56 154.6,59.92 154.6,60.32C154.6,60.78 154.76,61.15 155.08,61.44C155.4,61.73 155.87,61.87 156.49,61.87C157.14,61.87 157.74,61.72 158.3,61.4C158.86,61.09 159.26,60.71 159.49,60.26C159.73,59.8 159.85,59.22 159.85,58.5V57.57ZM168.67,43.86H174.64V54.63L179,49.62H186.18L180.72,54.92L186.5,64.75H179.92L176.83,58.68L174.64,60.82V64.75H168.67V43.86Z" />
</vector>
4 changes: 1 addition & 3 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
Expand All @@ -15,9 +15,7 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<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" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
4 changes: 1 addition & 3 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!--
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
Expand All @@ -15,9 +15,7 @@
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<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" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
Binary file not shown.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
Binary file not shown.
20 changes: 20 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>
<color name="splashscreen_background_color">#004757</color>
</resources>
27 changes: 27 additions & 0 deletions app/src/main/res/values-v31/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>

<style name="Theme.App.Starting31" parent="Theme.App.Starting">
<item name="windowSplashScreenBackground">@color/splashscreen_background_color</item>
<item name="android:windowSplashScreenBrandingImage">@drawable/splashscreen_branding_image</item>
</style>

<style name="Theme.AppStarting" parent="Theme.App.Starting31" />

</resources>
27 changes: 27 additions & 0 deletions app/src/main/res/values-v32/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--
~ Infomaniak SwissTransfer - Android
~ Copyright (C) 2024 Infomaniak Network SA
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<resources>

<style name="Theme.App.Starting32" parent="Theme.App.Starting31">
<!-- Not a magic value: "The maximum animation duration should be limited below 1000ms." -->
<item name="windowSplashScreenAnimationDuration">1000</item>
</style>

<style name="Theme.AppStarting" parent="Theme.App.Starting32" />

</resources>
Loading

0 comments on commit fe808b1

Please sign in to comment.