Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Стили для текста #47

Merged
merged 19 commits into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
e18a1b6
1. Добавлены шрифты.
NikolayRyabcev Dec 1, 2023
24fc979
1. Обновлены шрифты
NikolayRyabcev Dec 1, 2023
caf9bce
1. удалены лишние
NikolayRyabcev Dec 1, 2023
9ceccca
1. Удален файл с размерами шрифтов.
NikolayRyabcev Dec 2, 2023
330f3de
1. Добавлено наследование стилей
NikolayRyabcev Dec 2, 2023
8eb1a87
1. Перезагружаем шрифты
NikolayRyabcev Dec 2, 2023
ff0bd9b
1. Шрифты перезагружены
NikolayRyabcev Dec 2, 2023
d67cd1c
1. Добавлены стили для списков
NikolayRyabcev Dec 2, 2023
b5e7efa
1. Добавлен стиль для текста ошибки
NikolayRyabcev Dec 2, 2023
1c1206f
1. Серый цвет в стилях
NikolayRyabcev Dec 2, 2023
73003af
1. Остальные цвета перенесены в темы.
NikolayRyabcev Dec 2, 2023
844cee2
Merge remote-tracking branch 'origin/feature/44_typography' into feat…
NikolayRyabcev Dec 2, 2023
76f2307
1. Темная тема дописана
NikolayRyabcev Dec 2, 2023
a210f8b
1. Переименованы стили
NikolayRyabcev Dec 2, 2023
95297fc
1. Переименованы стили
NikolayRyabcev Dec 2, 2023
8177969
1. переименовал папку стили
NikolayRyabcev Dec 2, 2023
f7f9dcc
Merge remote-tracking branch 'origin/develop' into feature/44_typography
NikolayRyabcev Dec 3, 2023
d489410
1. Переименованы стили
NikolayRyabcev Dec 3, 2023
731802a
1. Исправлены названия стилей
NikolayRyabcev Dec 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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_medium.ttf
Binary file not shown.
Binary file added app/src/main/res/font/ys_display_regular.ttf
Binary file not shown.
2 changes: 2 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,7 @@
<item name="colorOnPrimary">@color/white</item>
<!--White[Night]-->
<item name="colorOnSecondary">@color/black</item>

<item name="colorAccent">@color/gray</item>
</style>
</resources>
72 changes: 72 additions & 0 deletions app/src/main/res/values/style.xml
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Widget.HH.Text" parent="TextAppearance.AppCompat">
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
<item name="android:textColor">@color/black</item>
</style>

<style name="bold_32" parent="Widget.HH.Text">
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
<item name="android:textSize">32sp</item>
<item name="android:fontFamily">@font/ys_display_bold</item>
</style>

<style name="medium_22" parent="Widget.HH.Text">
<item name="android:textSize">22sp</item>
<item name="android:fontFamily">@font/ys_display_medium</item>
</style>

<style name="medium_16" parent="Widget.HH.Text">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">@font/ys_display_medium</item>
</style>

<style name="regular_16" parent="Widget.HH.Text">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">@font/ys_display_regular</item>
</style>

<style name="regular_12" parent="Widget.HH.Text">
<item name="android:textSize">12sp</item>
<item name="android:fontFamily">@font/ys_display_regular</item>
</style>

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

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

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

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

<!--Заголовок вакансий-->
<style name="vacancy_header" parent="medium_22">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Раздел описания вакансии-->
<style name="vacancy_chapter" parent="medium_16">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Содержимое раздела вакансии-->
<style name="vacancy_content" parent="regular_16">
<item name="android:color">?attr/colorOnPrimary</item>
</style>

<!--Текст ошибки-->
<style name="error_text" parent="medium_22">
<item name="android:color">?attr/colorOnPrimary</item>
<item name="android:gravity">center</item>
</style>
</resources>
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>
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
<item name="colorPrimary">@color/blue</item>
NikolayRyabcev marked this conversation as resolved.
Show resolved Hide resolved
<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