diff --git a/android/app/src/main/res/drawable-hdpi/icon_chats.png b/android/app/src/main/res/drawable-hdpi/icon_chats.png new file mode 100644 index 0000000000..24acc606e4 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_chats.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_chats_active.png b/android/app/src/main/res/drawable-hdpi/icon_chats_active.png new file mode 100644 index 0000000000..d8dd8877e9 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_chats_active.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_contacts.png b/android/app/src/main/res/drawable-hdpi/icon_contacts.png new file mode 100644 index 0000000000..68185400b1 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_contacts.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_contacts_active.png b/android/app/src/main/res/drawable-hdpi/icon_contacts_active.png new file mode 100644 index 0000000000..6df5188117 Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_contacts_active.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_discover.png b/android/app/src/main/res/drawable-hdpi/icon_discover.png new file mode 100644 index 0000000000..f0062b9ecb Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_discover.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_discover_active.png b/android/app/src/main/res/drawable-hdpi/icon_discover_active.png new file mode 100644 index 0000000000..bab95befde Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/icon_discover_active.png differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_tab_chats.png b/android/app/src/main/res/drawable-hdpi/icon_tab_chats.png deleted file mode 100644 index cd49ce4003..0000000000 Binary files a/android/app/src/main/res/drawable-hdpi/icon_tab_chats.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_tab_contacts.png b/android/app/src/main/res/drawable-hdpi/icon_tab_contacts.png deleted file mode 100644 index b7f48eff4c..0000000000 Binary files a/android/app/src/main/res/drawable-hdpi/icon_tab_contacts.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-hdpi/icon_tab_discover.png b/android/app/src/main/res/drawable-hdpi/icon_tab_discover.png deleted file mode 100644 index 1166cab6f6..0000000000 Binary files a/android/app/src/main/res/drawable-hdpi/icon_tab_discover.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_chats.png b/android/app/src/main/res/drawable-mdpi/icon_chats.png new file mode 100644 index 0000000000..accffce44a Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_chats.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_chats_active.png b/android/app/src/main/res/drawable-mdpi/icon_chats_active.png new file mode 100644 index 0000000000..a7fb8a4f8c Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_chats_active.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_contacts.png b/android/app/src/main/res/drawable-mdpi/icon_contacts.png new file mode 100644 index 0000000000..c428fa16b0 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_contacts.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_contacts_active.png b/android/app/src/main/res/drawable-mdpi/icon_contacts_active.png new file mode 100644 index 0000000000..568786dd1a Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_contacts_active.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_discover.png b/android/app/src/main/res/drawable-mdpi/icon_discover.png new file mode 100644 index 0000000000..3a6d1793d2 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_discover.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_discover_active.png b/android/app/src/main/res/drawable-mdpi/icon_discover_active.png new file mode 100644 index 0000000000..9ace125674 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/icon_discover_active.png differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_tab_chats.png b/android/app/src/main/res/drawable-mdpi/icon_tab_chats.png deleted file mode 100644 index 6bb1a35f92..0000000000 Binary files a/android/app/src/main/res/drawable-mdpi/icon_tab_chats.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_tab_contacts.png b/android/app/src/main/res/drawable-mdpi/icon_tab_contacts.png deleted file mode 100644 index 277368a9b8..0000000000 Binary files a/android/app/src/main/res/drawable-mdpi/icon_tab_contacts.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-mdpi/icon_tab_discover.png b/android/app/src/main/res/drawable-mdpi/icon_tab_discover.png deleted file mode 100644 index 6b726371f7..0000000000 Binary files a/android/app/src/main/res/drawable-mdpi/icon_tab_discover.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_chats.png b/android/app/src/main/res/drawable-xhdpi/icon_chats.png new file mode 100644 index 0000000000..55ca434d47 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_chats.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_chats_active.png b/android/app/src/main/res/drawable-xhdpi/icon_chats_active.png new file mode 100644 index 0000000000..9a2f4860a3 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_chats_active.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_contacts.png b/android/app/src/main/res/drawable-xhdpi/icon_contacts.png new file mode 100644 index 0000000000..c8f1ab41f2 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_contacts.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_contacts_active.png b/android/app/src/main/res/drawable-xhdpi/icon_contacts_active.png new file mode 100644 index 0000000000..c3d93c37c1 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_contacts_active.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_discover.png b/android/app/src/main/res/drawable-xhdpi/icon_discover.png new file mode 100644 index 0000000000..713bdd1f3a Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_discover.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_discover_active.png b/android/app/src/main/res/drawable-xhdpi/icon_discover_active.png new file mode 100644 index 0000000000..828f60bb17 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/icon_discover_active.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_tab_chats.png b/android/app/src/main/res/drawable-xhdpi/icon_tab_chats.png deleted file mode 100644 index 87c2bc79f9..0000000000 Binary files a/android/app/src/main/res/drawable-xhdpi/icon_tab_chats.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_tab_contacts.png b/android/app/src/main/res/drawable-xhdpi/icon_tab_contacts.png deleted file mode 100644 index 9192c55522..0000000000 Binary files a/android/app/src/main/res/drawable-xhdpi/icon_tab_contacts.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xhdpi/icon_tab_discover.png b/android/app/src/main/res/drawable-xhdpi/icon_tab_discover.png deleted file mode 100644 index f40ba84519..0000000000 Binary files a/android/app/src/main/res/drawable-xhdpi/icon_tab_discover.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_chats.png b/android/app/src/main/res/drawable-xxhdpi/icon_chats.png new file mode 100644 index 0000000000..bf795c4c7f Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_chats.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_chats_active.png b/android/app/src/main/res/drawable-xxhdpi/icon_chats_active.png new file mode 100644 index 0000000000..3cd62cf21d Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_chats_active.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_contacts.png b/android/app/src/main/res/drawable-xxhdpi/icon_contacts.png new file mode 100644 index 0000000000..cf2806ecc2 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_contacts.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_contacts_active.png b/android/app/src/main/res/drawable-xxhdpi/icon_contacts_active.png new file mode 100644 index 0000000000..e4f0b065d8 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_contacts_active.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_discover.png b/android/app/src/main/res/drawable-xxhdpi/icon_discover.png new file mode 100644 index 0000000000..1b69063cfa Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_discover.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_discover_active.png b/android/app/src/main/res/drawable-xxhdpi/icon_discover_active.png new file mode 100644 index 0000000000..be0b04ab16 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/icon_discover_active.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_tab_chats.png b/android/app/src/main/res/drawable-xxhdpi/icon_tab_chats.png deleted file mode 100644 index 382bcaaaf6..0000000000 Binary files a/android/app/src/main/res/drawable-xxhdpi/icon_tab_chats.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_tab_contacts.png b/android/app/src/main/res/drawable-xxhdpi/icon_tab_contacts.png deleted file mode 100644 index 19f17a0942..0000000000 Binary files a/android/app/src/main/res/drawable-xxhdpi/icon_tab_contacts.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxhdpi/icon_tab_discover.png b/android/app/src/main/res/drawable-xxhdpi/icon_tab_discover.png deleted file mode 100644 index 8bc25d2ab3..0000000000 Binary files a/android/app/src/main/res/drawable-xxhdpi/icon_tab_discover.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_chats.png b/android/app/src/main/res/drawable-xxxhdpi/icon_chats.png new file mode 100644 index 0000000000..4092c54b1c Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_chats.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_chats_active.png b/android/app/src/main/res/drawable-xxxhdpi/icon_chats_active.png new file mode 100644 index 0000000000..a3e52f2405 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_chats_active.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_contacts.png b/android/app/src/main/res/drawable-xxxhdpi/icon_contacts.png new file mode 100644 index 0000000000..64ccdc7757 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_contacts.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_contacts_active.png b/android/app/src/main/res/drawable-xxxhdpi/icon_contacts_active.png new file mode 100644 index 0000000000..1ed7402549 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_contacts_active.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_discover.png b/android/app/src/main/res/drawable-xxxhdpi/icon_discover.png new file mode 100644 index 0000000000..75db73fc16 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_discover.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_discover_active.png b/android/app/src/main/res/drawable-xxxhdpi/icon_discover_active.png new file mode 100644 index 0000000000..601c213982 Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/icon_discover_active.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_chats.png b/android/app/src/main/res/drawable-xxxhdpi/icon_tab_chats.png deleted file mode 100644 index 19020ea5b5..0000000000 Binary files a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_chats.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_contacts.png b/android/app/src/main/res/drawable-xxxhdpi/icon_tab_contacts.png deleted file mode 100644 index d5bfcba9d2..0000000000 Binary files a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_contacts.png and /dev/null differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_discover.png b/android/app/src/main/res/drawable-xxxhdpi/icon_tab_discover.png deleted file mode 100644 index cfc93ab11a..0000000000 Binary files a/android/app/src/main/res/drawable-xxxhdpi/icon_tab_discover.png and /dev/null differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_chats.imageset/Contents.json similarity index 86% rename from ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/Contents.json rename to ios/StatusIm/Images.xcassets/icon_chats.imageset/Contents.json index 02a839408c..717ec72edb 100644 --- a/ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/Contents.json +++ b/ios/StatusIm/Images.xcassets/icon_chats.imageset/Contents.json @@ -2,7 +2,7 @@ "images" : [ { "idiom" : "universal", - "filename" : "icon_tab_chats.png", + "filename" : "icon_chats.png", "scale" : "1x" }, { @@ -18,4 +18,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/ios/StatusIm/Images.xcassets/icon_chats.imageset/icon_chats.png b/ios/StatusIm/Images.xcassets/icon_chats.imageset/icon_chats.png new file mode 100644 index 0000000000..4092c54b1c Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_chats.imageset/icon_chats.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/Contents.json new file mode 100644 index 0000000000..933c163d2b --- /dev/null +++ b/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "icon_chats_active.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/icon_chats_active.png b/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/icon_chats_active.png new file mode 100644 index 0000000000..a3e52f2405 Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_chats_active.imageset/icon_chats_active.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_contacts.imageset/Contents.json similarity index 85% rename from ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/Contents.json rename to ios/StatusIm/Images.xcassets/icon_contacts.imageset/Contents.json index 1bd385d0a8..b1445eaf8e 100644 --- a/ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/Contents.json +++ b/ios/StatusIm/Images.xcassets/icon_contacts.imageset/Contents.json @@ -2,7 +2,7 @@ "images" : [ { "idiom" : "universal", - "filename" : "icon_tab_contacts.png", + "filename" : "icon_contacts.png", "scale" : "1x" }, { @@ -18,4 +18,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/ios/StatusIm/Images.xcassets/icon_contacts.imageset/icon_contacts.png b/ios/StatusIm/Images.xcassets/icon_contacts.imageset/icon_contacts.png new file mode 100644 index 0000000000..64ccdc7757 Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_contacts.imageset/icon_contacts.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/Contents.json new file mode 100644 index 0000000000..d88743a2e2 --- /dev/null +++ b/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "icon_contacts_active.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/icon_contacts_active.png b/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/icon_contacts_active.png new file mode 100644 index 0000000000..1ed7402549 Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_contacts_active.imageset/icon_contacts_active.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_discover.imageset/Contents.json similarity index 85% rename from ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/Contents.json rename to ios/StatusIm/Images.xcassets/icon_discover.imageset/Contents.json index 4b8a714e71..0e3ee1aa4c 100644 --- a/ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/Contents.json +++ b/ios/StatusIm/Images.xcassets/icon_discover.imageset/Contents.json @@ -2,7 +2,7 @@ "images" : [ { "idiom" : "universal", - "filename" : "icon_tab_discover.png", + "filename" : "icon_discover.png", "scale" : "1x" }, { @@ -18,4 +18,4 @@ "version" : 1, "author" : "xcode" } -} \ No newline at end of file +} diff --git a/ios/StatusIm/Images.xcassets/icon_discover.imageset/icon_discover.png b/ios/StatusIm/Images.xcassets/icon_discover.imageset/icon_discover.png new file mode 100644 index 0000000000..75db73fc16 Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_discover.imageset/icon_discover.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/Contents.json b/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/Contents.json new file mode 100644 index 0000000000..43e44f838b --- /dev/null +++ b/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "icon_discover_active.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/icon_discover_active.png b/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/icon_discover_active.png new file mode 100644 index 0000000000..601c213982 Binary files /dev/null and b/ios/StatusIm/Images.xcassets/icon_discover_active.imageset/icon_discover_active.png differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/icon_tab_chats.png b/ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/icon_tab_chats.png deleted file mode 100644 index 382bcaaaf6..0000000000 Binary files a/ios/StatusIm/Images.xcassets/icon_tab_chats.imageset/icon_tab_chats.png and /dev/null differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/icon_tab_contacts.png b/ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/icon_tab_contacts.png deleted file mode 100644 index 19f17a0942..0000000000 Binary files a/ios/StatusIm/Images.xcassets/icon_tab_contacts.imageset/icon_tab_contacts.png and /dev/null differ diff --git a/ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/icon_tab_discover.png b/ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/icon_tab_discover.png deleted file mode 100644 index 8bc25d2ab3..0000000000 Binary files a/ios/StatusIm/Images.xcassets/icon_tab_discover.imageset/icon_tab_discover.png and /dev/null differ diff --git a/src/status_im/chats_list/screen.cljs b/src/status_im/chats_list/screen.cljs index 31ff824cd0..ad5bf38185 100644 --- a/src/status_im/chats_list/screen.cljs +++ b/src/status_im/chats_list/screen.cljs @@ -89,9 +89,10 @@ [view st/chat-separator-item]])))) (defview chats-list [] - [chats [:filtered-chats] - edit? [:get-in [:chat-list-ui-props :edit?]] - search? [:get-in [:toolbar-search :show]]] + [chats [:filtered-chats] + edit? [:get-in [:chat-list-ui-props :edit?]] + search? [:get-in [:toolbar-search :show]] + tabs-hidden? [:tabs-hidden?]] [view st/chats-container (cond edit? [toolbar-edit] @@ -104,7 +105,7 @@ :renderFooter #(when (seq chats) (list-item [chat-shadow-item])) :renderSeparator (when (get-in platform-specific [:chats :render-separator?]) (render-separator-fn chats)) - :style st/list-container}] + :style (st/list-container tabs-hidden?)}] (when (and (not edit?) (not search?) (get-in platform-specific [:chats :action-button?])) diff --git a/src/status_im/chats_list/styles.cljs b/src/status_im/chats_list/styles.cljs index b0c3eb0598..f449465d4a 100644 --- a/src/status_im/chats_list/styles.cljs +++ b/src/status_im/chats_list/styles.cljs @@ -1,4 +1,5 @@ (ns status-im.chats-list.styles + (:require-macros [status-im.utils.styles :refer [defnstyle]]) (:require [status-im.components.styles :refer [color-white color-light-gray color-blue @@ -8,7 +9,7 @@ text4-color separator-color new-messages-count-color]] - [status-im.components.tabs.styles :refer [tabs-height]] + [status-im.components.tabs.styles :as tabs-st] [status-im.components.toolbar.styles :refer [toolbar-background1 toolbar-background2]] [status-im.utils.platform :as p])) @@ -99,10 +100,10 @@ :height 16}) (def last-message-container - {:flex-shrink 1}) + {:flex-shrink 1}) (def last-message-text - (merge {:color text4-color} + (merge {:color text4-color} (get-in p/platform-specific [:component-styles :chat-list :last-message]))) (def status-container @@ -136,9 +137,12 @@ (def chats-container {:flex 1}) -(def list-container - (merge (get-in p/platform-specific [:component-styles :main-tab-list]) - (get-in p/platform-specific [:component-styles :chat-list :list-container]))) +(defnstyle list-container [tabs-hidden?] + {:android {:background-color color-light-gray + :margin-bottom 20} + + :ios {:background-color color-white + :margin-bottom (if tabs-hidden? 20 (+ 16 tabs-st/tabs-height))}}) (def toolbar-actions {:flex-direction :row diff --git a/src/status_im/components/main_tabs.cljs b/src/status_im/components/main_tabs.cljs index bb5564e0d4..7a3734dbb9 100644 --- a/src/status_im/components/main_tabs.cljs +++ b/src/status_im/components/main_tabs.cljs @@ -4,16 +4,9 @@ [cljs.core.async.macros :as am]) (:require [re-frame.core :refer [subscribe dispatch dispatch-sync]] [reagent.core :as r] - [status-im.components.react :refer [view - animated-view - text - image - touchable-highlight - get-dimensions - swiper]] + [status-im.components.react :refer [view swiper]] [status-im.components.status-bar :refer [status-bar]] [status-im.components.drawer.view :refer [drawer-view]] - [status-im.components.animation :as anim] [status-im.components.tabs.bottom-shadow :refer [bottom-shadow-view]] [status-im.chats-list.screen :refer [chats-list]] [status-im.discover.screen :refer [discover]] @@ -25,37 +18,24 @@ [cljs.core.async :as a])) (def tab-list - [{:view-id :chat-list - :title (label :t/chats) - :screen chats-list - :icon :icon_tab_chats - :index 0} - {:view-id :discover - :title (label :t/discover) - :screen discover - :icon :icon_tab_discover - :index 1} - {:view-id :contact-list - :title (label :t/contacts) - :screen contact-list - :icon :icon_tab_contacts - :index 2}]) - -(defn animation-logic [{:keys [offsets val tab-id to-tab-id]}] - (fn [_] - (when-let [offsets @offsets] - (let [from-value (:from offsets) - to-value (:to offsets) - to-tab-id @to-tab-id] - (anim/set-value val from-value) - (when to-value - (anim/start - (anim/timing val {:toValue to-value - :duration 300}) - (when (= tab-id to-tab-id) - (fn [arg] - (when (.-finished arg) - (dispatch [:on-navigated-to-tab])))))))))) + [{:view-id :chat-list + :title (label :t/chats) + :screen chats-list + :icon-inactive :icon_chats + :icon-active :icon_chats_active + :index 0} + {:view-id :discover + :title (label :t/discover) + :screen discover + :icon-inactive :icon_discover + :icon-active :icon_discover_active + :index 1} + {:view-id :contact-list + :title (label :t/contacts) + :screen contact-list + :icon-inactive :icon_contacts + :icon-active :icon_contacts_active + :index 2}]) (def tab->index {:chat-list 0 :discover 1 @@ -96,12 +76,14 @@ (recur (a/