-
Notifications
You must be signed in to change notification settings - Fork 35
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
New application main color #112
Conversation
Checked UI if it is iOS 11 compatible
Посмотрел, как интерфейс ведет себя на iOS 11. Выяснилось, что поиск в navigation bar-е просто ломает нам всё. Также теперь точно хорошо работает навигация в ситуации, когда полоска тени на каком-то контроллере не нужна (смотреть Думаю, можно смотреть, тестировать и мерджить. |
Stepic/HTMLBuilder.swift
Outdated
res += "\nh1{font-size: 20pt; font-family:Arial, Helvetica, sans-serif; line-height:1.6em; text-align: center;}" | ||
res += "\nh2{font-size: 17pt; font-family:Arial, Helvetica, sans-serif; line-height:1.6em; text-align: center;}" | ||
res += "\nh3{font-size: 14pt; font-family:Arial, Helvetica, sans-serif; line-height:1.6em; text-align: center;}" | ||
res += "\nbody{font-size: 12pt; font-family:Arial, Helvetica, sans-serif; line-height:1.6em; color: #535366; }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо проверить, кажется, что эти стили юзаются и в адаптивных.
То же самое с остальными элементами, кстати.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В адаптивных мы разве тоже меняем цвет текста?
Stepic/StepikLabel.swift
Outdated
applyStyles() | ||
} | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Комменты выпиливаем?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, спасибо
Stepic/UIColorExtensions.swift
Outdated
static let navigationColor = stepicGreenColor() | ||
static let mainLightColor: UIColor = UIColor(hex: 0xf6f6f6) | ||
static let mainDarkColor: UIColor = UIColor(hex: 0x535366) | ||
static let mainTextColor: UIColor = UIColor(hex: 0x535366) | ||
|
||
class func backgroundColor() -> UIColor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может сразу отрефакторить это всё: сделать цвета свойствами, а не методами (как-то Swift 2 напоминает)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, давно пора)
Итого, надо
|
@kvld В адаптивном приложении для текста используются разные цвета в разных местах. Так что задачи про
остаются на тебе в следующий релиз. Ты потратишь сильно меньше времени на все это и сделаешь качественнее. |
This reverts commit d3b9bde.
Задача: #APPS-1418
Коротко для Release Notes, в формате «Сделали/Добавили/Исправили N»:
Изменили цветовую схему приложения.
Описание:
StepikLabel
со стилями,UILabel
выпилен примерно везде.StyledNavigationController
.navigationBar
полупиксельную shadow линию, чтобы все хорошо работало на степах. Там вLessonViewController
красота с использованиемUINavigationControllerDelegate
творится.update: Добавил аналогичное поведение и в
FindCoursesViewController
. Надо подумать, как этот код можно вынести для переиспользования, ибо сейчас просто копипаст.UISearchBar
после того, как поставилиshadowView
начал как-то неистово себя вести, постоянно расширяясь за экран - вFindCoursesViewController
целых два костыля, которые фиксят поведение при нажатии на серчбар или появлении контроллера в UINavigation стеке (здесь пришлось прятать строку поиска и после transition-а быстро анимировать появление).update: Запилил кастомный серчбар так, что он не ломает все нафиг на iOS 11. А еще там анимашки прикольные.