feat: routine maintenance

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2023-12-03 02:07:24 +01:00
parent ac31be2a49
commit 4e8b3746ac
2 changed files with 26 additions and 10 deletions

View File

@ -14,6 +14,7 @@ import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.safeDrawingPadding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.ElevatedButton
import androidx.compose.material3.LocalContentColor
@ -51,9 +52,9 @@ import chat.revolt.api.routes.misc.getRootRoute
import chat.revolt.components.generic.PageHeader
import chat.revolt.components.generic.PrimaryTabs
import chat.revolt.internals.Platform
import java.net.URI
import kotlinx.coroutines.launch
import kotlinx.serialization.encodeToString
import java.net.URI
class AboutViewModel() : ViewModel() {
var root by mutableStateOf<Root?>(null)
@ -186,7 +187,9 @@ fun AboutScreen(navController: NavController, viewModel: AboutViewModel = viewMo
Image(
painter = painterResource(R.drawable.revolt_logo_wide),
contentDescription = stringResource(R.string.about_full_name),
colorFilter = ColorFilter.tint(LocalContentColor.current)
colorFilter = ColorFilter.tint(LocalContentColor.current),
modifier = Modifier
.width(250.dp)
)
Spacer(modifier = Modifier.height(16.dp))

View File

@ -1,11 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="193.73dp"
android:height="37.44dp"
android:viewportWidth="193.73"
android:viewportHeight="37.44">
android:width="844dp"
android:height="159dp"
android:viewportWidth="844"
android:viewportHeight="159">
<path
android:pathData="M24.98,12.56c0,2.79 -1.52,4.46 -4.76,4.46L14.84,17.02L14.84,8.2L20.22,8.2C23.46,8.2 24.98,9.93 24.98,12.56ZM0.98,1.01 L6.18,8.22L6.18,36.58h8.67L14.84,23.15h2.08l7.4,13.43h9.78l-8.21,-14.09A10.35,10.35 0,0 0,33.8 12.21c0,-6.18 -4.36,-11.2 -13.07,-11.2ZM61.01,1.01L39.22,1.01L39.22,36.58L61.01,36.58L61.01,29.64L47.89,29.64v-7.8L59.49,21.84L59.49,15.15L47.89,15.15L47.89,8.21L61.01,8.21ZM82,27.87 L73.18,1.01L63.95,1.01L76.57,36.58L87.42,36.58L100.03,1.01L90.86,1.01ZM138.65,18.69c0,-10.69 -8.06,-18.19 -18.19,-18.19 -10.09,0 -18.3,7.5 -18.3,18.19a17.9,17.9 0,0 0,18.3 18.24A17.82,17.82 0,0 0,138.65 18.69ZM111.03,18.69c0,-6.34 3.65,-10.34 9.43,-10.34 5.68,0 9.38,4 9.38,10.34 0,6.23 -3.7,10.34 -9.38,10.34C114.68,29.03 111.03,24.93 111.03,18.69ZM143.47,1.01L143.47,36.58L163.49,36.58v-6.95L152.13,29.63L152.13,1.01ZM165.71,8.21h9.43L175.14,36.58h8.67L183.81,8.2h9.43v-7.2L165.71,1.01Z"
android:strokeWidth="1"
android:fillColor="#ffffff"
android:strokeColor="#ffffff"/>
android:pathData="M29.96,156.36C29.96,109.28 29.96,78.41 29.96,38.33L0,2.6H96.89C108.4,2.6 118.47,4.68 127.11,8.84C135.74,12.99 142.45,18.97 147.25,26.78C152.04,34.59 154.44,43.95 154.44,54.86C154.44,65.87 151.97,75.15 147.02,82.71C142.12,90.27 135.23,95.97 126.35,99.83C117.51,103.68 107.19,105.61 95.38,105.61H55.4V73.18H86.9C91.85,73.18 96.06,72.58 99.54,71.37C103.08,70.12 105.78,68.15 107.65,65.44C109.56,62.74 110.52,59.21 110.52,54.86C110.52,50.45 109.56,46.87 107.65,44.12C105.78,41.32 103.08,39.27 99.54,37.96C96.06,36.61 91.85,35.94 86.9,35.94H72.06V156.36H29.96ZM120.82,85.79L159.59,156.36H113.86L76,85.79H120.82Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M176.35,156.36V2.42H217.36V156.36H176.35ZM205.17,156.36L205.17,123.36H268.35L268.35,156.36H205.17ZM205.17,97.51L205.17,65.44H268.35L268.35,97.51H205.17ZM205.17,37.96L205.17,2.42H268.35V37.96H205.17Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M350.61,156.36L405.15,2.42H449.48L390.29,156.36H350.61ZM345.96,156.36L286.32,2.42H330.66L385.64,156.36H345.96Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M535.38,159C519.13,159 504.71,155.63 492.15,148.88C479.74,141.99 469.98,132.61 462.89,120.73C455.8,108.71 452.25,95 452.25,79.61C452.25,64.07 455.8,50.36 462.89,38.49C469.98,26.46 479.74,17.08 492.15,10.34C504.57,3.45 518.83,0 534.94,0C551.2,0 565.53,3.45 577.95,10.34C590.36,17.08 600.11,26.46 607.21,38.49C614.3,50.36 617.85,64.07 617.85,79.61C617.85,95 614.3,108.71 607.21,120.73C600.26,132.61 590.58,141.99 578.17,148.88C565.75,155.63 551.49,159 535.38,159ZM535.38,121.61C543.36,121.61 550.38,119.86 556.44,116.34C562.5,112.67 567.23,107.69 570.63,101.38C574.03,95.08 575.73,87.82 575.73,79.61C575.73,71.4 573.96,64.14 570.41,57.84C567.01,51.39 562.21,46.4 556,42.88C549.94,39.22 542.92,37.39 534.94,37.39C527.1,37.39 520.09,39.22 513.88,42.88C507.82,46.4 503.02,51.39 499.47,57.84C496.07,64.14 494.37,71.4 494.37,79.61C494.37,87.82 496.14,95.08 499.69,101.38C503.24,107.69 508.04,112.67 514.1,116.34C520.31,119.86 527.4,121.61 535.38,121.61Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M636.66,156.36V2.42H677.68V156.36H636.66ZM659.72,156.36L659.72,121.61L727.59,121.61L727.59,156.36L659.72,156.36Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M759.31,156.36V15.17H800.33V156.36H759.31ZM715.42,37.39L715.42,2.42H844L844,37.39H715.42Z"
android:fillColor="#ffffff"/>
</vector>