Skip to content

Commit

Permalink
Add monospace font to account addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Vlasov committed Jun 18, 2019
1 parent 9a60608 commit 36460f8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
20 changes: 11 additions & 9 deletions src/status_im/ui/components/typography.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@
(assoc style :font-family default-font-family)
(-> style
(assoc :font-family
(str default-font-family "-"
(case font-weight
"400" (when-not (= font-style :italic)
"Regular")
"500" "Medium"
"600" "SemiBold"
"700" "Bold")
(when (= font-style :italic)
"Italic")))
(if (= (:font-family style) "monospace")
(if platform/ios? "Menlo-Regular" "monospace")
(str default-font-family "-"
(case font-weight
"400" (when-not (= font-style :italic)
"Regular")
"500" "Medium"
"600" "SemiBold"
"700" "Bold")
(when (= font-style :italic)
"Italic"))))
(dissoc :font-weight :font-style)))))

(defn get-nested-style
Expand Down
4 changes: 3 additions & 1 deletion src/status_im/ui/screens/intro/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@
:number-of-lines 1
:ellipsize-mode :middle}
(gfy/generate-gfy (:pubkey acc))]
[react/text {:style (assoc styles/wizard-text :text-align :left)
[react/text {:style (assoc styles/wizard-text
:text-align :left
:font-family "monospace")
:number-of-lines 1
:ellipsize-mode :middle}
(:pubkey acc)]]
Expand Down

0 comments on commit 36460f8

Please sign in to comment.