ursus
02/27/2024, 12:46 PMfootnote
)
What should I do? Should I create mental alias in my head,
or should I provide extensions over Typography
(say like val Typography.subheadline
etc?) and implement all the names they use and simply don't use the names on MaterialTheme.typography
which are extra?
Or should I create my own composition local and only use that, i.e MyTheme.typography
?alaershov
02/27/2024, 12:48 PMursus
02/27/2024, 12:53 PMMaterialTheme
or replace it?ursus
02/27/2024, 12:53 PMalaershov
02/27/2024, 12:54 PMursus
02/27/2024, 12:54 PMalaershov
02/27/2024, 12:55 PMalaershov
02/27/2024, 12:55 PMalaershov
02/27/2024, 12:55 PMursus
02/27/2024, 12:59 PMMaterialTheme.typography
in your composables, right? but simply pretend it's not therealaershov
02/27/2024, 1:00 PMursus
02/27/2024, 1:00 PMursus
02/27/2024, 1:00 PMalaershov
02/27/2024, 1:01 PMursus
02/27/2024, 1:01 PM// Use with MaterialTheme.typography.textFieldInput
val Typography.textFieldInput: TextStyle
get() = TextStyle(/* ... */)
ursus
02/27/2024, 1:02 PMprivate val foo = TExtStyle (..)
and then just return this instance in the extension getteralaershov
02/27/2024, 1:08 PMursus
02/27/2024, 1:14 PMobject
alaershov
02/27/2024, 1:15 PMursus
02/27/2024, 1:16 PMalaershov
02/27/2024, 1:17 PMursus
02/27/2024, 1:18 PMalaershov
02/27/2024, 1:25 PMursus
02/27/2024, 1:25 PMalaershov
02/27/2024, 1:25 PMursus
02/27/2024, 1:26 PMalaershov
02/27/2024, 1:26 PMalaershov
02/27/2024, 1:26 PMursus
02/27/2024, 1:30 PMursus
02/27/2024, 1:30 PMalaershov
02/27/2024, 1:30 PMursus
02/27/2024, 1:31 PMalaershov
02/27/2024, 1:31 PMursus
02/27/2024, 1:32 PMalaershov
02/27/2024, 2:10 PMalaershov
02/27/2024, 2:11 PMursus
02/27/2024, 2:38 PMursus
02/27/2024, 2:38 PMalaershov
02/27/2024, 2:39 PMursus
02/27/2024, 2:40 PMalaershov
02/27/2024, 2:43 PMursus
02/27/2024, 2:43 PMalaershov
02/28/2024, 6:38 AMursus
02/28/2024, 2:34 PM