Various fixes on messaging view

This commit is contained in:
Andrea Maria Piana 2023-08-07 14:02:49 +01:00
parent 6274bd7cb6
commit 016b38f15c
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
4 changed files with 14 additions and 15 deletions

View File

@ -4,7 +4,7 @@
(def container (def container
{:flex-wrap :wrap {:flex-wrap :wrap
:flex-direction :row :flex-direction :row
:align-items :baseline}) :align-items :center})
(def middle-dot-nickname (def middle-dot-nickname
{:color colors/neutral-50 {:color colors/neutral-50

View File

@ -7,18 +7,15 @@
[quo2.theme :as theme] [quo2.theme :as theme]
[react-native.core :as rn])) [react-native.core :as rn]))
(defn add-reaction (defn- add-reaction-internal
[{:keys [on-press]}] [{:keys [on-press theme]}]
(let [dark? (theme/dark?)] [rn/touchable-opacity
[rn/touchable-opacity {:on-press on-press
{:on-press on-press :accessibility-label :emoji-reaction-add
:accessibility-label :emoji-reaction-add :style (style/add-reaction)}
:style (style/add-reaction)} [icons/icon :i/add-reaction
[icons/icon :i/add-reaction {:size 20
{:size 20 :color (colors/theme-colors colors/neutral-50 colors/white theme)}]])
:color (if dark?
colors/white
colors/neutral-100)}]]))
(defn reaction (defn reaction
"Add your emoji as a param here" "Add your emoji as a param here"
@ -41,3 +38,5 @@
:justify-content :center} :justify-content :center}
(when (pos? numeric-value) (when (pos? numeric-value)
(str " " numeric-value))]])) (str " " numeric-value))]]))
(def add-reaction (theme/with-theme add-reaction-internal))

View File

@ -73,7 +73,7 @@
:size :xxxs}] :size :xxxs}]
[quo/text [quo/text
{:weight :semi-bold {:weight :semi-bold
:size :label :size :paragraph-2
:number-of-lines 1 :number-of-lines 1
:style style/message-author-text} :style style/message-author-text}
(format-reply-author from contact-name current-public-key)]])) (format-reply-author from contact-name current-public-key)]]))

View File

@ -112,7 +112,7 @@
:max-font-size-multiplier 1 :max-font-size-multiplier 1
:multiline true :multiline true
:placeholder (i18n/label :t/type-something) :placeholder (i18n/label :t/type-something)
:placeholder-text-color (colors/theme-colors colors/neutral-40 colors/neutral-50) :placeholder-text-color (colors/theme-colors colors/neutral-30 colors/neutral-50)
:style (style/input-text props state subs max-height) :style (style/input-text props state subs max-height)
:max-length constants/max-text-size :max-length constants/max-text-size
:accessibility-label :chat-message-input}]] :accessibility-label :chat-message-input}]]