mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-08 20:12:39 +01:00
Fix up themes
This commit is contained in:
parent
0aac77d2bb
commit
b97d78be53
@ -6,7 +6,7 @@ body, #root, #header, [style*="background-color"], ._55wo, ._1upc, input, ._2f9r
|
||||
|
||||
.jewel, .flyout, ._13e_, ._5-lw, ._5c0e, .jx-result, ._336p { background: $O$ !important; }
|
||||
|
||||
button, button::before, .touch ._56bt, ._56be::before, .btnS, .touch::before, ._590n, ._4g8h, ._5xo2, ._5u5a::before, ._4u3j, ._15ks, ._5hua, ._59tt, ._41ft, .jx-tokenizer, ._55fj, .excessItem, ._4e8n, ._5pxa._3uj9, ._5n_5, ._u2d, ._56bu::before, ._5h8f, ._d00, ._2066, ._4qax, .aclb, ._4756, ._w34, ._56bv::before, ._5769, ._34iv, .acbk { background: $BB$ !important; }
|
||||
button, button::before, .touch ._56bt, ._56be::before, .btnS, .touch::before, ._590n, ._4g8h, ._5xo2, ._5u5a::before, ._4u3j, ._15ks, ._5hua, ._59tt, ._41ft, .jx-tokenizer, ._55fj, .excessItem, ._4e8n, ._5pxa._3uj9, ._5n_5, ._u2d, ._56bu::before, ._5h8f, ._d00, ._2066, ._4qax, .aclb, ._4756, ._w34, ._56bv::before, ._5769, ._34iv, .acbk { background: $BBT$ !important; }
|
||||
|
||||
[style*="color"], body, input, ._43mh, .touch .btn, p, span, .fcg, button, ._52j9, ._52jb, ._52ja, ._5j35, ._rnk, ._24u0, ._1g06, ._14ye, .fcb, ._56cz._56c_, ._1gk_, ._55fj, textarea, ._24pi, ._4en9, ._1kb, ._5p7j, ._2klz, ._5780, ._5781, ._5782, ._3u9u, ._3u9_, ._3u9s, ._1hcx, ._2066, ._1_-1, ._cv_, ._1nbx, ._2cuh, ._4ms9, ._4ms5, ._4ms6, ._31b4, ._31b5, ._27vp, ._4nwe, ._4nw9, ._27vi, .appCenterAppInfo, .appCenterPermissions, ._3c9l, ._3c9m, ._4jn_, ._32qt, ._3mom, ._3moo, ._-7o, ._d00, ._d01, ._559g, ._2new, .appCenterCategorySelectorButton, .mentions-input, .mentions-placeholder, .fcw, ._5-7t, .fcl, ._4qas, .thread-title, .title, ._46pa, ._336p, ._1rrd, ._2om4, ._3m1m, ._2om2, ._5n_e, .appListExplanation, h1, h2, h3, h4, h5, h6 { color: $T$ !important; }
|
||||
|
||||
|
@ -2,9 +2,8 @@ $bg_transparent: transparent;
|
||||
$text: unquote('$T$');
|
||||
$link: unquote('$TT$');
|
||||
$background: unquote('$B$');
|
||||
$background2: unquote('$BB$');
|
||||
$background2: unquote('$BBT$');
|
||||
$bg_opaque: unquote('$O$');
|
||||
$divider: unquote('$D$');
|
||||
|
||||
|
||||
@import "../core/main";
|
||||
|
@ -25,7 +25,7 @@ enum class CssAssets(val folder: String = "themes") : InjectorContract {
|
||||
.replace("\$T\$", Prefs.textColor.toRgbaString())
|
||||
.replace("\$TT\$", Prefs.textColor.colorToBackground(0.05f).toRgbaString())
|
||||
.replace("\$B\$", Prefs.bgColor.toRgbaString())
|
||||
.replace("\$BB\$", Prefs.bgColor.colorToForeground(0.05f).toRgbaString())
|
||||
.replace("\$BBT\$", Prefs.bgColor.adjustAlpha(0.2f).colorToForeground(0.05f).toRgbaString())
|
||||
.replace("\$O\$", Prefs.bgColor.withAlpha(255).toRgbaString())
|
||||
.replace("\$D\$", Prefs.textColor.adjustAlpha(0.3f).toRgbaString())
|
||||
}
|
||||
|
@ -13,8 +13,8 @@ import com.pitchedapps.frost.injectors.JsActions
|
||||
enum class Theme(@StringRes val textRes: Int, val injector: InjectorContract,
|
||||
private val textColorGetter: () -> Int, private val backgroundColorGetter: () -> Int,
|
||||
private val headerColorGetter: () -> Int, private val iconColorGetter: () -> Int) {
|
||||
DEFAULT(R.string.kau_default, JsActions.EMPTY, { Color.BLACK }, { 0xfffafafa.toInt() }, { 0xff3b5998.toInt() }, { Color.WHITE }),
|
||||
LIGHT(R.string.kau_light, CssAssets.MATERIAL_LIGHT, { Color.BLACK }, { 0xfffafafa.toInt() }, { 0xff3b5998.toInt() }, { Color.WHITE }),
|
||||
DEFAULT(R.string.kau_default, JsActions.EMPTY, { 0xddffffff.toInt() }, { 0xfffafafa.toInt() }, { 0xff3b5998.toInt() }, { Color.WHITE }),
|
||||
LIGHT(R.string.kau_light, CssAssets.MATERIAL_LIGHT, { 0xddffffff.toInt() }, { 0xfffafafa.toInt() }, { 0xff3b5998.toInt() }, { Color.WHITE }),
|
||||
DARK(R.string.kau_dark, CssAssets.MATERIAL_DARK, { Color.WHITE }, { 0xff303030.toInt() }, { 0xff2e4b86.toInt() }, { Color.WHITE }),
|
||||
AMOLED(R.string.kau_amoled, CssAssets.MATERIAL_AMOLED, { Color.WHITE }, { Color.BLACK }, { Color.BLACK }, { Color.WHITE }),
|
||||
GLASS(R.string.kau_glass, CssAssets.MATERIAL_GLASS, { Color.WHITE }, { 0x80000000.toInt() }, { 0xb3000000.toInt() }, { Color.WHITE }),
|
||||
|
@ -6,10 +6,20 @@
|
||||
<item text="" />
|
||||
-->
|
||||
|
||||
|
||||
<version title="v0.x"/>
|
||||
<item text="Added more global preferences" />
|
||||
<item text="Added fully customizable theme engine" />
|
||||
<item text="Added support for in app billing" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
|
||||
<version title="v0.3" />
|
||||
<item text="Added rounded icons option" />
|
||||
<item text="Sorted preferences" />
|
||||
<item text="Added adblock" />
|
||||
<item text="Added adblock base" />
|
||||
<item text="Added feed configurations" />
|
||||
<item text="Animated settings panels" />
|
||||
<item text="Add notification filters" />
|
||||
|
@ -1,9 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## v0.x
|
||||
* Added more global preferences
|
||||
* Added fully customizable theme engine
|
||||
* Added support for in app billing
|
||||
|
||||
## v0.3
|
||||
* Added rounded icons option
|
||||
* Sorted preferences
|
||||
* Added adblock
|
||||
* Added adblock base
|
||||
* Added feed configurations
|
||||
* Animated settings panels
|
||||
* Add notification filters
|
||||
|
Loading…
Reference in New Issue
Block a user