Skip to content

Commit 3b4a2a8

Browse files
authored
0.0.3-alpha (#4)
1 parent 683f952 commit 3b4a2a8

File tree

19 files changed

+76
-23
lines changed

19 files changed

+76
-23
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ android {
1212
minSdk = 21
1313
targetSdk = 34
1414
versionCode = 1
15-
versionName = "0.0.2-alpha"
15+
versionName = "0.0.3-alpha"
1616

1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
vectorDrawables {
@@ -51,6 +51,7 @@ android {
5151

5252
dependencies {
5353
implementation(project(":compose"))
54+
implementation(project(":splashscreen"))
5455

5556
implementation(libs.androidx.core.ktx)
5657
implementation(libs.androidx.lifecycle.runtime.ktx)

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@
1010
android:label="@string/app_name"
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
13-
android:theme="@style/Theme.Catppuccin"
13+
android:theme="@style/Theme.Catppuccin.Splash"
1414
tools:targetApi="31">
1515
<activity
1616
android:name=".CatppuccinActivity"
17-
android:exported="true"
18-
android:theme="@style/Theme.Catppuccin">
17+
android:exported="true">
1918
<intent-filter>
2019
<action android:name="android.intent.action.MAIN" />
2120

2221
<category android:name="android.intent.category.LAUNCHER" />
2322
</intent-filter>
2423
</activity>
2524
</application>
26-
27-
</manifest>
25+
</manifest>

app/src/main/java/com/shifthackz/catppuccin/app/CatppuccinActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class CatppuccinActivity : ComponentActivity() {
3131

3232
override fun onCreate(savedInstanceState: Bundle?) {
3333
super.onCreate(savedInstanceState)
34+
actionBar?.hide()
3435
val viewModel: CatppuccinViewModel by viewModels()
3536
setContent {
3637
val uiState by viewModel.uiState.collectAsStateWithLifecycle()

app/src/main/java/com/shifthackz/catppuccin/app/ui/AccentColorSelector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ fun ColorComposable(
176176
Box(
177177
modifier = modifier
178178
.background(
179-
color = if (selected) palette.Subtext1.copy(alpha = 0.7f) else Color.Transparent,
179+
color = if (selected) color.copy(alpha = 0.4f) else Color.Transparent,
180180
shape = CircleShape,
181181
)
182182
.clickable { onClick(color, token) }
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<style name="Theme.Catppuccin.Splash" parent="Theme.Catppuccin.Mocha.SplashScreen">
4+
<item name="windowSplashScreenAnimatedIcon">@drawable/catppuccin</item>
5+
<item name="windowSplashScreenAnimationDuration">500</item>
6+
<item name="postSplashScreenTheme">@style/Theme.Catppuccin</item>
7+
</style>
8+
</resources>

app/src/main/res/values/colors.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<color name="ic_launcher_background">#24273A</color>
4-
</resources>
4+
</resources>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
22
<string name="app_name">Catppuccin</string>
3-
</resources>
3+
</resources>

app/src/main/res/values/themes.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<style name="Theme.Catppuccin" parent="android:Theme.Material.Light.NoActionBar" />
3+
<style name="Theme.Catppuccin" parent="android:Theme.Material.NoActionBar" />
4+
5+
<style name="Theme.Catppuccin.Splash" parent="Theme.Catppuccin.Frappe.SplashScreen">
6+
<item name="windowSplashScreenAnimatedIcon">@drawable/catppuccin</item>
7+
<item name="windowSplashScreenAnimationDuration">500</item>
8+
<item name="postSplashScreenTheme">@style/Theme.Catppuccin</item>
9+
</style>
410
</resources>

app/src/main/res/xml/backup_rules.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
<include domain="sharedpref" path="."/>
1111
<exclude domain="sharedpref" path="device.xml"/>
1212
-->
13-
</full-backup-content>
13+
</full-backup-content>

0 commit comments

Comments
 (0)