2016-05-19 18:31:56 +02:00
|
|
|
(ns status-im.chats-list.styles
|
2016-09-16 18:30:19 +03:00
|
|
|
(:require [status-im.components.styles :refer [color-white
|
2016-07-06 17:52:44 +03:00
|
|
|
color-blue
|
|
|
|
online-color
|
|
|
|
text1-color
|
|
|
|
text2-color
|
|
|
|
new-messages-count-color]]
|
2016-06-16 12:44:56 +03:00
|
|
|
[status-im.components.tabs.styles :refer [tabs-height]]))
|
2016-05-11 14:47:40 +03:00
|
|
|
|
|
|
|
(def chat-container
|
|
|
|
{:flexDirection :row
|
|
|
|
:paddingVertical 15
|
|
|
|
:paddingHorizontal 16
|
|
|
|
:height 90})
|
|
|
|
|
2016-05-19 15:45:16 +03:00
|
|
|
(def chat-icon-container
|
|
|
|
{:marginTop -2
|
|
|
|
:marginLeft -4
|
|
|
|
:width 48
|
|
|
|
:height 48})
|
2016-05-11 14:47:40 +03:00
|
|
|
|
|
|
|
(def item-container
|
|
|
|
{:flexDirection :column
|
|
|
|
:marginLeft 12
|
|
|
|
:flex 1})
|
|
|
|
|
|
|
|
(def name-view
|
|
|
|
{:flexDirection :row})
|
|
|
|
|
|
|
|
(def name-text
|
|
|
|
{:marginTop -2.5
|
|
|
|
:color text1-color
|
2016-09-16 18:30:19 +03:00
|
|
|
:fontSize 14})
|
2016-05-11 14:47:40 +03:00
|
|
|
|
|
|
|
(def group-icon
|
|
|
|
{:marginTop 4
|
|
|
|
:marginLeft 8
|
|
|
|
:width 14
|
|
|
|
:height 9})
|
|
|
|
|
|
|
|
(def memebers-text
|
|
|
|
{:marginTop -0.5
|
|
|
|
:marginLeft 4
|
|
|
|
:fontSize 12
|
|
|
|
:color text2-color})
|
|
|
|
|
|
|
|
(def last-message-text
|
|
|
|
{:marginTop 7
|
|
|
|
:marginRight 40
|
|
|
|
:color text1-color
|
|
|
|
:fontSize 14
|
|
|
|
:lineHeight 20})
|
|
|
|
|
|
|
|
(def status-container
|
|
|
|
{:flexDirection :row
|
|
|
|
:position :absolute
|
|
|
|
:top 0
|
|
|
|
:right 0})
|
|
|
|
|
|
|
|
(def status-image
|
|
|
|
{:marginTop 6
|
|
|
|
:width 9
|
|
|
|
:height 7})
|
|
|
|
|
|
|
|
(def datetime-text
|
2016-09-16 18:30:19 +03:00
|
|
|
{:fontSize 12
|
2016-05-11 14:47:40 +03:00
|
|
|
:color text2-color
|
|
|
|
:marginLeft 5})
|
|
|
|
|
|
|
|
(def new-messages-container
|
|
|
|
{:position :absolute
|
|
|
|
:top 36
|
|
|
|
:right 0
|
|
|
|
:width 24
|
|
|
|
:height 24
|
|
|
|
:backgroundColor new-messages-count-color
|
|
|
|
:borderRadius 50})
|
|
|
|
|
|
|
|
(def new-messages-text
|
|
|
|
{:top 4
|
|
|
|
:left 0
|
|
|
|
:fontSize 10
|
|
|
|
:color color-blue
|
|
|
|
:textAlign :center})
|
2016-05-11 14:58:03 +03:00
|
|
|
|
|
|
|
(def hamburger-icon
|
|
|
|
{:width 16
|
|
|
|
:height 12})
|
|
|
|
|
|
|
|
(def search-icon
|
|
|
|
{:width 17
|
|
|
|
:height 17})
|
|
|
|
|
|
|
|
(def chats-container
|
|
|
|
{:flex 1
|
|
|
|
:backgroundColor :white})
|
|
|
|
|
|
|
|
(def list-container
|
2016-05-23 15:13:52 +03:00
|
|
|
{:backgroundColor :white})
|
2016-05-11 14:58:03 +03:00
|
|
|
|
|
|
|
(def create-icon
|
|
|
|
{:fontSize 20
|
|
|
|
:height 22
|
|
|
|
:color :white})
|
|
|
|
|
|
|
|
(def person-stalker-icon
|
|
|
|
{:fontSize 20
|
|
|
|
:height 22
|
|
|
|
:color :white})
|
2016-06-16 12:44:56 +03:00
|
|
|
|
|
|
|
(defn action-buttons-container [animation? offset-y]
|
2016-07-06 17:52:44 +03:00
|
|
|
;; todo fix overlaying of parent view
|
|
|
|
{:position :absolute
|
|
|
|
:right 0
|
|
|
|
:height 230
|
2016-07-20 12:03:05 +03:00
|
|
|
:width 220
|
2016-07-06 17:52:44 +03:00
|
|
|
:bottom 0
|
|
|
|
:transform [{:translateY (if animation? offset-y 1)}]})
|