added add account button

This commit is contained in:
Adrian Tiberius 2016-07-05 21:52:16 +03:00
parent cd22ab834d
commit d1446634b4
2 changed files with 31 additions and 1 deletions

View File

@ -14,6 +14,7 @@
icon-search icon-search
icon-back icon-back
icon-qr icon-qr
icon-plus
toolbar-background1 toolbar-background1
toolbar-title-container toolbar-title-container
toolbar-title-text toolbar-title-text
@ -60,7 +61,12 @@
:enableEmptySections true :enableEmptySections true
:renderRow render-row :renderRow render-row
:renderSeparator render-separator :renderSeparator render-separator
:style st/account-list}]]])) :style st/account-list}]]
[view st/add-account-button-container
[view st/add-account-button
[image {:source {:uri :icon_add}
:style st/icon-plus}]
[text {:style st/add-account-text} (label :t/add-account)]]]]))
;(re-frame.core/dispatch [:set :view-id :users]) ;(re-frame.core/dispatch [:set :view-id :users])

View File

@ -81,3 +81,27 @@
:flexDirection :column :flexDirection :column
:alignItems :center :alignItems :center
:justifyContent :center}) :justifyContent :center})
(def add-account-button-container
{:position :absolute
:bottom 16
:height 50
:left 100
:right 100
:justifyContent :center
:alignItems :center})
(def add-account-button
{:flexDirection :row})
(def icon-plus
{:flexDirection :column
:paddingTop 2
:width 20
:height 20})
(def add-account-text
{:flexDirection :column
:color :white
:fontSize 16
:marginLeft 8})