mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Create alias for typography (more semantic name). aliasButtonText
This commit is contained in:
committed by
Benoit Marty
parent
b7b6e0323d
commit
3e03ca4a5e
+3
-2
@@ -39,6 +39,7 @@ import io.element.android.libraries.designsystem.theme.components.CircularProgre
|
||||
import io.element.android.libraries.designsystem.theme.components.ElementButtonDefaults
|
||||
import io.element.android.libraries.designsystem.theme.components.Text
|
||||
import io.element.android.libraries.theme.ElementTheme
|
||||
import io.element.android.libraries.theme.aliasButtonText
|
||||
|
||||
/**
|
||||
* A component that will display a button with an indeterminate circular progressbar.
|
||||
@@ -87,10 +88,10 @@ fun ButtonWithProgress(
|
||||
)
|
||||
if (progressText != null) {
|
||||
Spacer(Modifier.width(10.dp))
|
||||
Text(progressText, style = ElementTheme.typography.fontBodyLgMedium)
|
||||
Text(progressText, style = ElementTheme.typography.aliasButtonText)
|
||||
}
|
||||
} else if (text != null) {
|
||||
Text(text, style = ElementTheme.typography.fontBodyLgMedium)
|
||||
Text(text, style = ElementTheme.typography.aliasButtonText)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user