Skip to content

Commit

Permalink
Merge pull request #47 from artwist-polyakov/feature/44_typography
Browse files Browse the repository at this point in the history
Стили для текста
  • Loading branch information
NikolayRyabcev authored Dec 3, 2023
2 parents 65bb09f + 731802a commit 2509e47
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
Binary file added app/src/main/res/font/ys_display_bold.ttf
Binary file not shown.
Binary file added app/src/main/res/font/ys_display_regular.ttf
Binary file not shown.
6 changes: 6 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
<item name="colorOnPrimary">@color/white</item>
<!--White[Night]-->
<item name="colorOnSecondary">@color/black</item>

<item name="textFillColor">@color/blue</item>
<item name="colorAccent">@color/red</item>
<item name="colorOnTertiary">@color/gray</item>
<item name="colorOnContainer">@color/light_gray</item>
<item name="colorOnBackground">@color/background</item>
</style>
</resources>
68 changes: 68 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,74 @@
<resources>

<style name="Text" parent="TextAppearance.AppCompat">
<item name="android:textColor">@color/black</item>
</style>

<style name="Text.Bold32">
<item name="android:textSize">32sp</item>
<item name="android:fontFamily">@font/ys_display_bold</item>
</style>

<style name="Text.Medium22">
<item name="android:textSize">22sp</item>
<item name="android:fontFamily">@font/ys_display_medium</item>
</style>

<style name="Text.Medium16">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">@font/ys_display_medium</item>
</style>

<style name="Text.Regular16">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">@font/ys_display_regular</item>
</style>

<style name="Text.Regular12">
<item name="android:textSize">12sp</item>
<item name="android:fontFamily">@font/ys_display_regular</item>
</style>

<!--Элемент списка вакансий, заголовок-->
<style name="Text.Medium22.listElementHeader">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Элемент списка вакансий, описание-->
<style name="Text.Regular16.listElementDescription">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Элемент списка местоположений активный-->
<style name="Text.Regular16.listPlacesActive">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Элемент списка неактивный-->
<style name="Text.Regular16.listPlacesInactive">
<item name="android:color">?attr/colorOnTertiary</item>
</style>

<!--Заголовок раздела вакансий-->
<style name="Text.Medium22.vacancyHeader">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Часть раздела вакансии-->
<style name="Text.Medium16.vacancyChapter">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Содержимое части раздела вакансии-->
<style name="Text.Regular16.vacancyContent">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Текст ошибки-->
<style name="Text.Medium22.errorText">
<item name="android:color">?attr/colorOnPrimary</item>
<item name="android:gravity">center</item>
=======
<item name="android:textColor">?attr/colorOnPrimary</item>
</style>

Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<item name="colorOnPrimary">@color/black</item>
<!--White[Day]-->
<item name="colorOnSecondary">@color/white</item>
<item name="textFillColor">@color/blue</item>
<item name="colorAccent">@color/red</item>
<item name="colorOnTertiary">@color/gray</item>
<item name="colorOnContainer">@color/light_gray</item>
<item name="colorOnBackground">@color/background</item>
</style>

<style name="Theme.PracticumAndroidDiploma" parent="Base.Theme.PracticumAndroidDiploma" />
Expand Down

0 comments on commit 2509e47

Please sign in to comment.