mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 20:12:39 +01:00
Adding about app
This commit is contained in:
parent
7b6371ada0
commit
601b049211
@ -53,7 +53,7 @@
|
|||||||
<ConfirmationsSetting value="0" id="Add" />
|
<ConfirmationsSetting value="0" id="Add" />
|
||||||
<ConfirmationsSetting value="0" id="Remove" />
|
<ConfirmationsSetting value="0" id="Remove" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectType">
|
<component name="ProjectType">
|
||||||
|
@ -115,6 +115,9 @@
|
|||||||
<activity
|
<activity
|
||||||
android:name=".SettingsActivity"
|
android:name=".SettingsActivity"
|
||||||
android:theme="@style/FrostTheme.Settings" />
|
android:theme="@style/FrostTheme.Settings" />
|
||||||
|
<activity
|
||||||
|
android:name=".AboutActivity"
|
||||||
|
android:theme="@style/Kau.Translucent.About" />
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".services.NotificationService"
|
android:name=".services.NotificationService"
|
||||||
|
@ -1,17 +1,27 @@
|
|||||||
//package com.pitchedapps.frost
|
package com.pitchedapps.frost
|
||||||
//
|
|
||||||
//import android.os.Bundle
|
import ca.allanwang.kau.about.AboutActivityBase
|
||||||
//import android.support.v7.app.AppCompatActivity
|
import ca.allanwang.kau.adapters.FastItemThemedAdapter
|
||||||
//import com.mikepenz.aboutlibraries.Libs
|
import ca.allanwang.kau.iitems.CardIItem
|
||||||
//
|
import ca.allanwang.kau.utils.isColorVisibleOn
|
||||||
//
|
import ca.allanwang.kau.utils.withMinAlpha
|
||||||
//
|
import com.mikepenz.fastadapter.IItem
|
||||||
///**
|
import com.pitchedapps.frost.utils.Prefs
|
||||||
// * Created by Allan Wang on 2017-06-26.
|
|
||||||
// */
|
|
||||||
//class AboutActivity : AppCompatActivity() {
|
/**
|
||||||
// override fun onCreate(savedInstanceState: Bundle?) {
|
* Created by Allan Wang on 2017-06-26.
|
||||||
// super.onCreate(savedInstanceState)
|
*/
|
||||||
// val libs = Libs.getInstance(this, R.string::class.java.fields)
|
class AboutActivity : AboutActivityBase(R.string::class.java, configBuilder = {
|
||||||
// }
|
textColor = Prefs.textColor
|
||||||
//}
|
accentColor = Prefs.accentColor
|
||||||
|
backgroundColor = Prefs.bgColor.withMinAlpha(200)
|
||||||
|
cutoutForeground = if (0xff3b5998.toInt().isColorVisibleOn(Prefs.bgColor)) 0xff3b5998.toInt() else Prefs.accentColor
|
||||||
|
cutoutDrawableRes = R.drawable.frost_f_256
|
||||||
|
}) {
|
||||||
|
override fun postInflateMainPage(adapter: FastItemThemedAdapter<IItem<*, *>>) {
|
||||||
|
adapter.add(CardIItem {
|
||||||
|
descRes = R.string.frost_description
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
@ -53,11 +53,7 @@ class SettingsActivity : KPrefActivity() {
|
|||||||
plainText(R.string.about_frost) {
|
plainText(R.string.about_frost) {
|
||||||
onClick = {
|
onClick = {
|
||||||
_, _, _ ->
|
_, _, _ ->
|
||||||
LibsBuilder()
|
startActivity(AboutActivity::class.java, transition = true)
|
||||||
//provide a style (optional) (LIGHT, DARK, LIGHT_DARK_TOOLBAR)
|
|
||||||
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
|
|
||||||
//start the activity
|
|
||||||
.start(this@SettingsActivity)
|
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ internal const val EXTRA_COOKIES = "extra_cookies"
|
|||||||
internal const val ARG_URL = "arg_url"
|
internal const val ARG_URL = "arg_url"
|
||||||
|
|
||||||
fun Context.launchNewTask(clazz: Class<out Activity>, cookieList: ArrayList<CookieModel> = arrayListOf(), clearStack: Boolean = false) {
|
fun Context.launchNewTask(clazz: Class<out Activity>, cookieList: ArrayList<CookieModel> = arrayListOf(), clearStack: Boolean = false) {
|
||||||
startActivity(clazz, clearStack, {
|
startActivity(clazz, clearStack, intentBuilder = {
|
||||||
putParcelableArrayListExtra(EXTRA_COOKIES, cookieList)
|
putParcelableArrayListExtra(EXTRA_COOKIES, cookieList)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -60,7 +60,7 @@ val String.formattedFbUrl: String
|
|||||||
fun Context.launchWebOverlay(url: String) {
|
fun Context.launchWebOverlay(url: String) {
|
||||||
val argUrl = url.formattedFbUrl
|
val argUrl = url.formattedFbUrl
|
||||||
L.i("Launch web overlay: $argUrl")
|
L.i("Launch web overlay: $argUrl")
|
||||||
startActivity(WebOverlayActivity::class.java, false, {
|
startActivity(WebOverlayActivity::class.java, false, intentBuilder = {
|
||||||
putExtra(ARG_URL, argUrl)
|
putExtra(ARG_URL, argUrl)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
14
app/src/main/res/drawable/frost_f_256.xml
Normal file
14
app/src/main/res/drawable/frost_f_256.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="256dp"
|
||||||
|
android:height="256dp"
|
||||||
|
android:viewportHeight="177.16534"
|
||||||
|
android:viewportWidth="177.16534">
|
||||||
|
|
||||||
|
<path
|
||||||
|
android:pathData="M88.9405 31.61857l41.06143 23.88663M88.3467 31.59584l-31.358 18.2953M56.87005
|
||||||
|
51.09542v94.26222M57.20726 87.2077l40.97656 23.86424"
|
||||||
|
android:strokeColor="#000"
|
||||||
|
android:strokeLineCap="round"
|
||||||
|
android:strokeWidth="10" />
|
||||||
|
</vector>
|
@ -2,6 +2,7 @@
|
|||||||
<string name="dev_email" translatable="false">pitchedapps@gmail.com</string>
|
<string name="dev_email" translatable="false">pitchedapps@gmail.com</string>
|
||||||
<string name="play_store_package_id" translatable="false">com.pitchedapps.frost</string>
|
<string name="play_store_package_id" translatable="false">com.pitchedapps.frost</string>
|
||||||
<string name="about_frost">About Frost for Facebook</string>
|
<string name="about_frost">About Frost for Facebook</string>
|
||||||
|
<string name="frost_description">Frost is a fully themable, fully functional alternative to the official Facebook app, made from scratch and proudly open sourced.</string>
|
||||||
<string name="section_format">Hello World from section: %1$d</string>
|
<string name="section_format">Hello World from section: %1$d</string>
|
||||||
|
|
||||||
<string name="feed">Feed</string>
|
<string name="feed">Feed</string>
|
||||||
|
@ -19,7 +19,7 @@ BUILD_TOOLS=26.0.0
|
|||||||
VERSION_CODE=5
|
VERSION_CODE=5
|
||||||
VERSION_NAME=0.5
|
VERSION_NAME=0.5
|
||||||
|
|
||||||
KAU=8179e50208
|
KAU=b87fe9838d
|
||||||
KOTLIN=1.1.3
|
KOTLIN=1.1.3
|
||||||
MATERIAL_DRAWER=5.9.3
|
MATERIAL_DRAWER=5.9.3
|
||||||
MATERIAL_DRAWER_KT=1.0.4
|
MATERIAL_DRAWER_KT=1.0.4
|
||||||
|
Loading…
Reference in New Issue
Block a user