Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
34
iphone/Maps/Core/Theme/BookmarksStyleSheet.swift
Normal file
34
iphone/Maps/Core/Theme/BookmarksStyleSheet.swift
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
enum BookmarksStyleSheet: String, CaseIterable {
|
||||
case bookmarksCategoryTextView = "BookmarksCategoryTextView"
|
||||
case bookmarksCategoryDeleteButton = "BookmarksCategoryDeleteButton"
|
||||
case bookmarksActionCreateIcon = "BookmarksActionCreateIcon"
|
||||
case bookmarkSharingLicense = "BookmarkSharingLicense"
|
||||
}
|
||||
|
||||
extension BookmarksStyleSheet: IStyleSheet {
|
||||
func styleResolverFor(colors: IColors, fonts: IFonts) -> Theme.StyleResolver {
|
||||
switch self {
|
||||
case .bookmarksCategoryTextView:
|
||||
return .add { s in
|
||||
s.font = fonts.regular16
|
||||
s.fontColor = colors.blackPrimaryText
|
||||
s.textContainerInset = UIEdgeInsets(top: 0, left: 0, bottom: 0, right: 0)
|
||||
}
|
||||
case .bookmarksCategoryDeleteButton:
|
||||
return .add { s in
|
||||
s.font = fonts.regular17
|
||||
s.fontColor = colors.red
|
||||
s.fontColorDisabled = colors.blackHintText
|
||||
}
|
||||
case .bookmarksActionCreateIcon:
|
||||
return .add { s in
|
||||
s.tintColor = colors.linkBlue
|
||||
}
|
||||
case .bookmarkSharingLicense:
|
||||
return .addFrom(GlobalStyleSheet.termsOfUseLinkText) { s in
|
||||
s.fontColor = colors.blackSecondaryText
|
||||
s.font = fonts.regular14
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue