small code clean

Former-commit-id: 45c35733be
This commit is contained in:
Adrian Tiberius 2016-05-23 13:13:06 +03:00
parent 563e0d69c7
commit 2e49994c86
3 changed files with 40 additions and 37 deletions

View File

@ -6,7 +6,8 @@
online-color online-color
text1-color text1-color
text2-color text2-color
new-messages-count-color]])) new-messages-count-color]]
[status-im.components.tabs.styles :refer [tab-height]]))
(def contact-photo-container (def contact-photo-container
{:borderRadius 50}) {:borderRadius 50})
@ -135,7 +136,7 @@
(def list-container (def list-container
{:backgroundColor :white {:backgroundColor :white
:marginBottom 56}) :marginBottom tab-height})
(def create-icon (def create-icon
{:fontSize 20 {:fontSize 20

View File

@ -3,7 +3,8 @@
title-font title-font
text1-color text1-color
color-white color-white
online-color]])) online-color]]
[status-im.components.tabs.styles :refer [tab-height]]))
(def search-icon (def search-icon
{:width 17 {:width 17
@ -15,7 +16,7 @@
(def contacts-list (def contacts-list
{:backgroundColor :white {:backgroundColor :white
:marginBottom 56}) :marginBottom tab-height})
(def contact-photo-container (def contact-photo-container
{:borderRadius 50}) {:borderRadius 50})

View File

@ -1,14 +1,15 @@
(ns status-im.discovery.styles (ns status-im.discovery.styles
(:require [status-im.components.styles :refer [font (:require [status-im.components.styles :refer [font
title-font title-font
color-white color-white
chat-background chat-background
online-color online-color
selected-message-color selected-message-color
separator-color separator-color
text1-color text1-color
text2-color text2-color
toolbar-background1]])) toolbar-background1]]
[status-im.components.tabs.styles :refer [tab-height]]))
;; common ;; common
@ -39,7 +40,7 @@
(def discovery-title (def discovery-title
{:color "#000000de" {:color "#000000de"
:alignSelf :center :alignSelf :center
:textAlign :center :textAlign :center
:fontFamily "sans-serif" :fontFamily "sans-serif"
:fontSize 16}) :fontSize 16})
@ -59,7 +60,7 @@
:paddingBottom 15}) :paddingBottom 15})
(def scroll-view-container (def scroll-view-container
{:marginBottom 56}) {:marginBottom tab-height})
;; discovery_popular.cljs ;; discovery_popular.cljs
@ -74,12 +75,12 @@
;; discovery_populat_list.cljs ;; discovery_populat_list.cljs
(def tag-name (def tag-name
{:color "#7099e6" {:color "#7099e6"
:fontFamily "sans-serif-medium" :fontFamily "sans-serif-medium"
:fontSize 14 :fontSize 14
:paddingRight 5 :paddingRight 5
:paddingBottom 2 :paddingBottom 2
:alignItems :center :alignItems :center
:justifyContent :center}) :justifyContent :center})
(def tag-name-container (def tag-name-container
@ -89,12 +90,12 @@
:padding 4}) :padding 4})
(def tag-count (def tag-count
{:color "#838c93" {:color "#838c93"
:fontFamily "sans-serif" :fontFamily "sans-serif"
:fontSize 12 :fontSize 12
:paddingRight 5 :paddingRight 5
:paddingBottom 2 :paddingBottom 2
:alignItems :center :alignItems :center
:justifyContent :center}) :justifyContent :center})
(def tag-count-container (def tag-count-container
@ -105,20 +106,20 @@
:paddingRight 9}) :paddingRight 9})
(def popular-list-container (def popular-list-container
{:flex 1 {:flex 1
:backgroundColor :white :backgroundColor :white
:paddingLeft 10 :paddingLeft 10
:paddingTop 16}) :paddingTop 16})
(def popular-list (def popular-list
{:backgroundColor :white {:backgroundColor :white
:paddingTop 13}) :paddingTop 13})
;; discover_popular_list_item.cjls ;; discover_popular_list_item.cjls
(def popular-list-item (def popular-list-item
{:flexDirection :row {:flexDirection :row
:paddingTop 10 :paddingTop 10
:paddingBottom 10}) :paddingBottom 10})
(def popular-list-item-status (def popular-list-item-status
@ -140,8 +141,8 @@
(def popular-list-item-avatar-container (def popular-list-item-avatar-container
{:flex 0.2 {:flex 0.2
:flexDirection "column" :flexDirection "column"
:alignItems :center :alignItems :center
:paddingTop 5}) :paddingTop 5})
(def popular-list-item-avatar (def popular-list-item-avatar
{:resizeMode "contain" {:resizeMode "contain"
@ -153,7 +154,7 @@
(def recent-list (def recent-list
{:backgroundColor :white {:backgroundColor :white
:paddingLeft 15}) :paddingLeft 15})
;; discovery_tag ;; discovery_tag
@ -162,8 +163,8 @@
:backgroundColor "#eef2f5"}) :backgroundColor "#eef2f5"})
(def tag-title-container (def tag-title-container
{:flex 1 {:flex 1
:alignItems "center" :alignItems "center"
:justifyContent "center"}) :justifyContent "center"})
(def tag-title (def tag-title