From 9031ab5144bc135e80876474415d66f587aff3c9 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Fri, 13 May 2016 16:58:14 +0300 Subject: [PATCH] some missed styles Former-commit-id: c62feb0159e147414afb2d620dba1d1d596e97e8 --- src/syng_im/discovery/screen.cljs | 21 +++++++++------------ src/syng_im/discovery/styles.cljs | 12 ++++++++++++ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/syng_im/discovery/screen.cljs b/src/syng_im/discovery/screen.cljs index 751125324a..302a8aa11c 100644 --- a/src/syng_im/discovery/screen.cljs +++ b/src/syng_im/discovery/screen.cljs @@ -33,24 +33,21 @@ [] (let [show-search (subscribe [:get ::show-search])] (fn [] - [view {:flex 1 - :backgroundColor :#eef2f5} + [view st/discovery-container [toolbar {:style st/discovery-toolbar :nav-action {:image {:source {:uri :icon_hamburger} - :style {:width 16 - :height 12}} + :style st/hamburger-icon} :handler #(dispatch [:create-fake-discovery!])} :title "Add Participants" :content [title-content @show-search] :action {:image {:source {:uri :icon_search} - :style {:width 17 - :height 17}} + :style st/search-icon} :handler #(toogle-search @show-search)}}] [scroll-view {:style {}} - [view st/section-spacing - [text {:style st/discovery-subtitle} "Popular tags"]] - [popular] - [view st/section-spacing - [text {:style st/discovery-subtitle} "Recent"]] - [discovery-recent]]]))) + [view st/section-spacing + [text {:style st/discovery-subtitle} "Popular tags"]] + [popular] + [view st/section-spacing + [text {:style st/discovery-subtitle} "Recent"]] + [discovery-recent]]]))) diff --git a/src/syng_im/discovery/styles.cljs b/src/syng_im/discovery/styles.cljs index b4518d057d..6b7c1ef10d 100644 --- a/src/syng_im/discovery/styles.cljs +++ b/src/syng_im/discovery/styles.cljs @@ -173,3 +173,15 @@ (def icon-search {:width 17 :height 17}) + +(def discovery-container + {:flex 1 + :backgroundColor :#eef2f5}) + +(def hamburger-icon + {:width 16 + :height 12}) + +(def search-icon + {:width 17 + :height 17})