1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

App | Feature | Default background(#2218)

Co-authored-by: konstantiniiv <ki@anytype.io>
This commit is contained in:
Konstantin Ivanov 2022-05-02 14:43:34 +03:00 committed by GitHub
parent 7327375bff
commit aa10994124
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -139,7 +139,7 @@ class MainActivity : AppCompatActivity(R.layout.activity_main), AppNavigation.Pr
}
}
is Wallpaper.Default -> {
container.setBackgroundResource(R.color.default_dashboard_background_color)
container.setBackgroundResource(R.drawable.cover_gradient_default)
}
is Wallpaper.Color -> {
val color = WallpaperColor.values().find { it.code == wallpaper.code }

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient
android:angle="-90"
android:endColor="#CFD9D9"
android:startColor="#74BDEC" />
</shape>