瀏覽代碼

Fix empty screen font style (#8197)

stevenyomi 2 年之前
父節點
當前提交
4e544005fe
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/src/main/java/eu/kanade/presentation/components/EmptyScreen.kt

+ 1 - 3
app/src/main/java/eu/kanade/presentation/components/EmptyScreen.kt

@@ -26,7 +26,6 @@ import androidx.compose.ui.graphics.vector.ImageVector
 import androidx.compose.ui.layout.Layout
 import androidx.compose.ui.layout.layoutId
 import androidx.compose.ui.res.stringResource
-import androidx.compose.ui.text.font.FontFamily
 import androidx.compose.ui.text.style.TextAlign
 import androidx.compose.ui.tooling.preview.Preview
 import androidx.compose.ui.unit.dp
@@ -66,13 +65,12 @@ fun EmptyScreen(
                 Text(
                     text = face,
                     modifier = Modifier.secondaryItemAlpha(),
-                    fontFamily = FontFamily.Monospace,
                     style = MaterialTheme.typography.displayMedium,
                 )
 
                 Text(
                     text = message,
-                    modifier = Modifier.paddingFromBaseline(top = 24.dp),
+                    modifier = Modifier.paddingFromBaseline(top = 24.dp).secondaryItemAlpha(),
                     style = MaterialTheme.typography.bodyMedium,
                 )
             }