This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding in Type.kt and updating README screenshots
- Loading branch information
1 parent
cd0bb28
commit 6949be7
Showing
6 changed files
with
59 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
app/src/main/java/com/google/samples/apps/sunflower/ui/Type.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.samples.apps.sunflower.ui | ||
|
||
import androidx.compose.material3.Typography | ||
import androidx.compose.ui.text.TextStyle | ||
import androidx.compose.ui.text.font.FontWeight | ||
import androidx.compose.ui.unit.sp | ||
|
||
|
||
val Typography = Typography( | ||
displaySmall = TextStyle( | ||
fontWeight = FontWeight.Normal, | ||
fontSize = 36.sp | ||
), | ||
headlineSmall = TextStyle( | ||
fontWeight = FontWeight.Normal, | ||
fontSize = 30.sp | ||
), | ||
labelSmall = TextStyle( | ||
fontWeight = FontWeight.Normal, | ||
fontSize = 13.sp | ||
), | ||
titleSmall = TextStyle( | ||
fontWeight = FontWeight.Bold, | ||
fontSize = 14.sp | ||
), | ||
titleMedium = TextStyle( | ||
fontWeight = FontWeight.SemiBold, | ||
letterSpacing = (.5).sp, | ||
fontSize = 18.sp | ||
), | ||
titleLarge = TextStyle( | ||
fontWeight = FontWeight.Normal, | ||
fontSize = 24.sp | ||
), | ||
) |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.