This commit is contained in:
parent
b7a090716d
commit
a8e9b2486b
|
@ -1,9 +1,5 @@
|
||||||
(ns quo2.components.text-combinations.style)
|
(ns quo2.components.text-combinations.style)
|
||||||
|
|
||||||
(defn container
|
|
||||||
[container-style]
|
|
||||||
(assoc container-style :margin-horizontal 20))
|
|
||||||
|
|
||||||
(def title-container
|
(def title-container
|
||||||
{:flex-direction :row
|
{:flex-direction :row
|
||||||
:align-items :center})
|
:align-items :center})
|
||||||
|
|
|
@ -23,9 +23,8 @@
|
||||||
avatar
|
avatar
|
||||||
title-accessibility-label
|
title-accessibility-label
|
||||||
description
|
description
|
||||||
description-props
|
|
||||||
description-accessibility-label]}]
|
description-accessibility-label]}]
|
||||||
[rn/view {:style (style/container container-style)}
|
[rn/view {:style container-style}
|
||||||
[rn/view {:style style/title-container}
|
[rn/view {:style style/title-container}
|
||||||
(when avatar
|
(when avatar
|
||||||
[rn/view {:style style/avatar-container}
|
[rn/view {:style style/avatar-container}
|
||||||
|
@ -38,14 +37,12 @@
|
||||||
:number-of-lines 1
|
:number-of-lines 1
|
||||||
:size :heading-1}
|
:size :heading-1}
|
||||||
title]]
|
title]]
|
||||||
(case description
|
(when description
|
||||||
:description
|
|
||||||
[text/text
|
[text/text
|
||||||
{:accessibility-label description-accessibility-label
|
{:accessibility-label description-accessibility-label
|
||||||
:weight :regular
|
:weight :regular
|
||||||
:size :paragraph-1
|
:size :paragraph-1
|
||||||
:style style/description-description-text}
|
:style style/description-description-text}
|
||||||
description-props]
|
description])])
|
||||||
nil)])
|
|
||||||
|
|
||||||
(def view (theme/with-theme view-internal))
|
(def view (theme/with-theme view-internal))
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
:border-color (colors/theme-colors colors/white colors/neutral-95)
|
:border-color (colors/theme-colors colors/white colors/neutral-95)
|
||||||
:position :absolute
|
:position :absolute
|
||||||
:top (- (+ picture-radius picture-border-width))
|
:top (- (+ picture-radius picture-border-width))
|
||||||
:left (- (/ picture-radius 2) picture-border-width)}))
|
:left (+ (/ picture-radius 2) picture-border-width)}))
|
||||||
|
|
||||||
(defn display-picture
|
(defn display-picture
|
||||||
[theme]
|
[theme]
|
||||||
|
|
|
@ -228,33 +228,22 @@
|
||||||
[category (update v :chats add-on-press)])
|
[category (update v :chats add-on-press)])
|
||||||
categorized-chats)))
|
categorized-chats)))
|
||||||
|
|
||||||
|
|
||||||
(defn community-header
|
(defn community-header
|
||||||
[title logo]
|
[title logo description]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style
|
{:container-style
|
||||||
{:margin-horizontal 0
|
{:margin-top
|
||||||
:padding-right 20
|
|
||||||
:margin-top
|
|
||||||
(if logo
|
(if logo
|
||||||
12
|
12
|
||||||
(+ scroll-page.style/picture-radius
|
(+ scroll-page.style/picture-radius
|
||||||
scroll-page.style/picture-border-width
|
scroll-page.style/picture-border-width
|
||||||
12))}
|
12))
|
||||||
|
:margin-bottom 12}
|
||||||
:avatar logo
|
:avatar logo
|
||||||
:title title
|
:title title
|
||||||
:title-accessibility-label :chat-name-text}])
|
:description description
|
||||||
|
:title-accessibility-label :community-title
|
||||||
(defn community-description
|
:description-accessibility-label :community-description}])
|
||||||
[description]
|
|
||||||
[quo/text
|
|
||||||
{:accessibility-label :community-description-text
|
|
||||||
:number-of-lines 4
|
|
||||||
:ellipsize-mode :tail
|
|
||||||
:weight :regular
|
|
||||||
:size :paragraph-1
|
|
||||||
:style {:margin-top 8 :margin-bottom 12}}
|
|
||||||
description])
|
|
||||||
|
|
||||||
(defn community-content
|
(defn community-content
|
||||||
[{:keys [name description joined images tags color id]
|
[{:keys [name description joined images tags color id]
|
||||||
|
@ -268,9 +257,8 @@
|
||||||
[rn/view {:style style/community-content-container}
|
[rn/view {:style style/community-content-container}
|
||||||
(when-not collapsed?
|
(when-not collapsed?
|
||||||
[status-tag pending? joined])
|
[status-tag pending? joined])
|
||||||
[community-header name (when collapsed? (get-in images [:thumbnail :uri]))]
|
[community-header name (when collapsed? (get-in images [:thumbnail :uri]))
|
||||||
(when-not collapsed?
|
(when-not collapsed? description)]
|
||||||
[community-description description])
|
|
||||||
(when-not collapsed?
|
(when-not collapsed?
|
||||||
[quo/community-tags
|
[quo/community-tags
|
||||||
{:tags tags
|
{:tags tags
|
||||||
|
|
|
@ -13,11 +13,10 @@
|
||||||
(defn page-title
|
(defn page-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style {:margin-top 12}
|
{:container-style {:margin-top 12 :margin-horizontal 20}
|
||||||
:title (i18n/label :t/enable-biometrics)
|
:title (i18n/label :t/enable-biometrics)
|
||||||
:title-accessibility-label :enable-biometrics-title
|
:title-accessibility-label :enable-biometrics-title
|
||||||
:description :description
|
:description (i18n/label :t/use-biometrics)
|
||||||
:description-props (i18n/label :t/use-biometrics)
|
|
||||||
:description-accessibility-label :enable-biometrics-sub-title}])
|
:description-accessibility-label :enable-biometrics-sub-title}])
|
||||||
|
|
||||||
(defn enable-biometrics-buttons
|
(defn enable-biometrics-buttons
|
||||||
|
|
|
@ -12,11 +12,10 @@
|
||||||
(defn page-title
|
(defn page-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style {:margin-top 12}
|
{:container-style {:margin-top 12 :margin-horizontal 20}
|
||||||
:title (i18n/label :t/intro-wizard-title6)
|
:title (i18n/label :t/intro-wizard-title6)
|
||||||
:title-accessibility-label :notifications-title
|
:title-accessibility-label :notifications-title
|
||||||
:description :description
|
:description (i18n/label :t/enable-notifications-sub-title)
|
||||||
:description-props (i18n/label :t/enable-notifications-sub-title)
|
|
||||||
:description-accessibility-label :notifications-sub-title}])
|
:description-accessibility-label :notifications-sub-title}])
|
||||||
|
|
||||||
(defn enable-notification-buttons
|
(defn enable-notification-buttons
|
||||||
|
|
|
@ -12,17 +12,20 @@
|
||||||
(defn generate-keys-title
|
(defn generate-keys-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:title (i18n/label :t/generating-keys)}])
|
{:container-style {:margin-horizontal 20}
|
||||||
|
:title (i18n/label :t/generating-keys)}])
|
||||||
|
|
||||||
(defn saving-keys-title
|
(defn saving-keys-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:title (i18n/label :t/saving-keys-to-device)}])
|
{:container-style {:margin-horizontal 20}
|
||||||
|
:title (i18n/label :t/saving-keys-to-device)}])
|
||||||
|
|
||||||
(defn keys-saved-title
|
(defn keys-saved-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:title (i18n/label :t/keys-saved)}])
|
{:container-style {:margin-horizontal 20}
|
||||||
|
:title (i18n/label :t/keys-saved)}])
|
||||||
|
|
||||||
(def first-transition-delay-ms 2000)
|
(def first-transition-delay-ms 2000)
|
||||||
|
|
||||||
|
|
|
@ -13,12 +13,11 @@
|
||||||
(defn page-title
|
(defn page-title
|
||||||
[pairing-progress?]
|
[pairing-progress?]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style {:margin-top 56}
|
{:container-style {:margin-top 56 :margin-horizontal 20}
|
||||||
:title (i18n/label (if pairing-progress?
|
:title (i18n/label (if pairing-progress?
|
||||||
:t/sync-devices-title
|
:t/sync-devices-title
|
||||||
:t/sync-devices-error-title))
|
:t/sync-devices-error-title))
|
||||||
:description :description
|
:description (i18n/label (if pairing-progress?
|
||||||
:description-props (i18n/label (if pairing-progress?
|
|
||||||
:t/sync-devices-sub-title
|
:t/sync-devices-sub-title
|
||||||
:t/sync-devices-error-sub-title))
|
:t/sync-devices-error-sub-title))
|
||||||
:title-accessibility-label :progress-screen-title
|
:title-accessibility-label :progress-screen-title
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
(defn page-title
|
(defn page-title
|
||||||
[]
|
[]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:title (i18n/label :t/sync-devices-complete-title)
|
{:container-style {:margin-horizontal 20}
|
||||||
|
:title (i18n/label :t/sync-devices-complete-title)
|
||||||
:title-accessibility-label :sync-devices-title
|
:title-accessibility-label :sync-devices-title
|
||||||
:description :description
|
:description (i18n/label :t/sync-devices-complete-sub-title)
|
||||||
:description-props (i18n/label :t/sync-devices-complete-sub-title)
|
|
||||||
:description-accessibility-label :sync-devices-complete-sub-title}])
|
:description-accessibility-label :sync-devices-complete-sub-title}])
|
||||||
|
|
||||||
(defn current-device
|
(defn current-device
|
||||||
|
|
|
@ -12,13 +12,12 @@
|
||||||
[]
|
[]
|
||||||
(let [new-account? (rf/sub [:onboarding-2/new-account?])]
|
(let [new-account? (rf/sub [:onboarding-2/new-account?])]
|
||||||
[quo/text-combinations
|
[quo/text-combinations
|
||||||
{:container-style {:margin-top 12}
|
{:container-style {:margin-top 12 :margin-horizontal 20}
|
||||||
:title (i18n/label (if new-account?
|
:title (i18n/label (if new-account?
|
||||||
:t/welcome-to-web3
|
:t/welcome-to-web3
|
||||||
:t/welcome-back))
|
:t/welcome-back))
|
||||||
:title-accessibility-label :welcome-title
|
:title-accessibility-label :welcome-title
|
||||||
:description :description
|
:description (i18n/label :t/welcome-to-web3-sub-title)
|
||||||
:description-props (i18n/label :t/welcome-to-web3-sub-title)
|
|
||||||
:description-accessibility-label :welcome-sub-title}]))
|
:description-accessibility-label :welcome-sub-title}]))
|
||||||
|
|
||||||
(defn dispatch-visibility-status-update
|
(defn dispatch-visibility-status-update
|
||||||
|
|
Loading…
Reference in New Issue