-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
170 additions
and
167 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
app/src/androidMain/kotlin/dev/alvr/katana/ui/main/components/SessionExpiredDialog.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
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
2 changes: 1 addition & 1 deletion
2
ui/account/src/commonMain/kotlin/dev/alvr/katana/ui/account/view/AccountScreen.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
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
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
15 changes: 12 additions & 3 deletions
15
ui/base/src/commonMain/kotlin/dev/alvr/katana/ui/base/design/Katana.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 |
---|---|---|
@@ -1,16 +1,25 @@ | ||
package dev.alvr.katana.ui.base.design | ||
|
||
import androidx.compose.material.MaterialTheme | ||
import androidx.compose.foundation.isSystemInDarkTheme | ||
import androidx.compose.material3.MaterialTheme | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.graphics.Color | ||
import com.materialkolor.PaletteStyle.Vibrant | ||
import com.materialkolor.dynamicColorScheme | ||
|
||
@Composable | ||
fun KatanaTheme( | ||
content: @Composable () -> Unit, | ||
) { | ||
MaterialTheme( | ||
colors = KatanaDarkTheme, | ||
colorScheme = dynamicColorScheme( | ||
seedColor = Color(ColorSeed), | ||
isDark = isSystemInDarkTheme(), | ||
style = Vibrant, | ||
), | ||
typography = KatanaTypography, | ||
shapes = KatanaShapes, | ||
content = content, | ||
) | ||
} | ||
|
||
private const val ColorSeed = 0xFF333941 // Same as Android's windowSplashScreenBackground attr |
10 changes: 0 additions & 10 deletions
10
ui/base/src/commonMain/kotlin/dev/alvr/katana/ui/base/design/colors.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
ui/base/src/commonMain/kotlin/dev/alvr/katana/ui/base/design/shapes.kt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
ui/base/src/commonMain/kotlin/dev/alvr/katana/ui/base/design/themes.kt
This file was deleted.
Oops, something went wrong.
28 changes: 23 additions & 5 deletions
28
ui/base/src/commonMain/kotlin/dev/alvr/katana/ui/base/design/typography.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 |
---|---|---|
@@ -1,21 +1,39 @@ | ||
package dev.alvr.katana.ui.base.design | ||
|
||
import androidx.compose.material.Typography | ||
import androidx.compose.material3.Typography | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.text.font.Font | ||
import androidx.compose.ui.text.font.FontFamily | ||
import androidx.compose.ui.text.font.FontStyle | ||
import androidx.compose.ui.text.font.FontWeight | ||
|
||
internal val KatanaTypography | ||
@Composable get() = Typography( | ||
defaultFontFamily = FontFamily( | ||
@Composable get() = Typography().apply { | ||
val fontFamily = FontFamily( | ||
font("barlow_light", FontWeight.Light, FontStyle.Normal), | ||
font("barlow_normal", FontWeight.Normal, FontStyle.Normal), | ||
font("barlow_medium", FontWeight.Medium, FontStyle.Normal), | ||
font("barlow_bold", FontWeight.Bold, FontStyle.Normal), | ||
), | ||
) | ||
) | ||
|
||
copy( | ||
displayLarge = displayLarge.copy(fontFamily = fontFamily), | ||
displayMedium = displayMedium.copy(fontFamily = fontFamily), | ||
displaySmall = displaySmall.copy(fontFamily = fontFamily), | ||
headlineLarge = headlineLarge.copy(fontFamily = fontFamily), | ||
headlineMedium = headlineMedium.copy(fontFamily = fontFamily), | ||
headlineSmall = headlineSmall.copy(fontFamily = fontFamily), | ||
titleLarge = titleLarge.copy(fontFamily = fontFamily), | ||
titleMedium = titleMedium.copy(fontFamily = fontFamily), | ||
titleSmall = titleSmall.copy(fontFamily = fontFamily), | ||
bodyLarge = bodyLarge.copy(fontFamily = fontFamily), | ||
bodyMedium = bodyMedium.copy(fontFamily = fontFamily), | ||
bodySmall = bodySmall.copy(fontFamily = fontFamily), | ||
labelLarge = labelLarge.copy(fontFamily = fontFamily), | ||
labelMedium = labelMedium.copy(fontFamily = fontFamily), | ||
labelSmall = labelSmall.copy(fontFamily = fontFamily), | ||
) | ||
} | ||
|
||
@Composable | ||
internal expect fun font(font: String, weight: FontWeight, style: FontStyle): Font |
Oops, something went wrong.