Skip to content

Commit

Permalink
v1.50
Browse files Browse the repository at this point in the history
Redesigned UI.
Create separate accent colour for dark theme [Android 10 only]. Resolves #2
Customise Hue, saturation and lightness of chosen colours.
Reduced app size (42816ce).

Overlay is now installed as a normal app on Oreo [Untested].

Added support for Oxygen OS [Untested].

Accents can be deleted by swiping from either side.

Added colour preview from Styles and wallpapers app.

New Info screen with links and app version.

Fragment transition animations from Android 10.


  • Loading branch information
Akilesh-T committed Jan 13, 2020
1 parent e5064a2 commit 7209026
Show file tree
Hide file tree
Showing 55 changed files with 2,426 additions and 738 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ android {
applicationId = "app.akilesh.qacc"
minSdkVersion(AndroidSdk.min)
targetSdkVersion(AndroidSdk.target)
versionCode = 6
versionName = "1.40"
versionCode = 8
versionName = "1.50"
vectorDrawables.useSupportLibrary = true
}
buildFeatures {
Expand Down
9 changes: 2 additions & 7 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">

<activity
android:name=".SplashActivity"
<activity android:name=".ui.LaunchActivity"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -23,11 +22,7 @@
</intent-filter>
</activity>

<activity android:name=".MainActivity" />

<activity
android:name=".SettingsActivity"
android:label="@string/title_activity_settings" />
<activity android:name=".ui.MainActivity" />

</application>

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/app/akilesh/qacc/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package app.akilesh.qacc

import android.app.Application
import androidx.preference.PreferenceManager
import app.akilesh.qacc.utils.ThemeUtil
import app.akilesh.qacc.utils.AppUtils
import com.topjohnwu.superuser.Shell

class App: Application() {
Expand All @@ -17,8 +17,8 @@ class App: Application() {
override fun onCreate() {
super.onCreate()
val sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this)
val theme = sharedPreferences.getString("themePref", ThemeUtil.default)
ThemeUtil.applyTheme(theme)
val theme = sharedPreferences.getString("themePref", AppUtils.default)
AppUtils.applyTheme(theme)

}
}
86 changes: 61 additions & 25 deletions app/src/main/java/app/akilesh/qacc/Const.kt
Original file line number Diff line number Diff line change
@@ -1,34 +1,70 @@
package app.akilesh.qacc

import android.os.Build
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.Q
import app.akilesh.qacc.model.Colour
import com.topjohnwu.superuser.Shell

object Const {

//Credits to AEX
val presetColors = listOf(
Colour("#FFC107", "Amber"),
Colour("#448AFF", "Blue"),
Colour("#607D8B", "Blue Grey"),
Colour("#795548", "Brown"),
Colour("#FF1744", "Candy Red"),
Colour("#00BCD4", "Cyan"),
Colour("#FF5722", "Deep Orange"),
Colour("#7C4DFF", "Deep Purple"),
Colour("#47AE84", "Elegant Green"),
Colour("#21EF8B", "Extended Green"),
Colour("#9E9E9E", "Grey"),
Colour("#536DFE", "Indigo"),
Colour("#9ABC98", "Jade Green"),
Colour("#03A9F4", "Light Blue"),
Colour("#8BC34A", "Light Green"),
Colour("#CDDC39", "Lime"),
Colour("#FF9800", "Orange"),
Colour("#A1B6ED", "Pale Blue"),
Colour("#F05361", "Pale Red"),
Colour("#FF4081", "Pink"),
Colour("#FF5252", "Red"),
Colour("#009688", "Teal"),
Colour("#FFEB3B", "Yellow")
)
object Colors {
val presets = listOf(
Colour("#FFC107", "Amber"),
Colour("#448AFF", "Blue"),
Colour("#607D8B", "Blue Grey"),
Colour("#795548", "Brown"),
Colour("#FF1744", "Candy Red"),
Colour("#00BCD4", "Cyan"),
Colour("#FF5722", "Deep Orange"),
Colour("#7C4DFF", "Deep Purple"),
Colour("#47AE84", "Elegant Green"),
Colour("#21EF8B", "Extended Green"),
Colour("#9E9E9E", "Grey"),
Colour("#536DFE", "Indigo"),
Colour("#9ABC98", "Jade Green"),
Colour("#03A9F4", "Light Blue"),
Colour("#8BC34A", "Light Green"),
Colour("#CDDC39", "Lime"),
Colour("#FF9800", "Orange"),
Colour("#A1B6ED", "Pale Blue"),
Colour("#F05361", "Pale Red"),
Colour("#FF4081", "Pink"),
Colour("#FF5252", "Red"),
Colour("#009688", "Teal"),
Colour("#FFEB3B", "Yellow")
)

}

object Links {
const val telegramGroup = "https://t.me/AccentColourCreator"
const val xdaThread =
"https://forum.xda-developers.com/android/apps-games/app-magisk-module-qacc-custom-accent-t4011747"
const val githubRepo = "https://github.com/Akilesh-T/ACC"
const val telegramChannel = "https://t.me/ACC_Releases"
const val githubReleases = "$githubRepo/releases/latest"
}

val overlayPath = if (SDK_INT == Q) "/data/adb/modules/qacc-mobile/system/product/overlay"
else "/data/adb/modules/qacc-mobile/system/vendor/overlay"

const val prefix = "com.android.theme.color.custom."

val isOOS = Shell.sh("getprop ro.oxygen.version").exec().out.component1().isNotBlank()

fun getAssetFiles(): MutableList<String> {

val assetFiles = mutableListOf<String>()

val arch = if (listOf(Build.SUPPORTED_64_BIT_ABIS).isNotEmpty()) "arm64" else "arm"
if (arch == "arm64")
assetFiles.addAll(listOf("aapt64", "zipalign64"))
else
assetFiles.addAll(listOf("aapt", "zipalign"))

return assetFiles
}

}
Loading

0 comments on commit 7209026

Please sign in to comment.